marcbachmann / node-html-pdf

This repo isn't maintained anymore as phantomjs got dreprecated a long time ago. Please migrate to headless chrome/puppeteer.
MIT License
3.56k stars 543 forks source link

Converting an online webpage #426

Open armellarcier opened 6 years ago

armellarcier commented 6 years ago

Hey all ! I can't find a really simple way to do this. Let's say my webpage (html file) is hosted and at http://example.com/test.html. I would like an api to convert it by calling html-pdf "http://example.com/test.html" "./test.pdf" I'm trying to do that with a custom script that will download the file and use html-pdf base option but it clearly seems reinventing the wheel since phantomjs would do that by itself...

Any help appreciated !