Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

parameters - name field with spaces causes wkhtmltopdf to fail #13

Open
mtmacdonald opened this issue Apr 1, 2015 · 1 comment · May be fixed by #20
Open

parameters - name field with spaces causes wkhtmltopdf to fail #13

mtmacdonald opened this issue Apr 1, 2015 · 1 comment · May be fixed by #20

Comments

@mtmacdonald
Copy link
Owner

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

@davidnewcomb
Copy link

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 davidnewcomb linked a pull request May 31, 2016 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants