Create PDFs from wiki pages


This plugin allows you to set up a template file to generate a PDF file with a cover and a license page, for example. At the end of each wiki page there is a link named WikiToPdf and takes into account the parameters in your trac.ini file and passes them to htmldoc.

Combining wiki pages:


Alternatively, it's possible to select one or more wiki pages and generate one single PDF file. This feature also takes into account the parameters in your trac.ini file.

Single page:


Please see the following manuals for older versions of this plugin:

For now, only those users with the WIKI_ADMIN permission can combine wiki pages on one single file. It is 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:

 - 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 }}})

Note: If you want to use a cover file, it must be encoded in Latin-1 (ISO-8859-1), otherwise the plugin will fail to use it!

See also TracWikiPrintPlugin.

Bugs/Feature Requests

Existing bugs and feature requests for TracWikiToPdfPlugin are here.

If you have any issues, create a new ticket.


26 / 41


12 / 22


2 / 2


Download the zipped source.


Check out using Subversion, or browse the source with Trac.


To use WikitoPdf plugin you need to install Htmldoc, which itself is GPL-licensed.

Further general instructions on installing Trac plugins can be found on the TracPlugins page.

Recent Changes

16787 by rjollos on 2017-09-06 21:37:20
TracWikiToPdfPlugin 3.0.0dev: Use subprocess for better error handling

Fixes #13266.

16786 by rjollos on 2017-09-06 20:56:21
TracWikiToPdfPlugin 3.0.0dev: Add charset option for wikitopdf

Fixes #5883.

16785 by rjollos on 2017-09-06 20:42:45
TracWikiToPdfPlugin 3.0.0dev: Fix inclusion of images

The base_dir configuration parameter has been eliminated
and images should be included without any special configuration.

Fixes #10103.



Author: Diorgenes Felipe Grzesiuk
Maintainer: Diorgenes Felipe Grzesiuk

Last modified 4 months ago Last modified on Jun 2, 2017, 2:25:33 AM

Attachments (2)

Download all attachments as: .zip