PageVisualComparison

PageVisualComparison

Overview

PageVisualComparison is a class in Aspose.PDF FOSS for Python.

One pair of rendered pages, using zero-based source page indices.

Properties: bbox, changed_pixels, diff_image, difference_ratio, ignored_pixels, matches, and 5 more.

Properties

NameTypeAccessDescription
difference_ratiofloatReadReturn changed pixels divided by nonignored pixels on either page.
page_indexint | NoneReadGets the page index.
other_page_indexint | NoneReadGets the other page index.
sizetuple[int, int] | NoneReadGets the size.
other_sizetuple[int, int] | NoneReadGets the other size.
changed_pixelsintReadGets the changed pixels.
total_pixelsintReadGets the total pixels.
bboxtuple[int, int, int, int] | NoneReadGets the bbox.
matchesboolReadGets the matches.
diff_imageRasterizedPage | NoneReadGets the diff image.
ignored_pixelsintReadGets the ignored pixels.

See Also