<story><title>Show HN: Pdf-Bot, an API/CLI for Generating PDFs Using Headless Chrome</title><url>https://github.com/esbenp/pdf-bot</url></story><parent_chain></parent_chain><comment><author>umpox</author><text>Pretty cool! Check out Google&amp;#x27;s headless browser API Puppeteer too, they provide a few really useful functions for doing stuff like this.&lt;p&gt;&lt;a href=&quot;https:&amp;#x2F;&amp;#x2F;github.com&amp;#x2F;GoogleChrome&amp;#x2F;puppeteer&amp;#x2F;blob&amp;#x2F;master&amp;#x2F;examples&amp;#x2F;pdf.js&quot; rel=&quot;nofollow&quot;&gt;https:&amp;#x2F;&amp;#x2F;github.com&amp;#x2F;GoogleChrome&amp;#x2F;puppeteer&amp;#x2F;blob&amp;#x2F;master&amp;#x2F;exampl...&lt;/a&gt;&lt;p&gt;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.&lt;p&gt;&lt;a href=&quot;https:&amp;#x2F;&amp;#x2F;github.com&amp;#x2F;umpox&amp;#x2F;generateDeviceScreenshots&quot; rel=&quot;nofollow&quot;&gt;https:&amp;#x2F;&amp;#x2F;github.com&amp;#x2F;umpox&amp;#x2F;generateDeviceScreenshots&lt;/a&gt;</text></comment>
<story><title>Show HN: Pdf-Bot, an API/CLI for Generating PDFs Using Headless Chrome</title><url>https://github.com/esbenp/pdf-bot</url></story><parent_chain></parent_chain><comment><author>czechdeveloper</author><text>All I need now is CMYK support in Chrome and I can make HTML based print ready PDF rendering. That would be quite upgrade compared to my current options.</text></comment>