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 545 forks source link

Version 3.0.0 `localUrlAccess: true` doesn't work #620

Closed real-artswan closed 3 years ago

real-artswan commented 3 years ago

I updated to version 3.0.0 and set localUrlAccess: true but local images are not loaded anyway.

fakelag commented 3 years ago

I might have a fix for it here https://github.com/marcbachmann/node-html-pdf/pull/623. The issue is caused by the option being inverted in code

real-artswan commented 3 years ago

It works in 3.0.1, thanks