Version 43 (modified by Ryan J Ollos, 4 years ago) (diff)

Fix attachment link after upgrade to Trac 1.0

Create PDFs from wiki pages


WikiToPdf was developed based on the work of coderanger and athomas. WikiToPdf combines the functionality of CombineWikiPlugin and PageToPdfPlugin on only one plugin and allows one to setup a template file used to generate the PDF file with a cover and a license page, for example. See also TracWikiPrintPlugin.

At the end of each wiki page there is a link named WikiToPdf and works like athomas PageToPdfPlugin plugin but takes into account the parameters on trac.ini (see below) and passes them to htmldoc.

Alternatively, it's possible to select one or more wiki pages and generate one single PDF file just like coderanger work with a cover and a licence from a template file. This feature also takes into account the parameters on trac.ini.

For now, only those users with WIKI_ADMIN permission can combine wiki pages on one single file. It's possible to define values to title, subtitle, file version and date that are used on the PDF file (the placeholders in the HTML file must be #TITLE#, #SUBJECT#, #VERSAO# and #DATA#).

WikiToPdf also adds support to some wiki formatting that didn't work with CombineWikiPlugin neither PageToPdfPlugin:

 - Tables (||Table||)
 - Images ([[Image(wiki:Page:image.png)]])  Attention - don't use this format [[Image(image.png)]], although this may be okay following [11471], please report in #4043 whether this works for you now.
 - Code blocks ({{{ code }}})

ATTENTION: If you want to use a cover file, take care it is encoded in Latin-1 (ISO-8859-1) - otherwise the plugin will fail to use it!


To use WikitoPdf plugin you need to install Htmldoc (


Combining wiki pages:


Single page:



Download and Source

Download the [download:tracwikitopdfplugin zipped source], check out using Subversion, or browse the source with Trac.

Bugs/Feature Requests

Existing bugs and feature requests for TracWikiToPdfPlugin are here.

If you have any issues, create a new ticket.

Recent Changes

16168 by rjollos on 2016-12-29 00:00:22
3.0.0dev: Conform to PEP8
15984 by rjollos on 2016-11-19 18:46:57
3.0.0dev: Fix typos
15542 by rjollos on 2016-05-03 21:50:12
2.3.3dev: Reverse merge [15534] on 0.11 branch

Fixes #6604.



Author: Diorgenes Felipe Grzesiuk
Maintainer: Diorgenes Felipe Grzesiuk

  • Edney Matias da Silva (
  • Holger Lehmann (holger.lehmann@…)
  • Jcole (jcole@…)

Attachments (2)

Download all attachments as: .zip