add Document Timestamp
public final void addDocumentTimestamp(Document document, String outputPath, TimestampConfiguration timestamp)
Appends a document timestamp to a document, protecting its current state and its validation material.
Parameters
document
The document to timestamp.
output Path
The path where the updated PDF will be saved.
timestamp
The timestamp authority configuration.
public final void addDocumentTimestamp(Document document, FileOutputStream output, TimestampConfiguration timestamp)
Appends a document timestamp to a document, writing the result to a stream.
Parameters
document
The document to timestamp.
output
The output stream where the updated PDF will be written.
timestamp
The timestamp authority configuration.