pdf-template.vm - Fluid Topics - 3.10

Fluid Topics Configuration and Administration Guide

Category
Reference Guides
Audience
public
Version
3.10

The pdf-template.vm file defines a default PDF template for downloading Personal Books and printing topics from the Reader page.

The following lines show how the PDF cover page is customized using the logo_atp.png and a new title, My Documentation Portal:

<!DOCTYPE html>
<html>
<head>
<title>PDF Export</title>
...
</head>
<body>
<section class="cover">
<img src="images/logo_atp.png" alt="Antidot Technical Publications"/>
<p class="tenant-title">My Documentation Portal</p>
<h1>$pbk-title</h1>
<p class="author">$author-display-name</p>
<p class="date">$formatted-date</p>
</section>
...
</body>
</html>

The cover page of the downloaded PDF of a Personal Book is now customized:

Custom default template

File location

user@host:/usr/local/afs7/conf$ tree
.
└── conf.xml

user@host:/usr/local/afs7/Fluid-Topics/conf$ tree
.
├── -
│ ├── mongo.conf.json
│ └── ws.conf.json
└── $TENANT_ID
├── conf.json
├── header.vm
├── pdf_templates
│ └── $TEMPLATE_DIRECTORY
│ └── pdf-template.vm
├── public
│ ├── custom.js
│ └── custom.less
└── vhost.conf.json