-
Notifications
You must be signed in to change notification settings - Fork 44
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
toc not working with 0.12.1 #60
Comments
Hello! What program is at version 0.12.1? The lastest version of gimli is 0.5.6. I tested your command in 0.5.6 and it "works", I don't get any error messages but no toc or page numbers. That is because the parameters are in disorder. Your command is
If you reorder the arguments to wkhtmltopdf like this it will work.
|
i mean wkhtmltopdf 0.12.1 system ubuntu
tested with both 0.6.0.pre and 0.5.6
|
The 0.6.0.pre version is experimental and uses another version of wkhtmltopdf. Try uninstalling gimli 0.6.0.pre and use version 0.5.6. This is my output regarding wkhtmltopdf on ubuntu
From the output from wkhtmltopdf v 0.12.1 it seems like you should just supply
See the Table of Content section on http://wkhtmltopdf.org/usage/wkhtmltopdf.txt |
i allready tray this
i would be nice to have a verbose option |
Could you share your output for
and
The -q argument is added here gimli/lib/gimli/wkhtmltopdf.rb Line 30 in 42828df
The issue seems to be that you have a newer version of wkhtmltopdf installed, and not using the version bundled with gimli. There is a discussion here zakird/wkhtmltopdf_binary_gem#17 about releasing the latest binaries v0.12.x to rubygems. When it is released I will update gimli to match the new command line interface, but until it is released there is not much to do, besides checking versions and matching cli arguments based on that. But it's redundant since a new release should be imminent. If you can't remove your version of wkhtmltopdf and use the bundled version then my suggestion is that you checkout the source of gimli and run
That should require usage of the bundled version. Another solution might be using the source version and remove the -q argument and using rake to install your modified version. E.g.
You could also modify the version in A verbose flag is a good idea, there is already a debug flag, that outputs the html generated. It's used at Line 34 in 28933f2
I have added the wkhtmltopdf command used to the debug output in v0.5.7, so you can update to that version and supply the -d flag to see the command used. Thank you for using (or trying to use at least in this case ;)) gimli! |
the toc doesn't work for me with 0.12.1
results in
Unknown long argument --toc
results in
-q specified in incorrect location
The text was updated successfully, but these errors were encountered: