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

PDF Not Generated #43

Open
jpwalters opened this issue May 30, 2019 · 4 comments
Open

PDF Not Generated #43

jpwalters opened this issue May 30, 2019 · 4 comments

Comments

@jpwalters
Copy link

Problem: Unable to generate a PDF file.

OS: Windows 7
gwtc: 1.5.1
wkhtmltopdf: 0.12.5

Note: I installed gwtc using npm.

Here's the command I used to get the versions:
gwtc -V
1.5.1

I additionally installed version 0.12.5 of wkhtmltox.
wkhtmltopdf.exe -V
wkhtmltopdf 0.12.5 (with patched qt)

Here's the command I'm using to generate the pdf:
gwtc -v -o test -f pdf hardware-camera.wiki

Here's the output of that command:

debug:   gwc launched with options format=pdf, output=test, filename=documentation, title=Documentation , logoImage=null, footer=null, pdfPageCount=null, tocFile=null, tocLevel=3, highlightTheme=github, userCssFile=null, verbose=true, disableInlineAssets=false
debug:   Found 42 markdown files and 42 links pointing to them in TOC
debug:   Generating pdf: 42 pages to generate

Nothing appears in my "test" directory. However when I run the following command I get a file named documentation.html as expected.

Let me know if I'm doing something wrong or if there's anything else I should try.

gwtc -v -o test -f html hardware-camera.wiki

@yakivmospan
Copy link
Owner

Can you please try to use all there? Maybe something is wrong with concreate pdf format:

gwtc -v -o test -f all hardware-camera.wiki

@jpwalters
Copy link
Author

jpwalters commented May 31, 2019

I should have mentioned that I did try to use all but when I do that I get a 0k HTML file (due to no file content) and still no PDF. Even though as before the debug message seems to indicate a PDF was generated.

gwtc -v -o test -f all hardware-camera.wiki
debug:   gwc launched with options format=all, output=test, filename=documentation, title=Documentation , logoImage=null, footer=null, pdfPageCount=null, tocFile=null, tocLevel=3, highlightTheme=github, userCssFile=null, verbose=true, disableInlineAssets=false
debug:   Found 42 markdown files and 42 links pointing to them in TOC
debug:   Generating html: 42 pages to generate
debug:   Generating pdf: 42 pages to generate

@dan-r95
Copy link

dan-r95 commented Jun 22, 2019

Did you add wkhtmltopdf to your PATH variable?

@landgenoot
Copy link

It has something to do with incompability between gtk and wkhtmltopdf.
I solved it by installing the latest wkhtmltopdf from https://wkhtmltopdf.org/downloads.html

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

No branches or pull requests

4 participants