LoadingError: Protocol error (Page.navigate): Invalid parameters url: string value expected
Hello,
I'm trying to use PagedJS-CLI to render PDFs from PHP and have been having problems with the input file.
Using a relative file worked e.g. pagedjs-cli input.html
anything else failed e.g. pagedjs-cli "c:\input.htm"
or urls pagedjs-cli "http://input.com/"
and Puppeteer would give the following error LoadingError: Protocol error (Page.navigate): Invalid parameters url: string value expected
Anyway after some console.log here and there I managed to fix it (I think
In pagedjs-cli/printer.js line 64 url = input.url;
should be url = input.href;
P.S also the paged.polyfill.js
isn't updated. I was getting an error that I couldn't reproduce using the the included script so decided to change the file in the node_modules/pagedjs and everything worked