Download pdf
Closed this issue · 0 comments
sugarraysam commented
Produce a pdf version of the resume and make it available for download
Try wkhtmltopdf
on index.html
need to produce another version of index.html
-> pdf.html
, and run wkhtmltopdf
on this file during the pipeline.
New pipeline:
- Generate
pdf.html
fromhugo
data files, use yaml because we can have comments - Generate
index.html
fromhugo
data files (normal landing page), (refactor this data out ofconfig.toml
) - Run
wkhtmltopdf
onpdf.html
and saveresume.pdf
somewhere in thestatic
dir so thatindex.html
can present this file for download- use a download link -> https://www.w3schools.com/howto/howto_html_download_link.asp
- Leave
pdf.html
around , does not matter, nobody will know it exist on the server, and nothing will point to it