Class TimestampConfiguration

Direct Known Subclasses:
TimestampConfiguration, TimestampConfiguration, TimestampConfiguration, TimestampConfiguration

public abstract class TimestampConfiguration extends NativeObject

Configuration for adding time-stamps

This configuration controls the creation of time-stamps in Signer.addTimestamp(com.pdftools.pdf.Document, com.pdftools.sign.TimestampConfiguration, com.pdftools.sys.Stream).

Use a pdftools.crypto.providers.Provider to create a time-stamp configuration.

Note that this object can be re-used to add time-stamps to multiple documents for mass-signing applications.

  • Method Details

    • getFieldName

      public String getFieldName()

      The name of the existing signature field (Getter)

      The pdftools.pdf.SignatureField.getFieldName of an existing, unsigned signature field to time-stamp. Note that when an existing signature field is used, the appearance's position is defined by the existing field. Therefore, make sure the getAppearance() fits into the pdftools.pdf.SignatureField.getBoundingBox.

      If null, a new signature field is created using a unique field name.

      Default: null

      Throws:
      IllegalStateException - If the creating provider has already been closed
    • setFieldName

      public void setFieldName(String value)

      The name of the existing signature field (Setter)

      The pdftools.pdf.SignatureField.getFieldName of an existing, unsigned signature field to time-stamp. Note that when an existing signature field is used, the appearance's position is defined by the existing field. Therefore, make sure the getAppearance() fits into the pdftools.pdf.SignatureField.getBoundingBox.

      If null, a new signature field is created using a unique field name.

      Default: null

      Throws:
      IllegalStateException - If the creating provider has already been closed
    • getAppearance

      public Appearance getAppearance()

      The visual appearance of the time-stamp (Getter)

      The visual appearance or null to create a time-stamp without a visual appearance.

      For time-stamps, not all text variables are available, most notably the [signature:name].

      Default: null

      Throws:
      IllegalStateException - If the creating provider has already been closed
    • setAppearance

      public void setAppearance(Appearance value)

      The visual appearance of the time-stamp (Setter)

      The visual appearance or null to create a time-stamp without a visual appearance.

      For time-stamps, not all text variables are available, most notably the [signature:name].

      Default: null

      Throws:
      IllegalStateException - If the creating provider has already been closed