wiki:TracWikiToPdfPlugin

Create PDFs from wiki pages

Notice: This plugin is unmaintained and available for adoption.

Description

This plugin allows you to set up a template file to generate a PDF file from wiki pages in your Trac project. It optionally comes with a cover and a license page. At the bottom of each wiki page there is a link named WikiToPdf for the generation of the PDF file. It takes into account the parameters in your trac.ini file and passes them to htmldoc.

Combining wiki pages:

Example page: tracwikitopdfplugin/0.11/docs/example-documentation.pdf

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:

Example page: tracwikitopdfplugin/0.11/docs/example-howto.pdf

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.

defect

32 / 43

enhancement

13 / 22

task

2 / 2

Download

Download the zipped source from here.

Source

You can check out TracWikiToPdfPlugin from here using Subversion, or browse the source with Trac.

Installation

To use this 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

17423 by rjollos on 2019-07-30 16:41:28
TracWikiToPdfPlugin 3.0.0dev: Improve debug logging

Refs #13568.

17341 by rjollos on 2019-02-19 03:30:48
TracWikiToPdfPlugin 3.0.0dev: Fix failure of r17340 with subpages

Refs #5856.

17340 by rjollos on 2019-02-18 02:02:15
TracWikiToPdfPlugin 3.0.0dev: Fix failure retrieving images

Retrieving images would fail when anonymous lacked
WIKI_VIEW.

Fixes #5856.

(more)

Author/Contributors

Author: Diorgenes Felipe Grzesiuk
Maintainer: none (needsadoption)
Contributors:

Last modified 22 months ago Last modified on Oct 16, 2017, 7:43:38 PM

Attachments (2)

Download all attachments as: .zip