โ˜… Generate pdfs with Google Chrome on a Forge provisioned server

1 ยท Freek Van der Herten ยท Aug. 7, 2017, 10:41 a.m.
While working on one of our projects my colleague Sebastian had to create a pdf with some text and charts. In a new post on his blog he explains how he leveraged headless Chrome to create the pdf. This week I needed to export some charts generated with HTML & JavaScript as a pdf file. I already had implemented the charts on a webpage so I wanted a solution that allowed me to use my existing code for the pdfs. Headless Chrome to the rescue! Chrome can run as a cli tool, and print a pdf file from...