Class PdfObjectModificationsFilter
java.lang.Object
eu.europa.esig.dss.pdf.modifications.PdfObjectModificationsFilter
Used to categorize
ObjectModifications to four different categories.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfilter(Collection<ObjectModification> objectModifications) Categorizes the given collection ofObjectModifications to various categories and returnsPdfObjectModificationscontaining the result of filtering.protected booleanisAnnotationChange(ObjectModification objectModification) Returns whether the modification corresponds to an annotation change (such as DocTimeStamp or DSS dictionary creation)protected booleanisExtensionChange(ObjectModification objectModification) Returns whether the modification corresponds to a signature augmentation (such as DocTimeStamp or DSS dictionary creation)protected booleanisSignatureOrFormFillChange(ObjectModification objectModification) Returns whether the modification corresponds to a signature addition or a form fill (such as DocTimeStamp or DSS dictionary creation)protected booleanskipChange(ObjectModification objectModification) This method allows to skip some modification occurring in PdfBox and OpenPDF
-
Constructor Details
-
PdfObjectModificationsFilter
public PdfObjectModificationsFilter()Default constructor
-
-
Method Details
-
filter
Categorizes the given collection ofObjectModifications to various categories and returnsPdfObjectModificationscontaining the result of filtering.- Parameters:
objectModifications- a collection ofObjectModifications to be categorized- Returns:
PdfObjectModifications
-
skipChange
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
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
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
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
-