Package com.pdftools.pdf
Class Revision
java.lang.Object
com.pdftools.internal.NativeBase
com.pdftools.internal.NativeObject
com.pdftools.pdf.Revision
The document revision
An incremental update to a PDF creates a new revision. A revision is defined by the update itself and all updates that came before, including the initial document. An update can introduce changes to the document (visible or invisible), it can sign the current revision, or it can do both. But an update can only ever hold one valid signature.-
Method Summary
Modifier and TypeMethodDescriptionbooleanWhether the revision contains a non-signing update.booleanWhether this is the latest document revision (Getter)voidWrite the contents of the document revision to a streamMethods inherited from class com.pdftools.internal.NativeObject
equals, hashCode
-
Method Details
-
write
Write the contents of the document revision to a stream
- Parameters:
stream- The stream to which the revision is written.- Throws:
IOException- Unable to write to the stream.IllegalArgumentException- ifstreamisnull
-
getIsLatest
public boolean getIsLatest()Whether this is the latest document revision (Getter)
-
getHasNonSigningUpdates
public boolean getHasNonSigningUpdates()Whether the revision contains a non-signing update. (Getter)
Returnstrueif any update leading up to this revision does not contain a signature. Returnsfalseif every update that leads up to this revision contains a signature.
-