Problem
Currently, to print a PDF with HTML2PDF.js we have to manually embed the library into an HTML file. This step could be automated by the Pip package which could do this work on the fly.
Solution
- Parse the input HTML
- Embed a script
- Output HTML to a temporary file
- Print the temporary file to PDF.