Class DefaultPdfObjectModificationsFinder

java.lang.Object
eu.europa.esig.dss.pdf.modifications.DefaultPdfObjectModificationsFinder
All Implemented Interfaces:
PdfObjectModificationsFinder

public class DefaultPdfObjectModificationsFinder extends Object implements PdfObjectModificationsFinder
Default implementation used to find the differences between two provided PDF revisions.
  • Constructor Details

    • DefaultPdfObjectModificationsFinder

      public DefaultPdfObjectModificationsFinder()
      Default constructor instantiating object with default configuration
  • Method Details

    • setMaximumObjectVerificationDeepness

      public void setMaximumObjectVerificationDeepness(int maximumObjectVerificationDeepness)
      Sets the maximum objects verification deepness of enveloped objects to be compared. NOTE: In case of large PDFs, a too deep object nesting structure may lead to a StackOverflowError. This parameter is needed to prevent the Error. Please adjust the value in case you system may handle less or more recursion. Default: 500
      Parameters:
      maximumObjectVerificationDeepness - defining the maximum recursion deepness on objects analysis
    • setPdfObjectModificationsFilter

      public void setPdfObjectModificationsFilter(PdfObjectModificationsFilter pdfObjectModificationsFilter)
      Sets the PdfObjectModificationsFilter used to categorize found differences between PDF objects.
      Parameters:
      pdfObjectModificationsFilter - PdfObjectModificationsFilter
    • find

      public PdfObjectModifications find(PdfDocumentReader originalRevisionReader, PdfDocumentReader finalRevisionReader)
      Description copied from interface: PdfObjectModificationsFinder
      Returns found and categorized object modifications occurred between originalRevisionReader and finalRevisionReader.
      Specified by:
      find in interface PdfObjectModificationsFinder
      Parameters:
      originalRevisionReader - PdfDocumentReader representing original (e.g. signed) PDF revision
      finalRevisionReader - PdfDocumentReader representing the final PDF document revision
      Returns:
      PdfObjectModifications found between two given revisions
    • find

      public PdfObjectModifications find(PdfDict originalRevisionDict, PdfDict finalRevisionDict)
      Returns found and categorized object differences between two provided PdfDict objects
      Parameters:
      originalRevisionDict - PdfDict representing dictionary extracted from original (e.g. signed) PDF revision
      finalRevisionDict - PdfDict representing dictionary extracted the final PDF document revision
      Returns:
      PdfObjectModifications found between two given PDF dictionaries