4 ms·
My website's print version is a CV, so you can just print it to a PDF: https://notpushk.in/ https://notpushk.in/ I've also had Netlify generate a PDF of each b
by notpushkin 4y ago
My website's print version is a CV, so you can just print it to a PDF: https://notpushk.in/ https://notpushk.in/
I've also had Netlify generate a PDF of each build using wkhtmltopdf, but there was some issue with fonts which I didn't figure out at the time (it doesn't load them: https://notpushk.in/cv.pdf https://notpushk.in/cv.pdf) and can't had a chance to come back and solve it once and for all.
- doix 4y agoYou can use chrome with '--headless --print-to-pdf' instead of wkhtmltopdf, it worked better when I last looked into this around 2017-2018. Needed to generate a consistent pdf and couldn't rely on the users browser because they might render slightly differently depending on the browser. Instead I ran a "microservice" that just took html and generated PDF's using chrome, it worked pretty well.
- kroltan 4y agoMine too, very convenient. I use hidden elements to present summaries so the whole thing fits in a page. https://kroltan.me https://kroltan.me