2022.1

Table Of Contents
To define a password to protect the generated PDF attachment:
1. On the Scripts pane, click the black triangle on the New button and click Email PDF
password Script. A new script is added to the Scripts pane.
2. Double-click the new script to open it.
3. Select a data field and optionally, type a prefix and/or suffix.
Password types
PDF allows for two types of passwords to be set on a secured PDF file: a user password and
owner password. The user password allows a limited access to the file (e.g. printing or copying
text from the PDF is not allowed). The owner password allows normal access to the file. The
Email PDF password script sets both the user and owner password to the same value, so that
when the recipient provides the password, he can manipulate the file without limitations.
Note
If a template has a Control Script that creates multiple PDF attachments, all the
attachments are secured by the same password.
Note
Via a Control Script it is possible to set a different user password and owner password,
see "Control Script: Securing PDF attachments" on page969, "Control Scripts" on
page954 and "Control Script API" on page1466.
Email attachments
Output, generated from an Email template, can have the following attachments:
l The contents of the Print context, in the form of a single PDF attachment. (Compression
options for PDF attachments can be specified in the Email context's properties; see
"Compressing PDF attachments" on page557.)
l The output of the Web context, as a self-contained HTML file.
l Other files, an image or a PDF leaflet for example.
Page 569