AddWatermark
The AddWatermark function loads a single-page PDF and superimposes that page onto one or more pages in the input document.
Properties
Section titled “Properties ”Input
The following properties specify the PDF document to be loaded and modified by the operation:
File path
Section titled “File path ”Path to the PDF file.
Authentication type
Section titled “Authentication type ”PDF files can be protected using a password or a certificate. This field indicates which type of authentication to attempt when loading the PDF.
- None
The document is unprotected and can be opened immediately. - Password
The document is protected by a password. - Certificate
The document is protected by a certificate.
Password:
Only displayed when Authentication type is ‘Password’.
Password required to access the PDF file.
Certificate:
Section titled “Certificate:”Only displayed when Authentication type is ‘Certificate’.
Certificate source:
Source to load the certificate from:
- File - Load a certificate from a .pfx file.
- Store - Load a certificate from the Windows certificate store.
Displayed when Certificate source is ‘File’.
Certificate file path:
Path to a .pfx file containing a certificate.
Certificate file password:
Password needed to open the certificate file.
Store:
Section titled “Store:”Displayed when Certificate source is ‘Store’.
Certificate:
Certificate in the Windows keystore.
Output
Section titled “Output”The following properties specify options for saving the PDF document after it has been modified.
File path
Path to the PDF file to write to.
Watermark
Section titled “Watermark”File path
The path to a single-page PDF document to use as the watermark.
Authentication type
Section titled “Authentication type ”Authentication type required to open the PDF file.
- None
The document is unprotected and can be opened immediately. - Password
The document is protected by a password. - Certificate
The document is protected by a certificate.
Password:
Section titled “Password:”Only displayed when Authentication type is ‘Password’.
Password required to access the PDF file.
Certificate:
Section titled “Certificate:”Only displayed when Authentication type is ‘Certificate’.
Certificate source:
Source to load the certificate from:
- File - Load a certificate from a .pfx file.
- Store - Load a certificate from the Windows certificate store.
Certificate file path:
Path to a .pfx file containing a certificate.
Certificate file password:
Password needed to open the certificate file.
Pages
The pages to add the watermark to. A dash can be used to specify a range of pages, and multiple ranges can be specified if they are separated by a comma. For example, “1-3, 5” will select pages 1, 2, 3, and 5.
Leave this blank to add the watermark to all pages.
Position
Options:
- Above original
Draws the watermark above the original document contents. - Below original
Draws the watermark below the original document contents.