Re:Show HN: Open Source PDF Viewer Using Chrome’s PDF Engine...
by const_cast on Thursday May 29, 2025 @06:44PM
(#44131088)
One way to generate PDFs, and it's kind of round-about, using HTML to then convert to PDF with Chromium. You can make the HTML using templates and you get access to CSS, too.
Re:Show HN: Open Source PDF Viewer Using Chrome’s PDF Engine...
by NoahZuniga on Monday June 02, 2025 @02:02AM
(#44156148)
This is a really good way to do it. CSS also provides ways to customize page boundaries, margins, headers and footers.
Re:Show HN: Open Source PDF Viewer Using Chrome’s PDF Engine...
by bobsingor on Thursday May 29, 2025 @05:10PM
(#44130428)
Thanks! Yeah, I really get that, pdf.js gave me a ton of headaches too. Honestly, that’s part of why I started building this. I just needed something that didn’t fight me every step of the way.
Not planning to build a PDF generator just yet, but you're not the first to mention it. If more folks are looking for that kind of thing, I’d definitely consider it. Appreciate you bringing it up!
Another issue with pdfs is generating them, I'm still looking, years later, a library that you can pass a template or something and it generates a pdf. A simple interface to generwting pdfs, I couldn't find any. I was curious if you have plans on also implementing a Pdf generator.