Generate PDF
Markdown to PDF
see markdown.md "Generate PDF from markdown"
HTML to PDF
- How to Automate HTML-to-PDF Conversions
- For conversion examples using different tools see
~/projects/pdf/html-to-pdf-conversion-examples
Weasyprint
HTML -> PDF generator
Issues:
- Presentational hints like img size are ignored by default
- jsonresume PDF looks quite different to what the HTML shows in the browser
- Resulting PDF only has one page i.e. for jsonresume
- Reproducible PDF generation possible again
Various tools
- Pandoc PDFs generated from jsonresume look like shite
- wkhtmltopdf jsonresume PDF shows blurry subtitle and other text styles
- node-html-pdf
- Can't generate PDF from jsonresume: Auto Configuration Failed - libproviders.so: No such file or directory
- Outdated (last commit March 2021)
ebook-convertfromcalibrepackage jsonresume PDF look absolutely horribleunoconv: Standalone tool which uses the LibrOffice library to convert documents from/to different formats jsonresume PDF look absolutely horrible- node-puppeteer-pdf-wrapper Silently finishes without PDF generation...
Headless chromium:
chromium --headless --disable-gpu --print-to-pdf='varac.pdf' --hide-scrollbars
--run-all-compositor-stages-before-draw --no-sandbox --virtual-time-budget=60000 varac.html`
- Most similar to html in browser, but with printing footer/header
- chrome-headless-render-pdf
- Doesn't work: endless Waiting for chrome to became available