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 annotationsbooleanisAnnotationBoxOverlapping(AnnotationBox annotationBox, List<PdfAnnotation> pdfAnnotations) Checks if the givenannotationBoxoverlaps withpdfAnnotations
-
Method Details
-
getAnnotationOverlaps
Returns a list of found annotation overlaps- Parameters:
reader-PdfDocumentReaderthe complete PDF document reader- Returns:
- a list of
PdfModifications
-
isAnnotationBoxOverlapping
Checks if the givenannotationBoxoverlaps withpdfAnnotations- Parameters:
annotationBox-AnnotationBoxto checkpdfAnnotations- a list ofPdfAnnotationto validate against- Returns:
- TRUE when
annotationBoxoverlaps with at least one element fromotherAnnotationslist, FALSE otherwise
-
getPagesDifferences
List<PdfModification> getPagesDifferences(PdfDocumentReader signedRevisionReader, PdfDocumentReader finalRevisionReader) Returns a list of missing/added pages between signed and final revisions- Parameters:
signedRevisionReader-PdfDocumentReaderfor the signed (covered) revision contentfinalRevisionReader-PdfDocumentReaderfor the originally provided document- Returns:
- a list of
PdfModifications
-
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-PdfDocumentReaderfor the signed (covered) revision contentfinalRevisionReader-PdfDocumentReaderfor the originally provided document- Returns:
- a list of
PdfModifications
-