Dompdf
HTML to PDF converter for PHP (by dompdf)
mPDF
PHP library generating PDF files from UTF-8 encoded HTML (by mpdf)

CodeRabbit: AI Code Reviews for Developers
Revolutionize your code reviews with AI. CodeRabbit offers PR summaries, code walkthroughs, 1-click suggestions, and AST-based analysis. Boost productivity and code quality across all major languages with each PR.
coderabbit.ai
featured

Nutrient - The #1 PDF SDK Library
Bad PDFs = bad UX. Slow load times, broken annotations, clunky UX frustrates users. Nutrient’s PDF SDKs gives seamless document experiences, fast rendering, annotations, real-time collaboration, 100+ features. Used by 10K+ devs, serving ~half a billion users worldwide. Explore the SDK for free.
nutrient.io
featured
Dompdf | mPDF | |
---|---|---|
17 | 18 | |
10,706 | 4,445 | |
0.8% | 0.4% | |
7.6 | 6.2 | |
27 days ago | 2 months ago | |
PHP | PHP | |
GNU Lesser General Public License v3.0 only | GNU General Public License v2.0 only |
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
Dompdf
Posts with mentions or reviews of Dompdf.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2024-04-05.
-
Intro to DOMPDF - lightest and simplest PHP library to generate PDF documents
Generating PDF documents out of your app's HTML output is a very common requirement and there are several open source libraries to accomplish this. I came across this need for my project recently and I evaluated many popular ones such as TCPDF, mpdf, FPDF, etc. But the one that truly stood up to my evaluation in terms of efficiency (minimal footprint) and ease of implementation was DOMPDF.
-
Dompdf as a Phar
I am using Dompdf to create my pdf. However, I want the Dompdf project into a reusable phar. How do I do that? Do I need to leave the dependencies in the project, or can I put them into their own phar? I just want the breakdown on how to easily do this from scratch.
-
Modern PDF library (no html)
A middle ground is dompdf, an HTML to PDF converter made in PHP. It isn't full HTML/CSS compatible, but is good enough in most cases.
-
Wordpress budget hosting with ability to install php libraries?
To use it, you will just need to import it to your application (usually using composer). The Github repo has full installation instructions: https://github.com/dompdf/dompdf
- De HTML a PDF
-
Best way to create a pdfs (Recommend a library)
I normally first make a HTML page, then use https://github.com/dompdf/dompdf to make it as a PDF.
-
User editable PDF document + email sign up to download edited PDF
Not a plugin, but I have used this for creating PDF's dynamically. Within wordpress.
- So... no fonts for DomPDF?
- Smarty to PDF?
-
API-driven dynamic PDF generator.
This is what I did. I just coded a little PHP script that lets me select templates and add pages, and type in markdown, and that gets wrapped in a pre-defined template and piped to a preview page. I have a print button to print to PDF, and an edit button to make changes. I could send it through something like dompdf if I didn't want to deal with browser quirks.
mPDF
Posts with mentions or reviews of mPDF.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2024-04-05.
-
Intro to DOMPDF - lightest and simplest PHP library to generate PDF documents
Generating PDF documents out of your app's HTML output is a very common requirement and there are several open source libraries to accomplish this. I came across this need for my project recently and I evaluated many popular ones such as TCPDF, mpdf, FPDF, etc. But the one that truly stood up to my evaluation in terms of efficiency (minimal footprint) and ease of implementation was DOMPDF.
-
HTML to PDF package that supports RTL language?
Not sure if it has all the things you need but we use https://mpdf.github.io/
-
pdf generation
I'm currently using mPDF for large reports including tables, graphs, and complex formatting.
-
How to Create Laravel PDF file and Download?
Visit this link for more options and settings: https://mpdf.github.io/
-
TCPDF
mPDF (very similar to TCPDF)
-
Choosing a PHP Framework over Core PHP
Writing a piece of code for a problem that has already being solved, tested and approved by other developers slows down the development of an application by a huge amount of time. For instance, trying to create a functionality that enables PDF files to be downloadable on a website is a waste of time when you have a package like mPDF that does that.
-
Dynamically Create A PDF Using PHP
Full mPDF Documentation
- Is there a free source available that I can incorporate into my website which will convert HTML/CSS to a PDF that the user can then save locally?
-
[PAID] Request: Convert mPDF files to PDF (eBooks)
About mPDF https://mpdf.github.io/ "mPDF is a PHP library which generates PDF files from UTF-8 encoded HTML."
-
Playwright: Automate Chromium, WebKit and Firefox
For PHP-based applications I've used mPDF[0], which generates PDFs from HTML without using a browser. I'm sure it can't handle all the CSS bells/whistles that a "modern" website uses, but it's worked well for me.
[0]: https://github.com/mpdf/mpdf
What are some alternatives?
When comparing Dompdf and mPDF you can also consider the following projects:
TCPDF - Official clone of PHP library to generate PDF documents and barcodes
WKHTMLToPDF - Convert HTML to PDF using Webkit (QtWebKit)
Snappy - PHP library allowing thumbnail, snapshot or PDF generation from a url or a html page. Wrapper for wkhtmltopdf/wkhtmltoimage
PHPPdf - Pdf and graphic files generator library written in php
PHPJasper - A PHP report generator
jsPDF - Client-side JavaScript PDF generation for everyone.
browsershot - Convert HTML to an image, PDF or string
PHPWord - A pure PHP library for reading and writing word processing documents

CodeRabbit: AI Code Reviews for Developers
Revolutionize your code reviews with AI. CodeRabbit offers PR summaries, code walkthroughs, 1-click suggestions, and AST-based analysis. Boost productivity and code quality across all major languages with each PR.
coderabbit.ai
featured

Nutrient - The #1 PDF SDK Library
Bad PDFs = bad UX. Slow load times, broken annotations, clunky UX frustrates users. Nutrient’s PDF SDKs gives seamless document experiences, fast rendering, annotations, real-time collaboration, 100+ features. Used by 10K+ devs, serving ~half a billion users worldwide. Explore the SDK for free.
nutrient.io
featured