Our great sponsors
-
WorkOS
The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.
-
FPDI
FPDI is a collection of PHP classes facilitating developers to read pages from existing PDF documents and use them as templates in FPDF.
-
browserless
Deploy headless browsers in Docker. Run on our cloud or bring your own. Free for non-commercial uses.
-
InfluxDB
Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
We use mPDF which generates PDF files from UTF-8 encoded HTML. Works a treat for us.
https://github.com/dompdf/dompdf worked fine so far and is plain PHP, but my use cases have been quite simple so far.
fpdi https://github.com/Setasign/FPDI in case when complex PDF need to have data added so it easier just put text over finished document
Nice! I also tried https://github.com/browserless/chrome
https://github.com/spatie/browsershot or any other package which uses puppeteer / headless chrome. Found this to be the best solution when compared with all the other pdf tools. This alongside with the CSS print module polyfill https://github.com/pagedjs/pagedjs makes working with PDFs a breeze.
https://github.com/spatie/browsershot or any other package which uses puppeteer / headless chrome. Found this to be the best solution when compared with all the other pdf tools. This alongside with the CSS print module polyfill https://github.com/pagedjs/pagedjs makes working with PDFs a breeze.
I use this: https://github.com/mnapoli/serverless-pdf-generator
Related posts
- Intro to DOMPDF - lightest and simplest PHP library to generate PDF documents
- 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?
- CSS for Printing to Paper
- 1.5M PDFs in 25 Minutes
- How to Simply Generate a PDF From HTML in Symfony With WeasyPrint