AddWatermark

AddWatermark loads a single page PDF and superimposes that page onto one or more pages in the input document.

Properties

Input

The following properties specify the PDF document to be loaded and modified by the operation:

File path

Path to the PDF file.

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.

  1. None
    The document is unprotected and can be opened immediately.

  2. Password
    The document is protected by a password.

  3. Certificate
    The document is protected by a certificate.

Password

Only displayed when Authentication type is 'Password'.

Password

Password required to access the PDF file.


Note:

All passwords entered into this function's properties will be visible in plain text in the Linx solution file and in the compiled .Net assembly.

Certificate

Only displayed when Authentication type is 'Certificate'.

Certificate source

Source to load the certificate from:

  1. File
    Load a certificate from a .pfx file.
  2. Store
    Load a certificate from the windows certificate store.
File

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

Displayed when Certificate source is 'Store'.

Certificate

Certificate in the windows keystore.



Note:

Certificate protected files are not supported by the "Fill form", "Sign", "Add watermark" and "Concatenate" operations.

If you need to use the operations on a certificate protected document, first remove the certificate protection using the "Change protection" operation. The certificate must include the private key in order to be able to load the document.


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

File path

The path to a single-page PDF document to use as the watermark.

Authentication type

Authentication type required to open the PDF file.

  1. None
    The document is unprotected and can be opened immediately.

  2. Password
    The document is protected by a password.

  3. Certificate
    The document is protected by a certificate.

Password

Only displayed when Authentication type is 'Password'.

Password

Password required to access the PDF file.


Certificate

Only displayed when Authentication type is 'Certificate'.

Certificate source

Source to load the certificate from:

  1. File - Load a certificate from a .pfx file.
  2. 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.


Misc

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 seperated 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:

  1. Above original
    Draws the watermark above the original document contents.

  2. Below original
    Draws the watermark below the original document contents.