Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
lol768
on Aug 7, 2024
|
parent
|
context
|
favorite
| on:
Puppeteer Support for Firefox
I've found Firefox to produce better PDFs than Chrome does, for what it's worth. There are some CSS properties that Chrome/Skia doesn't honour properly (e.g. repeating-linear-gradient) or ends up generating PDFs from that don't work universally.
freedomben
on Aug 7, 2024
[–]
Indeed, Firefox uses PDF.js which I've found to produce really good results.
mook
on Aug 7, 2024
|
parent
[–]
Doesn't PDF.js go the other way (convert a PDF into HTML-and-friends for display in a browser, instead of "printing" a page into a PDF)?
I haven't dug into it and am quite possibly incorrect, hence the request for confirmation!
freedomben
on Aug 7, 2024
|
root
|
parent
|
next
[–]
Ah damnit, yes you're correct. Too late to edit my comment though.
ak217
on Aug 8, 2024
|
root
|
parent
|
prev
[–]
That is correct, pdfjs is not usable for printing. Chrome uses Skia for printing, not sure what Firefox uses.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: