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.55k stars 544 forks source link

i cant access to font file in my server online #682

Open woxman opened 2 years ago

woxman commented 2 years ago

what is my problem?

let base = path.resolve('./public') + '/'; base = base.replace(new RegExp(/\/g), '/');

var optionss = {childProcessOptions: { env: { OPENSSL_CONF: '/dev/null' } },format: "Letter",zoomFactor: "1",base: file:///${base},"localUrlAccess": true};