Hacker News new | ask | show | jobs
by chreniuc 388 days ago
Nice, it looks wonderful. I've been using pdf.js and it gave me a lot of headaches.

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.

2 comments

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!

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.
This is a really good way to do it. CSS also provides ways to customize page boundaries, margins, headers and footers.