Open egorbenko opened 5 years ago
When generating PDF file and trying to pass --replace value through options as
--replace
{ replace: "data somedata" }
which outputs --replace "data somedata" argument and breaks generation
--replace "data somedata"
expected output: --replace data somedata
--replace data somedata
Solution:
https://github.com/tcort/wkhtmltox/blob/master/index.js#L93 do not quote --replace value or provide alternative syntax to include replace option
replace
When generating PDF file and trying to pass
--replace
value through options aswhich outputs
--replace "data somedata"
argument and breaks generationexpected output:
--replace data somedata
Solution:
https://github.com/tcort/wkhtmltox/blob/master/index.js#L93 do not quote
--replace
value or provide alternative syntax to includereplace
option