Class PdfObjectModificationsFilter
java.lang.Object
eu.europa.esig.dss.pdf.modifications.PdfObjectModificationsFilter
Used to categorize
ObjectModification
s to four different categories.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionfilter
(Collection<ObjectModification> objectModifications) Categorizes the given collection ofObjectModification
s to various categories and returnsPdfObjectModifications
containing the result of filtering.protected boolean
isAnnotationChange
(ObjectModification objectModification) Returns whether the modification corresponds to an annotation change (such as DocTimeStamp or DSS dictionary creation)protected boolean
isExtensionChange
(ObjectModification objectModification) Returns whether the modification corresponds to a signature augmentation (such as DocTimeStamp or DSS dictionary creation)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)protected boolean
skipChange
(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 ofObjectModification
s to various categories and returnsPdfObjectModifications
containing the result of filtering.- Parameters:
objectModifications
- a collection ofObjectModification
s 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
-