Content Exporter
📈 Marketplace❓ Support❤️ Feedback🏠 META-INF Apps
  • General Product Information
    • 🤓Overview
    • 🏗️Installing Content Exporter
      • Installation Notes
      • Cloud Platform security
  • User Guides
    • 👷‍♂️Before exporting
      • General settings
      • Remote API (Cloud only)
      • Export profiles
        • General formatting
        • Custom Stylesheets (CSS)
        • Cover pages
        • Page size and the margins
        • Headers & Footers
        • Table of Contents
          • Generating a Table of Contents
          • Formatting Table of Contents
          • Examples for customized Table of Contents
      • Custom stylesheets
        • Stylesheet administration
        • Exporting specific CSS classes
        • Custom Stylesheet Examples
        • Adding a watermark
      • Macros
      • PDF Custom fonts
      • Embedded links with page number
    • 👨‍🏫During export
      • Exporting Confluence pages
      • Customizing the profile
  • Additional Information
    • ▶️Release notes
    • ❓Frequently Asked Questions
    • 3️⃣Supported 3rd party apps
  • Dependency license guide
Powered by GitBook
On this page
  • Adding headers and footers
  • Formatting dates
  • Fields
  • Format string
  • Inserting images into headers and footers
  • Showing the cover page title
  • Page numbering

Was this helpful?

  1. User Guides
  2. Before exporting
  3. Export profiles

Headers & Footers

PreviousPage size and the marginsNextTable of Contents

Last updated 11 months ago

Was this helpful?

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:

[{FIELD_NAME} '{format string}'}].

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.

Symbol
Date or time component
Example

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

Format
Result

[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

Inserting images into headers and footers

1. To insert an image, insert the HTML source in the header or the footer:

<img width=100px src="https://marketplace-cdn.atlassian.com/files/5b8a1b46-bdb7-4039-9bc5-c08f1f1eb746?fileType=image&mode=full-fit" alt="logo" border="0">

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:

<img width=100px src="https://metainf.atlassian.net/wiki/download/thumbnails/70432009/profile-headers_footers.png?version=1&modificationDate=1501685540432&cacheVersion=1&api=v2&width=328&height=250" alt="logo" border="0">

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:

.cover-page.front-cover .wiki-title {
    display: block;
}

.cover-page.back-cover .wiki-title {
    display: block;
}

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.

  1. Front cover page

  2. Table of contents (can be multiple pages)

  3. Exported page(s)

  4. Back cover page

Starts on
Definition

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

Ends on
Definition

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.

Find more details about formatting symbols in the Oracle documentation: .

For more information, see .

Customizing Formats in java
Custom Stylesheets
👷‍♂️
Headers & Footers section
Adding predefined headers & footers
Page cover image