Re:I built an online PDF management platform using open-sour...
by sanusihassan on Sunday May 12, 2024 @08:40PM
(#40338705)
the web app i.e the front end part is next.js and typescript mostly, the landing page is built using astro.js, and the back end is heavily python, flask and some javascript for web-to-pdf and markdown-to-pdf, the rest is mostly python
[ Parent
| on HN ]
Re:I built an online PDF management platform using open-sour...
by deathemperor on Monday May 13, 2024 @02:51AM
(#40340414)
just curious: what do you use to convert web pages to pdf?
Re:I built an online PDF management platform using open-sour...
by cuu508 on Monday May 13, 2024 @03:21AM
(#40340569)
Not op, but I've had good experience with WeasyPrint. I use it for generating PDF invoices: I create a HTML invoice from a template, WeasyPrint turns it into a PDF document. It handles CSS, images, custom fonts, etc.
A neat trick to convert HTML to PDF in a browser environment is to open a new browser window, load the HTML in it, and call print() on it, like here: https://stackoverflow.com/a/33890644/5821. May be OK for an internal tool.
Re:I built an online PDF management platform using open-sour...
by sanusihassan on Wednesday May 15, 2024 @11:27PM
(#40374930)
puppeteer