yakivmospan / github-wikito-converter

Generate HTML & PDF documentation from Github wiki or any other markdown-based wiki.
Other
293 stars 52 forks source link

PDF Not Generated #43

Open jpwalters opened 5 years ago

jpwalters commented 5 years ago

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 commented 5 years ago

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 commented 5 years ago

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 commented 5 years ago

Did you add wkhtmltopdf to your PATH variable?

landgenoot commented 4 years ago

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