Dompdf
browsershot

Dompdf | browsershot | |
---|---|---|
17 | 12 | |
10,706 | 4,930 | |
0.8% | 0.3% | |
7.6 | 8.7 | |
27 days ago | 7 days ago | |
PHP | PHP | |
GNU Lesser General Public License v3.0 only | MIT License |
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
-
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.
browsershot
-
My decade long, carefully maintained collection of 700+ handy web dev & design bookmarks. Delve in to my toolkit!
Sure! PHP makes it really simple. I use https://github.com/spatie/browsershot that just makes its way through a JSON feed of the links on a cronjob. I host a lot of stuff on a single VPS so its super flexible.
- Seeking recommendation for image generation in PHP
-
[Showoff Saturday] 10+ years of collecting web dev/design resources in one easy to discover web dev toolkit 🧰 (link in comments)
I used https://github.com/spatie/browsershot along with the WP REST API on a cronjob. I actually used it for social preview images too! https://twitter.com/addy_codes. Each link has a hidden page that builds the social preview in HTML then the screenshot tool screenshots it for me.
-
Any libraries out there that make building a document/template builder for the end user a possibility? Any suggestions for alternatives?
We have an application that generates shipping documentation in PDF formats based on data pulled from our ERP software. I wrote this application myself and uses templates defined in CSS and then use this package to generate the PDF: https://github.com/spatie/browsershot
-
Options for server-end HTML to PDF?
I've recently switched from wkhtmltopdf to https://github.com/spatie/browsershot.
-
Best way to create a pdfs (Recommend a library)
I highly recommend using Chrome in headless mode using this package.
-
How to make screenshots in Laravel with Browsershot
Browsershot is a software by Spatie that converts a webpage into an image or PDF by utilising a headless instance of Chrome. In this post, you will learn how to install it in your Laravel application and use it.
-
10 Laravel packages that might save your day
An alternative and a more popular solution to this is of course spatie/browsershot which does the same thing but using headless Chrome. I used to use Snappy years ago, but now I use Browsershot.
- Convert a webpage to an image or pdf using headless Chrome
-
Vapor custom Docker image + Browsershot
Has anyone managed to make Browsershot (https://github.com/spatie/browsershot) work on Laravel Vapor with docker ?
What are some alternatives?
mPDF - PHP library generating PDF files from UTF-8 encoded HTML
gotenberg-php - 🐘 A PHP client for interacting with Gotenberg.
TCPDF - Official clone of PHP library to generate PDF documents and barcodes
laravel-snappy - Laravel Snappy PDF
WKHTMLToPDF - Convert HTML to PDF using Webkit (QtWebKit)
browserless - Deploy headless browsers in Docker. Run on our cloud or bring your own. Free for non-commercial uses.
Snappy - PHP library allowing thumbnail, snapshot or PDF generation from a url or a html page. Wrapper for wkhtmltopdf/wkhtmltoimage
headless-chromium-php - Instrument headless chrome/chromium instances from PHP
PHPPdf - Pdf and graphic files generator library written in php
jsPDF - Client-side JavaScript PDF generation for everyone.
pagedjs - Display paginated content in the browser and generate print books using web technology
