wkhtmltopdf "Unknown long argument --javascript-delay 2000"
-
Thanks, that pointed me in the right direction. I changed this:
params.push("--javascript-delay " + options.javascriptDelay );
to:
params.push("--javascript-delay"); params.push(options.javascriptDelay);
-
great!! don't forget to send us the PR when everything is working correctly.. we will be waiting 😀
-
Do you have an example of integrating into the jsreport studio UI? I'll add the following:
--javascript-delay
--window-status
--dpi
--disable-smart-shrinking
--print-media-typeand fix "Keep relative links"
-
i guess that to you are doing your changes directly in the
node_modules
folder of your project, right? to change the visual part (studio) ofjsreport-wkhtmltopdf
you will need to clone the repository (https://github.com/jsreport/jsreport-wkhtmltopdf) and usenpm start
, that will launch the source in development mode, you can add more controls for the editor here, where you can find some examples too, you will need some React.js knowledge.
-
Cool, thanks. I don't know React but it looks straightforward.
-
Would you recommend cloning the repo into the node_modules folder? I'm not sure how jsreport would find it if it wasn't.
-
you should clone the repo (make sure to fork
jsreport-wkhtmltopdf
and clone your fork not the main repo) in a new directory outside of your project, just treat it like a new project and move all your changes there and keep working over there.
-
Got it, thanks. I see in the docs that the extension pulls the studio in for testing.
-
-
👍👍👍👍👍👍👍👍