News for hackers. Stuff that matters.
Re:Prototype: Puppeteer for Firefox by kyriakos on Tuesday July 23, 2019 @06:41AM (#20505720)
How's pdf rendering in Firefox? Chrome headless has its issues with headers and footers
Re:Prototype: Puppeteer for Firefox by gryffin on Tuesday July 23, 2019 @06:57AM (#20505779)
Firefox uses PDF.js[1] to render pdf. This is a standalone project to render pdf in the browser using html and js. If I remember correctly, you can even render pdf in chrome using this.

[1]https://mozilla.github.io/pdf.js/

Re:Prototype: Puppeteer for Firefox by mjepronk on Tuesday July 23, 2019 @06:53AM (#20505767)
It's good, however it's not possible to use the remote debugging protocol for printing to PDF yet.
Re:Prototype: Puppeteer for Firefox by tmaly on Tuesday July 23, 2019 @07:00AM (#20505786)
I just used Chrome headless to render several thousand pdfs last week and I saw no issues in version 73
Re:Prototype: Puppeteer for Firefox by mkl on Tuesday July 23, 2019 @07:18AM (#20505849)
Did you have a reason to not use PDFium directly?
Re:Prototype: Puppeteer for Firefox by penagwin on Tuesday July 23, 2019 @10:11AM (#20506845)
Likely part of a web scrapping project that may require navigation or other browser things to get to. Or they are trying to avoid detection with a more real browser (you have to change some stuff first).
Re:Prototype: Puppeteer for Firefox by Dowwie on Tuesday July 23, 2019 @05:46PM (#20510508)
Can you recommend any resources for getting started with pdfium?
Re:Prototype: Puppeteer for Firefox by mkl on Wednesday July 24, 2019 @01:40AM (#20512616)
Sorry I'm in that position myself. A couple of years ago I compiled it without too much difficulty, and the included example I tried out rendered a page to a .png. Doing that for that for thousands of PDFs would just take a loop (or find -exec) if you have the files locally.