Convert HTML to PDF using Headless Chrome in PHP
There are times when you want to convert HTML to PDF. For instance, if you’re building a web application that allows users to generate PDFs of their invoices, you might want to convert the HTML of the invoice to PDF. Or if you’re building a blog, you might want to convert your blog posts to PDFs.
Sure, there are a lot of dedicated libraries like wkhtmltopdf that can do this for you.
But this can also be done using Headless Chrome as well. And the best part is, you don’t need to install any additional libraries to do this.
Please read more on: https://www.amitmerchant.com/convert-html-to-pdf-using-headless-chrome-in-php/
Category
WRITE A COMMENT