Class PdfModificationDetection
java.lang.Object
eu.europa.esig.dss.pdf.modifications.PdfModificationDetection
- All Implemented Interfaces:
Serializable
The class contains necessary information about a PDF visual or structure modifications
- See Also:
-
Constructor Summary
ConstructorDescriptionDefault constructor instantiating object with null values -
Method Summary
Modifier and TypeMethodDescriptionboolean
Returns information if any modifications have been detectedReturns information about annotations overlappingReturns a filtered collection of modified objects between signed and final document revisionsReturns information if there are missing/added pages between the signed and final revisionsReturns information about pages with visual differences between signed and final revisionsvoid
setAnnotationOverlaps
(List<PdfModification> annotationOverlaps) Sets annotation overlapsvoid
setObjectModifications
(PdfObjectModifications objectModifications) Sets a collection of filtered object modificationsvoid
setPageDifferences
(List<PdfModification> pageDifferences) Sets page differences (for missing/added pages)void
setVisualDifferences
(List<PdfModification> visualDifferences) Sets visual differences
-
Constructor Details
-
PdfModificationDetection
public PdfModificationDetection()Default constructor instantiating object with null values
-
-
Method Details
-
getAnnotationOverlaps
Returns information about annotations overlapping- Returns:
- a list of
PdfModification
s
-
setAnnotationOverlaps
Sets annotation overlaps- Parameters:
annotationOverlaps
- a list ofPdfModification
s
-
getPageDifferences
Returns information if there are missing/added pages between the signed and final revisions- Returns:
- a list of
PdfModification
s
-
setPageDifferences
Sets page differences (for missing/added pages)- Parameters:
pageDifferences
- a list ofPdfModification
s
-
getVisualDifferences
Returns information about pages with visual differences between signed and final revisions- Returns:
- a list of
PdfModification
s
-
setVisualDifferences
Sets visual differences- Parameters:
visualDifferences
- a list ofPdfModification
s
-
getObjectModifications
Returns a filtered collection of modified objects between signed and final document revisions- Returns:
PdfObjectModifications
-
setObjectModifications
Sets a collection of filtered object modifications- Parameters:
objectModifications
-PdfObjectModifications
-
areModificationsDetected
public boolean areModificationsDetected()Returns information if any modifications have been detected- Returns:
- TRUE if any modifications have been detected, FALSE otherwise
-