Class 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
      boolean getHasNonSigningUpdates()
      Whether the revision contains a non-signing update.
      boolean getIsLatest()
      Whether this is the latest document revision (Getter)
      void write​(Stream stream)
      Write the contents of the document revision to a stream
      • Methods inherited from class java.lang.Object

        getClass, notify, notifyAll, toString, wait, wait, wait
    • 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 - if stream is null
      • 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)

        Returns true if any update leading up to this revision does not contain a signature. Returns false if every update that leads up to this revision contains a signature.