Package com.pdftools.pdf
Class Revision
- java.lang.Object
-
- com.pdftools.internal.NativeBase
-
- com.pdftools.internal.NativeObject
-
- com.pdftools.pdf.Revision
-
public class Revision extends NativeObject
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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleangetHasNonSigningUpdates()Whether the revision contains a non-signing update.booleangetIsLatest()Whether this is the latest document revision (Getter)voidwrite(Stream stream)Write the contents of the document revision to a stream-
Methods inherited from class com.pdftools.internal.NativeObject
equals, hashCode
-
-
-
-
Method Detail
-
write
public void write(Stream stream) throws java.io.IOException
Write the contents of the document revision to a stream
- Parameters:
stream- The stream to which the revision is written.- Throws:
java.io.IOException- Unable to write to the stream.java.lang.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.
-
-