New Foswiki release 2.1.6 is available with important security fixes.
Sourceforge foswiki email lists being discontinued. Subscribe to the new Foswiki announce and discuss lists at MailingLists
TIP GenPDFWebkitPlugin is not installed on


Generate PDF using Webkit

This plugin generates PDF using the Webkit rendering engine.


Get a PDF by adding contenttype=application/pdf to the view url like this:

Here's the complete Foswiki documentation in PDF.


Download wkhtmltopdf from matching your platform. In configure make sure commandline tempalte points to the proper location of the wkhtmltopdf binary.

You do not need to install anything in the browser to use this extension. The following instructions are for the administrator who installs the extension on the server.

Open configure, and open the "Extensions" section. Use "Find More Extensions" to get a list of available extensions. Select "Install".

If you have any problems, or if the extension isn't available in configure, then you can still install manually from the command-line. See for more help.

Known issues

as of wkhtmltopdf-0.12.3

  • local anchors as used in a tables of content still don't work (bug report)
  • there's no way to provide a base url on the command-line if a <base ...> tag is missing in the html source

Change History

11 Jul 2016 added option pdfdisposition to inline or redirect content
16 Dec 2014 work around call to unofficial internal api to get absolute pub urls
12 Dec 2013 align with changes in Foswiki:Extensions/GenPDFPrincePlugin
12 Feb 2010 upgraded to wkhtml-0.9.1
17 Nov 2009 fixed use of uninitialized value
09 Sep 2009 initial release
Topic revision: r10 - 27 Mar 2017, GeorgeClark - This page was cached on 11 Mar 2018 - 14:45.

The copyright of the content on this website is held by the contributing authors, except where stated elsewhere. See Copyright Statement. Creative Commons License