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

Is there a way to directly convert a webpage into PDF directly from it's URL? #509

Open ankushgarg1998 opened 5 years ago

Serhioromano commented 5 years ago

I do тещ think so. But you always can download HML from URL and pass it to Pdf creation.

ankushgarg1998 commented 5 years ago

What about the CSS styling attached to it?

Serhioromano commented 5 years ago

It should work fine if it has absolute URL for styles. Just ensure it and if it has a relative path, replace it in a document.