pdf (paged.js PDF guide)
Dev tools
pdf generation templates
SHOW HN2021
How HN took it
10 positive, 25 neutral or asking, 4 mixed, 10 critical, out of 49 comments about the project. Thread score +0.03.
Idea: 4 for, 2 againstDesign: 2 for, 2 againstExecution: 0 for, 4 againstDocs: 1 for, 1 againstPerformance: 1 for, 1 against
The thread, comment by comment
Each row is a top-level comment and its replies, in HN's order. Select a cell to open that comment on HN.
positive neutral or mixed critical about another commenter or something else the maker
What HN said
What people liked
Paged.js is a great tool for CSS print output
From 2 comments
Thank you! Paged.js is really such an awesome tool. I was searching for many weeks for something like this, so I really think the word needs to get out there more. It could…
abhinav22 on HNThanks Adam! I know I come across as one of the biggest fans of paged.js, but it’s such an inspirational project! The idea to polyfill the required functionality for CSS Print…
abhinav22 on HN
Good alternative to PrinceXML
From 2 comments
I was a huge supporter of PrinceXML / DocRaptor for precisely the same reason - all the alternatives (that I knew at the time) were not good. Paged.js was a revelation (thanks to…
abhinav22 on HNFrom my limited experience with wkhtmltopdf, a solution based on paged.js should work better But maybe that’s because I didn’t fully learn wkhtmltopdf PrinceXML is very good but…
abhinav22 on HN
Objections
Not responsive; works mainly in desktop Chrome
From 2 comments
The section numbers in the table of contents are over writing the text, maybe not so beautiful.
mywacaday on HNThanks for flagging. It’s aimed for desktop users and a reasonable size screen (eg A4 or so), it’s not really a responsive design as it’s meant to be a tool to generate PDFs. So…
abhinav22 on HN
Saved PDF lacks TOC side pane in Acrobat
From 1 comment
Saved PDF (in Chrome) does not have a TOC as a side pane in Acrobat Reader. MIssing pretty important feature.
honzajde on HN
Not a valid Show HN per moderator
From 1 comment
This is nice but it not a valid Show HN. Please read the rules: https://news.ycombinator.com/showhn.html
dang on HN
Requests
Add a license
From 1 comment
This looks great -- well done! I'd love to be able to use it (the CSS in particular) in a number of different projects where creating such nice readable output is a hassle.…
asaibx on HN
Anchor links on headers
From 1 comment
Awesome project. Consider adding in the demo automatic anchors on headers so one can quickly copy them for sharing. Currently they can only be obtained from ToC but you need to…
majkinetor on HN
Fix counter-reset for page start
From 1 comment
I tried out paged.js recently for a genealogical report exported from Gramps, but I had to use PrinceXML because counter-reset to start at a page does not work:…
buovjaga on HN
Questions
How does it handle large multi-page documents?
From 1 comment
My question on these is always how it handles multi page documents. Most DOM and CSS approaches to HTML to PDF require it to fully render everything for placement before it can…
brightball on HN
Alternatives named
PrinceXML
From 2 comments
If you'd like to typeset HTML/CSS documents (with optional PDF-specific CSS blocks to handle page layout, numbering, header/footer, etc.), then I'd highly recommend Prince:…
TimTheTinker on HNDoes anyone know how this compares to PrinceXML / DocRapotor? We pay them big bucks for PDF generation (invoices specifically) and so far we haven't found anything comparable.
exhilaration on HN
wkhtmltopdf
From 1 comment
Can anyone speak to how this compares with something like wkhtmltopdf? That's what I've been using, and this is my first time hearing about PrinceXML too. I generate some HTML…
papa_bear on HN
WeasyPrint
From 1 comment
For anybody working with pandoc you should try Weasyprint [0]. [0]: https://weasyprint.org/
runxel on HN
DocRaptor
From 1 comment
Does anyone know how this compares to PrinceXML / DocRapotor? We pay them big bucks for PDF generation (invoices specifically) and so far we haven't found anything comparable.
exhilaration on HN