Class TimestampConfiguration
- Direct Known Subclasses:
TimestampConfiguration,TimestampConfiguration,TimestampConfiguration,TimestampConfiguration
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 Summary
Modifier and TypeMethodDescriptionThe visual appearance of the time-stamp (Getter)The name of the existing signature field (Getter)voidsetAppearance(Appearance value) The visual appearance of the time-stamp (Setter)voidsetFieldName(String value) The name of the existing signature field (Setter)Methods inherited from class com.pdftools.internal.NativeObject
equals, hashCode
-
Method Details
-
getFieldName
The name of the existing signature field (Getter)
The
pdftools.pdf.SignatureField.getFieldNameof 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 thegetAppearance()fits into thepdftools.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
The name of the existing signature field (Setter)
The
pdftools.pdf.SignatureField.getFieldNameof 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 thegetAppearance()fits into thepdftools.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
The visual appearance of the time-stamp (Getter)
The visual appearance or
nullto 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
The visual appearance of the time-stamp (Setter)
The visual appearance or
nullto 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
-