awesome-repositories.com
Blog
awesome-repositories.com

Découvrez les meilleurs dépôts open-source grâce à notre recherche par IA.

ExplorerRecherches sélectionnéesAlternatives open sourceLogiciels auto-hébergésBlogPlan du site
ProjetÀ proposNotre méthodologiePresseServeur MCP
Mentions légalesConfidentialitéConditions d'utilisation
© 2026 Bringes Technology SRL·VAT RO45896025·hello@awesome-repositories.com
·
mpdf avatar

mpdf/mpdf

0
View on GitHub↗
4,693 stars·1,107 forks·PHP·GPL-2.0·10 vuesmpdf.github.io↗

Mpdf

mPDF est une bibliothèque PHP qui transforme du HTML et CSS encodés en UTF-8 en documents PDF formatés. Elle sert de moteur de génération de PDF et d'architecte de documents capable de convertir des pages web et des formulaires HTML en fichiers professionnels.

Le projet se distingue par ses capacités de rendu multilingue, offrant un support complet pour le texte bidirectionnel, les scripts de droite à gauche et les langues CJK en utilisant l'incorporation de polices Unicode et le traitement de mise en page OpenType. Il permet également une conception professionnelle prête pour l'impression grâce à une modélisation des couleurs avancée en CMJN, un dimensionnement précis des pages et la conformité aux standards d'archivage PDF/A et PDF/X.

La bibliothèque couvre un large éventail de fonctionnalités de mise en page et d'interactivité, y compris la génération de formulaires interactifs, de signets et d'index consultables. Elle fournit des contrôles détaillés pour les modèles de page, les en-têtes et pieds de page, et le rendu de données tabulaires complexes. Les capacités supplémentaires incluent le chiffrement PDF, le sous-ensemble de polices pour l'optimisation de la taille des fichiers et la possibilité d'importer des pages PDF externes comme modèles.

Le système s'intègre avec la journalisation conforme à PSR-3 pour suivre les événements internes et les erreurs d'exécution.

