TIP GenPDFWebkitPlugin is not installed on Foswiki.org.

GenPDFWebkitPlugin

Generate PDF using Webkit

This plugin generates PDF using the Webkit rendering engine.

Usage

Get a PDF by adding contenttype=application/pdf to the view url like this:
%SCRIPTURL{"view"}/%WEB%/%TOPIC%?contenttype=application/pdf

Here's the complete Foswiki documentation in PDF.

Installation

Download wkhtmltopdf from http://wkhtmltopdf.org 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 http://foswiki.org/Support/ManuallyInstallingExtensions 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: r9 - 11 Jul 2016, MichaelDaum - This page was cached on 24 Aug 2016 - 03:15.

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