-
Type: Improvement
-
Status: Resolved
-
Priority: Major
-
Resolution: Unresolved
-
Component/s: Publishing tool development
-
Labels:None
-
Environment:
Proj admin
Our current tool for generating PDF from HTML has several major drawbacks.
Puppeteer controlling headless Chrome is a better process, according to several sources.
This will apparently involve installing software on a Linux system.
Background info:
https://github.com/puppeteer/puppeteer
https://developer.chrome.com/articles/new-headless/
Here’s a minimal command-line example of using Headless mode to create a PDF file of a given URL:
chrome --headless --print-to-pdf https://developer.chrome.com/
PDF options: https://pptr.dev/api/puppeteer.pdfoptions
(control header and footer)
Another possible option is using Doppio, a Saas provider. (https://doppio.sh/)