Dompdf
TCPDF
Our great sponsors
Dompdf | TCPDF | |
---|---|---|
16 | 16 | |
10,219 | 3,991 | |
1.1% | 1.5% | |
8.4 | 7.3 | |
1 day ago | 7 days ago | |
PHP | PHP | |
GNU Lesser General Public License v3.0 only | GNU General Public License v3.0 or later |
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
-
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.
- 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.
-
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.
-
Bundling lots of .html files into a PDF?
I would also look at dompdf and tcPDF, they would have very advantages if you intend to revise/reprint your documentation.
-
I need to be able to save some HTML+CSS content as a PDF. Currently opening a new tab with only that content, then using the Print to PDF option, which works fine, but I want to offer a more native "Save as PDF" option. Any recommendations that don't cost an arm and leg?
If you use PHP, check out https://github.com/dompdf/dompdf.
-
What do you use to make PDFs? What problems do you have?
DomPDF https://github.com/dompdf/dompdf in case when basic tables, images and text needed
https://github.com/dompdf/dompdf worked fine so far and is plain PHP, but my use cases have been quite simple so far.
-
Best feeling ever
This library for example https://github.com/dompdf/dompdf turns HTML into a PDF
TCPDF
-
PDF generation in Laravel
Leveraging Laravel for PDF generation involves utilizing its built-in features or integrating third-party packages. The framework supports popular packages like dompdf and TCPDF, making it easy to implement PDF generation with minimal effort.
-
PostScript’s Sudden Death in Sonoma
TCPDF has full support for rendering an EPS into a PDF.
It can be fussy.
-
PHP chart libraries
Depending on if this is a web-based project or not this suggestion might not be suitable. But the last few projects like this I did that were web-based I have used Google Charts with TCPDF. I rendered the charts on the page as a "print preview", and since TCPDF supports basic HTML composition I saved out the charts as generated images and submitted them to the server which generates a PDF. Bit convoluted but that was what I came up with in a hurry.
-
pdf generation
Running a headless browser to render HTML is a resource intensive task. If you only need to generate simple documents, you're better off using a tool that generates PDF directly. In the old days we used FPDF and its successors (TCPDF was the most popular). Both seem to have recent releases. There's also mPDF , that seems to be another child of FPDF.
-
Bundling lots of .html files into a PDF?
I would also look at dompdf and tcPDF, they would have very advantages if you intend to revise/reprint your documentation.
-
How to insert MYSQL data in allredy prepared PDF document
The original site still has it available for download, but most importantly, a ton of examples and documentation, that while I haven't tried the github version, probably works based on the same as the old.
-
Ask HN: Why is the PDF format so inaccessible?
I had to recreate some PDFs at work that were created by "iText by Lowagie" which must have been a java library at the time.
I redid it with the FPDF library for php, and it worked out fine. I tried some new features of tcpdf, and it wasn't much work to convert.
Using inkscape to make an EPS out of an svg was also challenging.
I know that postscript and PDF is based on a forth stack machine, if I really had to get that low.
-
Looking for a tool/resource to create a PDF checklist generator.
FPDF and its extended variants TCPDF and mPDF will easily do it (PHP). There are other libs in Python, Java. Most are free/open source. I have some working PHP that may be modifiable for your purposes (web form to collect data and generate checklist) if you are interested in assistance (not free though).
-
Can't figure out how to include files on my project.
I've downloaded the files from https://github.com/tecnickcom/tcpdf and uploaded the tcpdf_min folder to /var/www/html.
My folder structure is just like as seen in https://github.com/tecnickcom/tcpdf
What are some alternatives?
mPDF - PHP library generating PDF files from UTF-8 encoded HTML
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
tc-lib-pdf - TCPDF - PHP PDF Library - https://tcpdf.org
browsershot - Convert HTML to an image, PDF or string
PHPPdf - Pdf and graphic files generator library written in php
jsPDF - Client-side JavaScript PDF generation for everyone.
PHPJasper - A PHP report generator
html-to-pdf-convertor - HTML to PDF convertor for Android