Class PdfObjectModificationsFilter

java.lang.Object
eu.europa.esig.dss.pdf.modifications.PdfObjectModificationsFilter

public class PdfObjectModificationsFilter extends Object
Used to categorize ObjectModifications to four different categories.
  • Constructor Details

    • PdfObjectModificationsFilter

      public PdfObjectModificationsFilter()
      Default constructor
  • Method Details

    • filter

      public PdfObjectModifications filter(Collection<ObjectModification> objectModifications)
      Categorizes the given collection of ObjectModifications to various categories and returns PdfObjectModifications containing the result of filtering.
      Parameters:
      objectModifications - a collection of ObjectModifications to be categorized
      Returns:
      PdfObjectModifications
    • skipChange

      protected boolean skipChange(ObjectModification objectModification)
      This method allows to skip some modification occurring in PdfBox and OpenPDF
      Parameters:
      objectModification - ObjectModification
      Returns:
      TRUE if the modification should be skipped, FALSE otherwise
    • isExtensionChange

      protected boolean isExtensionChange(ObjectModification objectModification)
      Returns whether the modification corresponds to a signature augmentation (such as DocTimeStamp or DSS dictionary creation)
      Parameters:
      objectModification - ObjectModification
      Returns:
      TRUE if the modification corresponds to augmentation process, FALSE otherwise
    • isSignatureOrFormFillChange

      protected boolean isSignatureOrFormFillChange(ObjectModification objectModification)
      Returns whether the modification corresponds to a signature addition or a form fill (such as DocTimeStamp or DSS dictionary creation)
      Parameters:
      objectModification - ObjectModification
      Returns:
      TRUE if the modification corresponds to a signature addition or a form fill process, FALSE otherwise
    • isAnnotationChange

      protected boolean isAnnotationChange(ObjectModification objectModification)
      Returns whether the modification corresponds to an annotation change (such as DocTimeStamp or DSS dictionary creation)
      Parameters:
      objectModification - ObjectModification
      Returns:
      TRUE if the modification corresponds to an annotation change process, FALSE otherwise