Live data from Hacker News

Show HN: Pdf-Bot, an API/CLI for Generating PDFs Using Headless Chrome

github.com

1–10 of 82 posts

Re: Show HN: Pdf-Bot, an API/CLI for Generating PDFs Using Headless Chrome

#4

Headless chrome is awesome. I'm using it to generate multiple PNG from SVG.

I agree with you but as a 'old' developer, I find it pretty sad that you have to fire up a headless browser + its gigaton of code, to convert a SVG to PNG. But I agree with you, headless chrome can be very useful.

Re: Show HN: Pdf-Bot, an API/CLI for Generating PDFs Using Headless Chrome

#5

Headless chrome is awesome. I'm using it to generate multiple PNG from SVG.

Indeed, I see lately many cool projects emerging. Is a pity that not all projects are using the same GitHub tag #headless-chromium [1]

This other project[2] was recently on HN but you can't find it easily on github search.

[1] https://github.com/search?q=topic%3Aheadless-chromium&type=R...

[2] https://github.com/DevExpress/testcafe

Re: Show HN: Pdf-Bot, an API/CLI for Generating PDFs Using Headless Chrome

#6
Pretty cool! Check out Google's headless browser API Puppeteer too, they provide a few really useful functions for doing stuff like this.

https://github.com/GoogleChrome/puppeteer/blob/master/exampl...

Really easy to work around, I used it to build a simple CLI to generate device screenshots of a webpage by modifying the user-agent and resolution to match each device.

https://github.com/umpox/generateDeviceScreenshots

Re: Show HN: Pdf-Bot, an API/CLI for Generating PDFs Using Headless Chrome

#7
post #4

Headless chrome is awesome. I'm using it to generate multiple PNG from SVG.

I agree with you but as a 'old' developer, I find it pretty sad that you have to fire up a headless browser + its gigaton of code, to convert a SVG to PNG. But I agree with you, headless chrome can be very useful.

[deleted]

Re: Show HN: Pdf-Bot, an API/CLI for Generating PDFs Using Headless Chrome

#9
post #4

Headless chrome is awesome. I'm using it to generate multiple PNG from SVG.

I agree with you but as a 'old' developer, I find it pretty sad that you have to fire up a headless browser + its gigaton of code, to convert a SVG to PNG. But I agree with you, headless chrome can be very useful.

You could also do that with inkscape on the commandline, not sure if it's faster, though...

Re: Show HN: Pdf-Bot, an API/CLI for Generating PDFs Using Headless Chrome

#10
post #8

idea: using this as "send to kindle" generating pdfs from urls you stumble upon, and seamlessly sending them to the *@kindle.com email address to consume in the device I don't know if there's an easier way or service these days

Instapaper did that pretty well, and I think Pocket Premium does that too - in MOBI format, which is much easier to read on the Kindle than PDF.

These days I use Calibre instead because the overall experience is better, but for single articles it's a bit overkill.

Post reply on HN