docgen icon indicating copy to clipboard operation
docgen copied to clipboard

parameters - name field with spaces causes wkhtmltopdf to fail

Open mtmacdonald opened this issue 9 years ago • 1 comments

The name field is used to name the PDF file. If the name field has spaces in it, wkhtmltopdf fails.

mtmacdonald avatar Apr 01 '15 13:04 mtmacdonald

Here is an example of it failing. It's taken 2 days to track this down. Problem seems to happen on latest 1.x version.

# docgen run -v -i docgen -o docs -p
DocGen version 2.1.3
Loading templates
Loading required JSON metadata files
Loading source files
Generating the static web content
Writing the web page files
Warning: unexpected version of wkhtmltopdf, which may work but is not tested or supported
   expected version: wkhtmltopdf 0.12.2.1 (with patched qt)
   detected version: wkhtmltopdf 0.12.3 (with patched qt)
Creating the PDF copy (may take some time)
MyDebug Args: --zoom,1.0,--image-quality,100,--print-media-type,--orientation,portrait,--page-size,A4,--margin-top,25,--margin-right,15,--margin-bottom,16,--margin-left,15,--header-spacing,5,--footer-spacing,5,--no-stop-slow-scripts,--javascript-delay,2000,--user-style-sheet,/usr/local/lib/node_modules/docgen-tool/source/pdf-stylesheet.css,--header-html,docs/temp/pdfHeader.html,--footer-html,docs/temp/pdfFooter.html,cover,docs/temp/pdfCover.html,toc,--xsl-style-sheet,/usr/local/lib/node_modules/docgen-tool/source/pdf-contents.xsl,docs/index.html,docs/running.html,docs/how-it-works.html,docs/web.html,docs/cfg-xml.html,docs/algorithms.html,docs/calculators.html,docs/bands.html,docs/internal-files.html,docs/application-properties.html,docs/release-notes.html,docs/user,manual.pdf
Loading pages (1/6)
Error: Failed loading page http://docs/user (sometimes it will work just to ignore this error with --load-error-handling ignore)
Exit with code 1 due to network error: TimeoutError
wkhtmltopdf exited with a warning or error: try the -v option for details

Done!

davidnewcomb avatar Apr 10 '16 13:04 davidnewcomb