Painless HTML to PDF converter?

aminayamusah's profile thumbnail
Hi! I use the pdfkit ruby gem which utilizes wkhtmltopdf for rendering PDFs. Pretty sure it has packages for other frameworks/languages. I had a learning curve installing wkhtmltopdf and it’s many dependencies but otherwise it’s awesome for me.
GraceWitter's profile thumbnail
Thanks, Amina! Yeah I I initially put wkhtmltopdf in the 'maybe' pile because it looks like so much work to set up, but i should probably take a closer look at it. It can't be worse than what I've tried already πŸ˜…
madelyneriksen's profile thumbnail
Hi Grace,I actually did this for my CV ( ) where the page on the web transforms to a different, one page layout when printing but shares the same HTML. You can check out the pdf at the bottom of the page to see the transformationTricks I used:* CSS grid on print styles is your BEST FRIEND. You can actually dictate what goes on what page by way of setting grid units equal to page size.* I used Pandoc with wk2pdf to render the page* Using a separate css sheet for both pages is crucial to keep your sanity!
GraceWitter's profile thumbnail
Ah that's really cool Madelyn! It's interesting that you suggested css grid. Browser inconsistencies with print styles are bascially the whole reason why we're doing this pdf πŸ˜… I initally discounted grid for that reason, but maybe it's worth taking a second look πŸ€”πŸ˜„
ananelson's profile thumbnail