It is possible to upload a custom PDF template as follows:
-
Download the current template (it may be the default one or a previously modified template), or create a new Velocity file.
-
Use CSS parameters to customize the Velocity files PDF template variables.
More information is available on the W3C website.
-
In the appropriate section of the Templates administration interface, select Upload new template.
-
Select the archive containing the Velocity files for all of the tenant's interface languages and all related image files.
-
Select the Save button.
All files must be at the root level of the archive.
It is only possible to configure custom headers, footers, and margin sizes for PDF exports of Personal books.
Upload multiple templates
It is possible to upload either a single template or two different templates depending on which option is selected in the Personal books section.
-
If the Use the general template generation option is selected, Fluid Topics uses the template uploaded in the General section when users download personal books and print topics in the Reader page.
-
If the Enable different personal book templates option is selected, Fluid Topics uses:
-
The template uploaded in the General section when users print topics in the Reader page.
-
The template uploaded in the Personal books section when users download personal books.
-
Browser compatibility for Chrome and Safari
By default, Chrome and Safari disable custom PDF styling. To make custom PDF templates available with these browsers, it is necessary to take the following steps when printing.
For Chrome:
-
In the Print window, under Options, select the Background graphics option.
For Safari:
-
In the Print window, under Safari, select the Print backgrounds option.
Examples
The following examples demonstrate the range of possibilities when customizing PDF templates: