Content transformations
This module defines the document produced when a PDF or Word content leaves Any: on display, on printing, on export or during a signature.
The stored file is not changed. Any creates a copy meant for the reader, to which this module adds the overlay: a watermark carrying the name of the reader, a signatures page, printing or copy restrictions, a password. This is how the same document can be viewed on screen with the "Confidential" mention and exported without it, without ever existing in two copies.
The settings are split by Input formats into two tabs, PDF and Word. The options described below concern the PDF tab.
Options
Controlled operation: generates a specific controlled audit. Controlled prints can be recalled. The ${printCount()} and ${exportCount()} wildcards are then usable in the text overlays.
Minimal Acrobat version supported: Acrobat version below which the produced PDF cannot be opened. A high version gives access to more recent protections, at the cost of compatibility with old readers.
Compression level
Display preferences
The options described below are hints passed to the PDF viewer, which can ignore them. Acrobat tools support these options but the PDF viewers embedded in the web browsers ignore most of them.
Window preferences
These options configure the display of the PDF:
Page layout: layout of the pages on opening (single page, continuous, two columns)
Navigation tab: side panel open on display (bookmarks, thumbnails, layers or attachments)
Open in Fullscreen
Center window
Fit to window
Display document title: displays the title of the document in the title bar of the viewer, rather than the file name
User interface
These options configure the interface offered by the PDF viewer:
Hide toolbar
Hide menu bar
Protection and permissions
The following permissions are stored in the produced PDF. They are therefore passed to the PDF viewer, which can ignore them.
Apply protection: enables the encryption of the produced PDF and unlocks the options below.
Encryption type: encryption algorithm applied to the PDF
User password: password required to open the PDF
Owner password: password required to change the protections of the PDF
Allow copy: copy of the text to the clipboard
Allow annotation
Allow content modification
Allow printing
Metadata
These fields fill in the properties of the produced PDF file: Title, Subject, Author and Keywords.
Additional pages
Additional pages can be inserted in the produced document. Two types exist: the signatures page and the free page.
Signatures page
This page summarizes the signatures applied to the document. The metadata it displays is the one defined in the signature dialog box. Its formatting follows a signatures.xhtml (or anchors_signatures.xhtml) file of the Resources module, which can be replaced by another file loaded in the resources.
Position: page of the document after which the signatures page is inserted
Title: title of the page, for each language
Used resource: XHTML template that formats the page. Without a resource chosen here, Any looks for one automatically, in this order: <name of the configuration>_signatures.xhtml, then <signature type>_signatures.xhtml (any, docusign, lex or yousign), and finally the default template signatures.xhtml. Each of these names takes the form anchors_signatures.xhtml when the signature uses anchors.
Columns list: keys, defined in the signature dialog box, displayed as columns of the signature table, with their labels for each language
Page
This can be used to add a cover page, or a page displaying additional information about the document.
Position: page of the document after which the page is inserted
Title: title of the page, for each language
Used resource: resource, loaded in the Resources module, used as the background of the page.
Overlay
The overlay adds watermarks on the document. It can take three forms: a PDF, a text or an image.
Available data and filters
An overlay text can hold wildcards, with the syntax described in Wildcards and operations. Two wildcards are added, specific to this context:
| Data | Returned value |
|---|---|
${page} | Number of the current page |
${numberOfPages} | Number of pages of the document |
${query("gql")} | Result of a GQL query |
The aspect filter is also added: it applies the data mapping configured on the metadata in the Aspects module, replacing the stored value with its label.
PDF overlay
Select the PDF files, one per line, that are overlaid on the document. These files must have been loaded beforehand in the Resources module of the application.
Text overlay
Displays a text as a watermark with the following options:
Label: text to display, possibly composed with the data above
Font
Style
Size
Color
Rotate
Horizontal alignment: position of the text in the width of the page
Vertical alignment: position of the text in the height of the page
Image overlay
Displays an image that must have been loaded beforehand in the Resources module of the application, with the following options:
File: image used as a watermark
Opacity: opacity of the watermark. The lower it is, the less the watermark hides the underlying text.
Horizontal alignment: position of the image in the width of the page
Vertical alignment: position of the image in the height of the page
Flows
This module can be used in the following flows: