mikepqr / resume.md

Write your resume in Markdown, style it with CSS, output to HTML and PDF
MIT License
569 stars 229 forks source link

Eliminate weasyprint dependency #8

Closed mikepqr closed 3 years ago

mikepqr commented 3 years ago

weasyprint's dependencies are non-trivial to install on Windows and macOS (especially Apple Silicon).

Chrome or chromium are much bigger dependencies, but much easier to install for most users (if not already installed).

This will generate resume.pdf from resume.html.

/Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome --headless --print-to-pdf="resume.pdf" --print-to-pdf-no-header resume.html

The difficulty is figuring out the path of Chrome on all platforms (and especially Windows).

mikepqr commented 3 years ago

https://github.com/fraserxu/electron-pdf is another alternative, but would be tricky for many users to install.

Note these installation concerns go away with #1, but I would rather not require the use of workflows (or Docker). It should be possible to build locally on bare metal on macOS, Windows and Linux.