Szpadel / chrome-headless-render-pdf

225 stars 67 forks source link

Which version of node ? Windows support ? #2

Closed dbpieter closed 7 years ago

dbpieter commented 7 years ago

Hi

This seems like a great tool. Trying it out on windows a.t.m. Unfortunately it explodes right into my face when running a small example. const RenderPDF = require('chrome-headless-render-pdf'); RenderPDF.generateSinglePdf('http://google.com', 'outputPdf.pdf');

image

Running node v7.2.1.

Any help ?

Szpadel commented 7 years ago

Published version was compatible 7.6.0, but I published updated version (1.1.5) that should be also compatible with older versions, can you check that? For windows you will probably have also to specify chrome binary location manually, because I think chrome detection on windows is currently broken.