Features

  • PDF Generation Libraries - Acts as a framework for creating and formatting professional PDF documents with custom typography and print standards.
  • HTML to PDF Converters - Transforms UTF-8 encoded HTML and CSS into formatted PDF documents supporting international languages.
  • PDF Document Generation - Transforms HTML and CSS into binary PDF files using global settings and font variables.
  • Paged Media Layout Engines - Implements a paged media layout engine that resolves CSS stylesheets and media queries for physical PDF output.
  • Text Direction Controls - Configures the reading order and display direction for both RTL and LTR internationalization.
  • Multilingual PDF Generation - Renders PDF documents in multiple languages with support for bidirectional text, RTL scripts, and Unicode font embedding.
  • RTL Document Configuration - Configures the document for RTL layout, adjusting text alignment and table columns.
  • Multilingual Document Generation - Renders complex scripts and global languages including RTL and CJK using Unicode fonts and bidirectional text handling.
  • Page Break Management - Controls where content splits across pages using CSS properties or specialized tags to maintain logical cohesion.
  • Page Insertion - Adds new pages to the document with optional overrides for margins, orientation, and conditional breaks.
  • Page Layout Configurations - Defines physical page dimensions, margins, and regional settings to establish the visual structure of the PDF.
  • PDF Document Management - Provides comprehensive tools for building professional PDFs with automated tables of contents, indexes, and interactive forms.
  • Print Production Workflows - Configures precise page dimensions, margins, CMYK color modeling, and bleed marks for professional printing and PDF/A standards.
  • Color Modeling Systems - Deno PDF defines colors using RGB, HSL, or CMYK, including transparency for background elements.
  • Complex Script Renderers - Processes bidirectional runs and complex glyph shaping for scripts like Arabic and Hebrew.
  • Layout Rule Processors - Interprets OpenType GSUB and GPOS tables to apply substitution and positioning rules for advanced typography.
  • Bidirectional Text Layouts - Provides comprehensive bidirectional text processing for mixed LTR and RTL scripts.
  • CSS Styling - Uses CSS stylesheets to control page dimensions, margins, and overall element styling for physical PDF output.
  • Language-to-Font Mapping - Analyzes input text to automatically detect language and map it to the appropriate font.
  • Right-To-Left Support - Provides styling rules and layout mirroring to correctly display right-to-left scripts like Arabic and Hebrew.
  • PDF Font Embedding - Integrates font glyphs directly into the PDF binary to ensure consistent rendering across all viewers.
  • PDF Table Rendering - Generates native PDF tables from HTML including support for nesting, rotation, and auto-resizing.
  • Unicode Typography Renderers - Uses native Unicode and OpenType support to render characters from all Unicode planes, including historical scripts.
  • Report Generation - Creates professional reports with dynamic headers, footers, page numbering, and tables of contents from structured data.
  • Letterhead Generation - Generates multi-page documents with a specific layout for the first page and different subsequent layouts.
  • Table Border Styling - Implements border-collapse rules to resolve conflicts between adjacent cell and table borders.
  • PDF Exports - Writes the generated PDF content directly to a specified file system path.
  • Dynamic PDF Generators - Generates customized PDFs featuring dynamic watermarks, barcodes, and embedded external templates for business workflows.
  • PDF Page Extraction - Extracts specific pages or cropped regions from external PDF files to use as templates.
  • Content Splitting Prevention - Keeps block elements or table headings on a single page to prevent related information from being separated.
  • Document Metadata Definitions - Sets keywords in document properties to improve discoverability in PDF readers.
  • External PDF Templates - Inserts specific pages from external PDF files to serve as background templates for subsequent pages.
  • Mirror Margin Configurations - Alternates left and right margins on odd and even pages to create proper gutters for bound documents.
  • Automatic Page Numbering - Inserts dynamic page numbers with options to suppress, reset, or change numeral styles.
  • International Numeral Systems - Supports page numbering using various global numeral systems including decimal, roman, and Indic scripts.
  • Numbering Styles - Customizes page number prefixes, suffixes, and styles to control the pagination appearance.
  • Total Page Count Placeholders - Places dynamic placeholders in the document that resolve to the final total page count.
  • Print Layouts - Inserts pages and specifies odd or even page starts to support professional duplex printing.
  • PDF Archival Standard Compliance - Produces documents compliant with PDF/A and PDF/X specifications for long-term digital archiving.
  • Template Page Importing - Imports specific pages or regions from existing PDF files to use as background templates or combined content.
  • Table Fitting Optimizations - Shrinks tables to fit a single page or moves them to the next page to prevent content breaks.
  • Table Header Repetition - Duplicates the first row of a table on every new page when the table spans multiple pages.
  • Web Page to PDF Converters - Transforms HTML web pages into PDF documents using CSS to control element visibility.
  • Coordinate-Based Graphic Rendering - Deno PDF renders barcodes, rounded rectangles, and lines directly to the page without using HTML.
  • Coordinate-Based Rendering - Renders graphics like barcodes and lines by mapping absolute coordinates to the PDF page grid.
  • PDF Page Resizing - Defines the physical width and height of PDF pages using custom values or standard sizes.
  • PDF Image Embedding - Deno PDF places a graphic file at specific coordinates with controls for sizing and hyperlinking.
  • PDF Encryptions and Decryptions - Deno PDF encrypts the file and defines user permissions to restrict how the document is modified.
  • PDF Permission Controls - Deno PDF encrypts the document and defines permissions for printing and modifying using owner passwords.
  • Spot Color Definitions - Specifies named custom ink colors using CMYK values for professional-grade printing.
  • Block-Level Styling - Deno PDF uses stylesheets to define layout, colors, and typography for block-level elements.
  • PDF Generation Control Tags - Implements specialized HTML tags that control PDF generation without affecting web browser rendering.
  • Script Block Font Mapping - Detects Unicode script blocks and automatically assigns appropriate fonts via language attributes.
  • CSS Column-Count Multi-Column Layouts - Arranges content into multiple columns using CSS properties to define gaps and vertical alignment.
  • Paged Media Selectors - Sets margins, sizes, and orientation using CSS @page selectors and pseudo-selectors.
  • CSS Typography - Deno PDF sets typography attributes including font family, size, and weight using standard CSS properties.
  • Custom Stylesheets - Deno PDF overrides the default stylesheet using a custom CSS file to define project-wide styling.
  • Indic Script Renderers - Displays characters from Indic languages using specialized fonts and appropriate Unicode ranges.
  • Font Subsetting Engines - Reduces PDF file size by extracting and embedding only the specific characters used in the document.
  • CJK Font Subsetting - Reduces file size by embedding only the required character subsets of large East Asian fonts.
  • Phrase Line Break Preservers - Implements dictionary-based line-breaking rules to preserve natural phrase groupings in languages like Thai and Lao.
  • Interactive PDF Form Fields - Creates interactive PDF form elements including text fields and checkboxes with JavaScript support.
  • Custom HTML Footers - Renders custom HTML content at the bottom of a page with specific side positioning.
  • Page Layout Templates - Defines reusable header and footer layouts that can be swapped during document generation.
  • Page Layout Templates - Creates reusable page definitions that can be assigned to sections to switch layouts mid-document.
  • Document Media Queries - Implements conditional styles based on media queries to optimize formatting for physical print output.
  • Language-Specific Styling - Uses HTML lang attributes and CSS selectors to apply typography and styles specific to the document language.
  • Font Subsetting Engines - Extracts and retains only the necessary glyphs from font files to minimize the final PDF size.
  • Indic Consonant Conjunct Processing - Processes characters and consonant conjuncts for Indic languages using specialized font processing.
  • Custom Font Registrars - Maps TrueType font files to specific family names and variants to enable custom typography.
  • Pan-CJK Rendering - Provides specialized rendering logic for unified serif glyphs across Chinese, Japanese, and Korean scripts.
  • Automatic Content Sizing - Automatically adjusts table dimensions to fit the page width and prevent content overflow.
  • Text Wrapping & Alignment - Calculates text flow and line breaks to automatically wrap content within specified page boundaries.
  • Vector Graphics Rendering - Processes and renders scalable vector graphics (SVG) within documents via XML extensions.
  • PDF Layout Control Commands - Injects specialized formatting commands into HTML to control PDF generation independently of browser rendering.

