Interface PdfDifferencesFinder
- All Known Implementing Classes:
DefaultPdfDifferencesFinder
public interface PdfDifferencesFinder
This interface is used to encounter differences in pages between given PDF revisions.
-
Method Summary
Modifier and TypeMethodDescriptionReturns a list of found annotation overlapsgetPagesDifferences
(PdfDocumentReader signedRevisionReader, PdfDocumentReader finalRevisionReader) Returns a list of missing/added pages between signed and final revisionsgetVisualDifferences
(PdfDocumentReader signedRevisionReader, PdfDocumentReader finalRevisionReader) Returns a list of visual differences found between signed and final revisions excluding newly created annotationsboolean
isAnnotationBoxOverlapping
(AnnotationBox annotationBox, List<PdfAnnotation> pdfAnnotations) Checks if the givenannotationBox
overlaps withpdfAnnotations
-
Method Details
-
getAnnotationOverlaps
Returns a list of found annotation overlaps- Parameters:
reader
-PdfDocumentReader
the complete PDF document reader- Returns:
- a list of
PdfModification
s
-
isAnnotationBoxOverlapping
Checks if the givenannotationBox
overlaps withpdfAnnotations
- Parameters:
annotationBox
-AnnotationBox
to checkpdfAnnotations
- a list ofPdfAnnotation
to validate against- Returns:
- TRUE when
annotationBox
overlaps with at least one element fromotherAnnotations
list, FALSE otherwise
-
getPagesDifferences
List<PdfModification> getPagesDifferences(PdfDocumentReader signedRevisionReader, PdfDocumentReader finalRevisionReader) Returns a list of missing/added pages between signed and final revisions- Parameters:
signedRevisionReader
-PdfDocumentReader
for the signed (covered) revision contentfinalRevisionReader
-PdfDocumentReader
for the originally provided document- Returns:
- a list of
PdfModification
s
-
getVisualDifferences
List<PdfModification> getVisualDifferences(PdfDocumentReader signedRevisionReader, PdfDocumentReader finalRevisionReader) Returns a list of visual differences found between signed and final revisions excluding newly created annotations- Parameters:
signedRevisionReader
-PdfDocumentReader
for the signed (covered) revision contentfinalRevisionReader
-PdfDocumentReader
for the originally provided document- Returns:
- a list of
PdfModification
s
-