This plugin generates PDF using the third-party tool
Prince XML.
You will have to download this tool from their site and agree on the
license terms and conditions.
Note that the non-commercial version can be used on a Foswiki server
for free. In this case you will get a
watermark at the top right corner of the generated pdf although not visible when printed out.
In case you'd like to use Prince XML for commercial purposes or just want to
get rid of this watermark, contact
MD Consulting to purchase a
server license with a specific sales discount granted to Foswiki users.
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
You will have to download Prince XML from
http://www.princexml.com/download.
If you are using other plugins that implement a
completePageHandler (see
InstalledPlugins? ) then you most
probably need to tune the
$Foswiki::cfg{PluginsOrder} to list the
GenPDFPrincePlugin behind those. For example,
if you are using
Foswiki:Extensions/ZonePlugin then you will have to list both giving them a specific order
how they execute the
completePageHandler
$Foswiki::cfg{PluginsOrder} = '...., ZonePlugin, GenPDFPrincePlugin';
Note, that ZonePlugin is not required anymore in newer Foswiki engines > 1.1.0.
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.
Plugin Info