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 Details

    • write

      public void write(Stream stream) throws IOException

      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 - 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.