Closed christthomc closed 5 years ago
Thanks for submitting the issue and the solution!
I changed the property name to match my (not documented) styleguide (lowerCamelCase) and merged the changes. The option wkhtmltopdfPath
does not match the styleguide because that's the name of the used library.
I published a new package version with the changes on npm (v0.2.2
).
Facing the issue that large documents take a while to render. The class "output/services/pdf-service.js" hosts a method called "renderPdfAsync". This method uses "childProcess.execFile" with a hardcoded timeout of 15 seconds.
The 15 second timeout leads to render failure on larger documents.
The document would be created but is unreadable by any pdf viewer.
Affected Method:
Because the "options" parameter is already there, I'd suggest to introduce a new option parameter that could handle the timeout.
Example: pdfrendertimeout
Options.json:
Need to add the option on "output/services/options-service.js" as well.