wkhtmltopdf

By Djulia - August 31, 2010

Hi,

It is possible to use the options available directly in the plugin (createPDF.php)?
http://madalgo.au.dk/~jakobt/wkhtmltopdf-0.9.5-doc.html

I would like to test the values of :
General Options
Headers And Footer Options
Table Of Content Options

Thanks, Djulia

Re: [Djulia] wkhtmltopdf

By Chris - August 31, 2010

Hi Djulia,

There's nothing built into the plugin right now to allow this, but you can add your own command-line switches if you're feeling adventurous! Simply add options to the string on line 97:

$switches = "-q --disable-internal-links"; // command line switches: http://madalgo.au.dk/~jakobt/wkhtmltopdf-0.9.5-doc.html

...for example:

$switches = "-q --disable-internal-links --header-center \"Hello World\""; // command line switches: http://madalgo.au.dk/~jakobt/wkhtmltopdf-0.9.5-doc.html

Does that help? Please let me know if you have any questions.
All the best,
Chris

Re: [chris] wkhtmltopdf

By Djulia - September 2, 2010

Hi Chris,

Thanks ! That functions perfectly locally.

But, I thought of being able to circumvent my problem with my host which did not install X11 fonts on the server with the use of --toc-font-name and to use the fonts installed on the server.

But, that did not function.

Djulia