Comments (7)
Nevermind, I solved that issue. I had not installed wkhtmltopdf.
Now I have another problem. Everytime I generate a PDF it is corrupt (tested with okular and Acrobat Reader 9 in Linux)
from github-wikito-converter.
Can you attach it ? And if possible, attach the .md
files?
from github-wikito-converter.
Hi there.
Sorry about the few details, I was almost heading home and was in a bit of hurry. Some details to check the problem:
The command I'm executing is: gwtc -f -v pdf DualSPHysics.wiki/
The wkhtmltopdf version is: wkhtmltopdf 0.12.4
The output is:
debug: gwc launched with options format=pdf, output=./, filename=documentation, title=Documentation , logoImage=null, footer=null, pdfPageCount=null, tocFile=DualSPHysics.wiki/_Sidebar.md, tocLevel=3, highlightTheme=github, userCssFile=null, verbose=true, disableInlineAssets=false
debug: Found 12 markdown files and 12 links pointing to them in TOC
debug: Generating pdf: 11 pages to generate
I generates this file (documentation.pdf
): https://drive.google.com/open?id=1NsMhslef7AENeFMsnUUsR3jMuhVusRWO
From this wiki: https://github.com/DualSPHysics/DualSPHysics.wiki.git (you can clone it).
Noting that wkhtmltopdf works absolutely fine if I first generate an HTML and then convert it. Though this way the table of contents is not the "nice" one and the result is somewhat valid but could be prettier.
Thanks for the help!
from github-wikito-converter.
Thanks for update, so first of all, I assume the command was:
gwtc -f pdf -v DualSPHysics.wiki/
And the other thing is, if you are on the Mac OS, wkhtmltopdf
has regression issue with 0.12.4 version. I'm using 0.12.3 and here is an pdf output of above command for your repository. Is this version OK for you ?
File that you've uploaded to the drive, I can not even open it, the same for you ?
Thanks,
Yakiv
from github-wikito-converter.
Hi there! Thank you for the answer.
The version that you attached is perfect. I'm using Manjaro (Arch linux) with the wkhtmltopdf installed from the community repo. I'll try to get the same version as you (0.10.3) and try again.
The file I've uploaded to the drive indeed can't be opened. As I said in my replay to the first message of the issue, it always generates corrupted pdf files, not readable.
I'll reply here when I manage to install the 0.12.3 and see if it works.
from github-wikito-converter.
I tested it with 0.12.3 and the problem persists.
Sorry for the hassle, tomorrow i'll check in a CentOS server if it works, I've tried 3 arch-based distros and none of them work (2 manjaro and 1 archlinux). Maybe its the packages on the repo, don't know.
Thank you for the help.
from github-wikito-converter.
Sorry to hear that, as far as I understand the tool is already built in with OS distribution, try to install the downloaded version instead, as mention in this topic of wkhtmltopdf
javascript wrapper that is used in github-wikito-converter
.
Also you may try to update that wrapper tool version to the latest 0.3.4
, as in github-wikito-converter 1.3.0
I'm using the older ^0.1.5
version. But for this you will need to manually build the tool.
Hope this will help you.
from github-wikito-converter.
Related Issues (20)
- Problems with anchors between .md files HOT 1
- PDF Not Generated HOT 4
- Single html page generated - links not working
- Wiki page sections with the same name are not linked correctly HOT 5
- Relative paths in content are not correctly handled HOT 4
- TOC Label HOT 1
- File name contain chinese HOT 2
- Relative links not working
- Md Files with special caracters are ignored
- Some links are not working inside the sidebar
- TOC items and page headers contain "-" and ".md" HOT 3
- Empty PDF Generated HOT 1
- Generated PDF file has 0 size HOT 4
- Highlight.js 9.0 is outdated, the package is broken right now HOT 2
- Pages with `@` in their name aren't handled properly
- locally installed wiki converter can't find things
- Display Home.md first
- SVGs are not rendered in PDFs
- Language support HOT 3
- `npm` fails with `Error: Cannot find module 'babel-core'`. HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from github-wikito-converter.