Headers & Footers
Last updated
Last updated
Important: This feature is only available for PDF export.
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.
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:
The following fields are date fields, so you can use the formatting on them:
[DOCUMENT_LAST_MODIFIED]
[DOCUMENT_CREATED]
[EXPORT_DATE]
Format string is built up from formatting symbols. The following table lists the formatting symbols and their meanings with examples.
y
Year
2022, 22
M
Month in year
08
d
Day in month
30
E
Day in week
Wed
H
Hour in 24h format
09
m
Minute
54
s
Second
32
Some examples using the date for last modified: 2022-08-30 09:54:32
[DOCUMENT_LAST_MODIFIED 'yyyy.MM.dd. HH:mm']
2022.08.30. 09:54
[DOCUMENT_LAST_MODIFIED 'dd/MM/yy EEEE']
30/08/22 Wednesday
[DOCUMENT_LAST_MODIFIED 'E d. MMM yyyy']
Tue 30. Aug 2022
[DOCUMENT_LAST_MODIFIED 'HH:mm:ss']
09:54:32
[DOCUMENT_LAST_MODIFIED 'H:m:s']
9:54:32
Find more details about formatting symbols in the Oracle documentation: Customizing Formats in java.
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.
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.
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
Cover page (Default)
The page counting starts from the cover page (if it is exists).
Table of Contents
The page numbering starts on the Table of Contents page.
First exported page
The page counting starts in the first exported page (after the Table of Contents).
Last exported page
Ends on the last exported page before the back cover page.
Back cover page (Default)
The counting stops at the end of your back cover page.
Enter any text or select some pre-defined fields from the drop-down lists under the text box by selecting it and clicking the button. Clicking the add button inserts the selected value into the text field next to it.