Headers & Footers
Important: This feature is only available for PDF export.
Adding headers and footers
Custom headers and footers can be defined for the pages meant to be exported. These texts will be displayed on all pages in the appropriate header/footer field.
On the export dialog's Formatting tab a summary shows headers and footers in the Headers/Footers section.
1. To define headers or footers, click on the Headers/Footers section:
Content in headers/footers is handled as HTML. This allows text to be formatted using HTML formatting and styles. Inserting images is also possible. For displaying XML/HTML in the header/footer, they have to be manually escaped.
3. Use the checkbox to show or hide the footers on the cover pages.
Formatting dates
By default dates are shown in the format 'dd.MM.yyyy HH:mm', which produces the following output: 30.08.2022 09:54.
1. To change the default format, provide a custom date format after the field. The syntax for formatting is the following:
Fields
The following fields are date fields, so you can use the formatting on them:
[DOCUMENT_LAST_MODIFIED]
[DOCUMENT_CREATED]
[EXPORT_DATE]
Format string
Format string is built up from formatting symbols. The following table lists the formatting symbols and their meanings with examples.
Some examples using the date for last modified: 2022-08-30 09:54:32
Find more details about formatting symbols in the Oracle documentation: Customizing Formats in java.
Inserting images into headers and footers
1. To insert an image, insert the HTML source in the header or the footer:
2. The link of an image may also be inserted from a Confluence space, as long as the exporting user has read permissions for the page containing the image:
Important: Due to current technical limitations, width must be given to resize the image. The height attribute is ignored.
The current version won't be able to show a preview of the image on the Headers & Footers UI.
Showing the cover page title
By default Content Exporter does not export the title of the cover pages, however, it is possible to show it with the insertion of the following CSS code into the custom stylesheet:
For more information, see Custom Stylesheets.
Page numbering
The first and last numbered page can be selected: Cover page, Table of Contents, first exported page.
Note: The document hierarchy is the following.
Front cover page
Table of contents (can be multiple pages)
Exported page(s)
Back cover page
Last updated