pagedjs
Display paginated content in the browser and generate print books using web technology (by pagedjs)
browsershot
Convert HTML to an image, PDF or string (by spatie)
pagedjs | browsershot | |
---|---|---|
3 | 12 | |
750 | 4,677 | |
2.0% | 0.5% | |
4.6 | 8.2 | |
30 days ago | 2 days ago | |
HTML | PHP | |
MIT License | MIT License |
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.
pagedjs
Posts with mentions or reviews of pagedjs.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2021-06-15.
-
What do you use to make PDFs? What problems do you have?
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.
-
Wkhtmltopdf: Command line tools to render HTML into PDF
You can try to polyfill that with something like https://github.com/pagedjs/pagedjs
browsershot
Posts with mentions or reviews of browsershot.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2023-02-17.
-
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?
When comparing pagedjs and browsershot you can also consider the following projects:
WKHTMLToPDF - Convert HTML to PDF using Webkit (QtWebKit)
Dompdf - HTML to PDF converter for PHP
jsPDF - Client-side JavaScript PDF generation for everyone.
headless-chromium-php - Instrument headless chrome/chromium instances from PHP
puppeteer - Node.js API for Chrome
laravel-snappy - Laravel Snappy PDF
pdf2htmlEX - Convert PDF to HTML without losing text or format.
mPDF - PHP library generating PDF files from UTF-8 encoded HTML
chrome-aws-lambda-layer - 58 MB Google Chrome to fit inside AWS Lambda Layer compressed with Brotli
athenapdf - Drop-in replacement for wkhtmltopdf built on Go, Electron and Docker
snappdf - Convert webpages or HTML into the PDF file using Chromium-powered browsers.