Skip to content

Latest commit

 

History

History
15 lines (10 loc) · 769 Bytes

wkhtmltopdf.md

File metadata and controls

15 lines (10 loc) · 769 Bytes

Generate PDF from Markdown or HTML

wkhtmltopdf creates pdf versions with a WYSIWIG adherence to layout.

I use my text_base.md cv use the MarkdownAllinOne extension to generate (print current page) an html version and then use the command line tool wkhtmltopdf to generate the final pdf wkhtmltopdf --enable-local-file-access ./cv_text_base.html cv_2021.pdf

I've had problems with the images not rendering with wkhtmltopdf so in the end:

  • use my text_base.md cv use the MarkdownAllinOne extension to generate (print current page)
  • open in default browser
  • save page as (web page complete)
  • compress html and files
  • upload to https://html2pdf.com/

Or even more simply, open the html version in the browser, print and save to pdf