You can fine-tune your template's appearance using the visual editor on the Document Sections tab.
Edit the page layout
The Content document section contains an extra element that visualizes where your Confluence content will be exported.
Using the menu above the page editor, you can change the section name, border dimensions, page margins, and set odd and even pages to have different layouts.
Using the header, content and footer menus to the left of the page editor, you can edit the elements' size and layout, and add a border.
Create a custom background
You can apply a custom background to the current section by clicking the Edit Background button in the top-right corner of the screen.
You can apply a full-page single-color background, use an image as a background, or use a combination of both (an image on a full-color background).
Set a single-color background
To give the section a full-page single-color background, click on #ffffff on the first line of the menu. This opens a picker where you can select the background color:
You can define the background color using either the RGBa, HEX, or HSLa color models – switch between them using the arrows at the bottom-right of the menu.
Use an image as a background
To use an image as a background, click the blank space next to Image:
Once you have selected and uploaded a background image, you can adjust its size, position, and margin.
Add static content
You can add static content (text and images) to any content box in your template, by simply clicking on the box and using the editor that appears. Adding images is easy – click the insert image button and upload by drag and drop.
If you want to add text with a custom typeface, you first have to create a custom text style in the Styles tab, and then apply that style to the text.
Besides static content, you can also add placeholders. Placeholders reference metadata, and insert this metadata into content boxes.
If you are an app developer and want to create your own placeholder for our Scroll PDF Exporter, please have a look at our Create custom template placeholders documentation page.
The following placeholders are available to all PDF exporter users:
|Table of contents|
Displays a table of contents for the document.
|Control the depth of the TOC and define how many heading levels should be displayed. This number is shown on the placeholder.|
|Index||Displays an index with the index terms you defined for this export.|
Displays the document title.
|Document URL||Displays the document's Confluence URL.||Select between the full URL or a tiny URL, and display the link as the plain URL text, the page name, or custom text.|
Current page number
Displays the number of the current page in this document.
Document Page Count
Displays the total number of pages in this document.
Displays the current chapter's heading (Heading 1).
Displays the current section's heading (Heading 2).
|Export Date||Displays the date when the export was created.|
Enter a custom string using the supported date formats
|Export User Username||The username of the user who performed the export.|
|Export User Full Name||The full name of the user who performed the export.|
|Space Name||Displays the name of the Confluence space that the content belongs to.|
|Space Description||The description of the space that contains the exported pages.|
|Creator Username||The username of the creator of the current page.||Only available in Content section for templates.|
|Creator Full Name||The full name of the creator of the current page.||Only available in Content section for templates.|
|Last Modifier Username||The username of the last modifier of the current page.||Only available in Content section for templates.|
|Last Modifier Full Name||The full name of the last modifier of the current page.||Only available in Content section for templates.|
The revision of the current page.
|Only available in Content section for templates.|
|Include page||Insert the content of a certain page.|
|Page Property||The specified page property on the root page.|
The creation date of the current page.
|Enter a custom string using the supported date formats. Only available in Content section for templates.|
|Last Modification Date||The last modification date of the current page.||Enter a custom string using the supported date formats. Only available in Content section for templates.|
|Space logo||The logo of the exported space (or a fallback logo if none is defined).|
|The specified Metadata value on the root page.|
The specified content property on the root page.
You cannot set content properties manually by yourself – they are only set by third party add-ons.
Scroll Versions placeholders
If you are using Scroll Versions, you can use the following placeholders in your template:
|Version ID||The ID of the exported version.|
|Version Name||The name of the exported version.|
|Version Description||The description of the exported version.|
|Version Release Date||The release date of the exported version.||Enter a custom string using the allowed date formats|
|Variant ID||The ID of the exported variant.|
|Variant Name||The name of the exported variant.|
|Variant Description||The description of the exported variant.|
Scroll Translations placeholders
If you are using Scroll Translations, you can use the following placeholders in your template:
|Language Key||The language key of the exported language.|
|Language Name||The language name of the exported language.|
|Language Language||The language attribute of the exported language.|
|Language Country||The country of the exported language.|
|Language Variant||This depends on the system and environment of the Confluence Server. Normally, it is empty.|
Comala Workflows placeholders
If you have integrated Comala Workflows with Scroll PDF Exporter, you can use the following placeholders in your template:
|Workflow State Comment||The comment provided when transitioning the root page into another workflow state without an approval.|
|Workflow State Date||The date when the root page was transitioned into the current workflow state. The output format is customizable.|
|Workflow State Description||The description of the workflow state of the root page in the workflow definition.|
|Workflow State Content||The content revision that the current workflow state of the root page refers to.|
|Workflow State Username||The name of the user who transitioned the root page into its current workflow state.|
|Workflow State Name||The name of the workflow state of the root page.|
|Workflow State is Public||Indicates whether the current workflow state of the root page is in a public state.|
Enable different first page for content section
If you need your exported content to start on a page that has a different layout to the rest of the document, you can add a first page to your template.
To do this, simply remove the Title and TOC sections by clicking on the X icon. In the Content section, click on the cog icon and select Enable different first page:
You can then navigate to the First Page tab to customize the layout for the first page of your export. In the Even & Odd pages tab you can customize the layout for the subsequent pages of your export.
Customize the look of rotated pages
When using the Scroll Portrait, Scroll Landscape or Scroll Table Layout macros you can set the opposite page orientation for a specific page. Within the template editor it is possible to customize the alternate page orientation. You can define the look of these rotated pages by clicking on the cog icon and selecting Define different landscape pages or Define different portrait pages (depending on your template setting):