Historique des stars

Graphique de l'historique des stars pour mpdf/mpdfGraphique de l'historique des stars pour mpdf/mpdf

Recherche par IA

Explorez plus de dépôts awesome

Décrivez vos besoins en langage naturel — l'IA classe des milliers de projets open source sélectionnés par pertinence.

Start searching with AI

Alternatives open source à Mpdf

Projets open source similaires, classés selon le nombre de fonctionnalités partagées avec Mpdf.
  • tecnickcom/tcpdfAvatar de tecnickcom

    tecnickcom/TCPDF

    4,545Voir sur GitHub↗

    TCPDF is a PHP library for the programmatic generation of PDF documents, allowing developers to create files containing text, graphics, and forms directly from application code. It includes a typography engine that supports Unicode strings, bidirectional scripts, and the embedding of TrueType or OpenType fonts. The library provides specialized tools for producing documents that adhere to PDF/A, PDF/X, and PDF/UA standards for archiving, printing, and accessibility. It features a digital signing system that applies CMS signatures and RFC 3161 timestamps, supporting long-term validation through

    PHPpdfpdf-generation
    Voir sur GitHub↗4,545
  • questpdf/questpdfAvatar de QuestPDF

    QuestPDF/QuestPDF

    14,088Voir sur GitHub↗

    QuestPDF is a C# PDF generation library and layout engine used to create structured documents, reports, and invoices. It utilizes a fluent API and a component-based layout approach to convert code into high-fidelity PDF and XPS files. The library distinguishes itself with a dedicated layout debugger that provides real-time previews, hot-reload capabilities, and visual boundary tools to map rendered elements back to source code. It also functions as an accessibility tool, providing semantic tagging and navigational aids to ensure documents comply with international accessibility and archival s

    C#c-sharpdotnet-coreexport
    Voir sur GitHub↗14,088
  • librepdf/openpdfAvatar de LibrePDF

    LibrePDF/OpenPDF

    4,293Voir sur GitHub↗

    OpenPDF is a Java library and document processor used for creating, editing, rendering, and encrypting PDF documents. It functions as a toolkit for generating new files from scratch, modifying existing document structures, and extracting text content. The project includes a dedicated engine for transforming HTML and CSS content into PDF documents by parsing markup and applying styles. It also provides a rendering engine to convert PDF pages into image formats for thumbnails and previews, alongside a security utility for protecting content via document encryption. The library supports the add

    Java
    Voir sur GitHub↗4,293
  • bpampuch/pdfmakeAvatar de bpampuch

    bpampuch/pdfmake

    12,297Voir sur GitHub↗

    pdfmake is a JavaScript PDF generation library and declarative document engine that transforms structured JavaScript objects into formatted PDF files. It functions as a layout engine capable of producing documents on both the client side within a web browser and on the server side using Node.js. The library utilizes a declarative approach to translate object-based document definitions into final PDFs. It distinguishes itself through a virtual layout engine that calculates element positions and page breaks and an inheritance-based style system that uses dictionaries to maintain visual consiste

    JavaScript
    Voir sur GitHub↗12,297
Voir les 30 alternatives à Mpdf→

Questions fréquentes

Que fait mpdf/mpdf ?

mPDF est une bibliothèque PHP qui transforme du HTML et CSS encodés en UTF-8 en documents PDF formatés. Elle sert de moteur de génération de PDF et d'architecte de documents capable de convertir des pages web et des formulaires HTML en fichiers professionnels.

Quelles sont les fonctionnalités principales de mpdf/mpdf ?

Les fonctionnalités principales de mpdf/mpdf sont : PDF Generation Libraries, HTML to PDF Converters, PDF Document Generation, Paged Media Layout Engines, Text Direction Controls, Multilingual PDF Generation, RTL Document Configuration, Multilingual Document Generation.

Quelles sont les alternatives open-source à mpdf/mpdf ?

Les alternatives open-source à mpdf/mpdf incluent : tecnickcom/tcpdf — TCPDF is a PHP library for the programmatic generation of PDF documents, allowing developers to create files… questpdf/questpdf — QuestPDF is a C# PDF generation library and layout engine used to create structured documents, reports, and invoices.… librepdf/openpdf — OpenPDF is a Java library and document processor used for creating, editing, rendering, and encrypting PDF documents.… bpampuch/pdfmake — pdfmake is a JavaScript PDF generation library and declarative document engine that transforms structured JavaScript… hopding/pdf-lib — pdf-lib is a JavaScript PDF manipulation library used for creating, modifying, and editing PDF documents… kevin2li/pdf-guru — PDF-Guru is an AI-powered document processor and study material converter designed to transform textbooks, research…