This page last changed on Aug 26, 2009 by ggaskell.
The PDF customisation procedures described on this page are only applicable to Confluence 2.10.4 and earlier versions
To customise PDF exports in Confluence 3.0, please use the procedure described in Editing the PDF Stylesheet.

Confluence pages can be output to PDF and some resulting PDF content can be modified. While page content itself is not open to customisation without major source-code modifications, this guide covers the easier task of modifying the plain text contained in page titles, headers and footers and page size.

Change in Confluence 2.6.0
The Velocity template files (files whose names end in .vm) were moved inside the main confluence-<version>.jar file with the release of Confluence 2.6.0 (i.e. $CONFLUENCE_INSTALL/confluence/WEB-INF/lib/confluence-2.6.jar in version 2.6). If you are unfamiliar with editing the contents of a .jar file, you may find these instructions useful.
Alternatively Java Servlet Technology allows you to use an unpacked version of the desired file in the WEB_INF/classes directory. Make sure you reproduce the exact directory (package) structure.

Change PDF page size

How to Change the page size

Landscape orientation

To change the default A4 +Portrait+ size to +Landscape+ follow the instructions below:

Editing PDF content

How to edit PDF content:

Modify Page Title

Modify page title for single page export

Modify Page Headers for Space Export

How to modify page headers

Modify Page Footers for Space Export

How to modify page footer

Exporter Velocity Context Additions

Velocity context objects specific to PDF exporting

Export PDF in another Language

How to export in a different language


PDFCustomFooter.png (image/png)
PDFCustomHeader.png (image/png)
PDFCustomHeader2.png (image/png)
Document generated by Confluence on Nov 05, 2009 23:34