Module render

Module render 

Source
Expand description

Document pixel buffer rendering and diffing.

Enums§

Origin
The origin of a documents page, this is used for comparisons of pages with different dimensions.

Constants§

DEFAULT_PIXEL_PER_PT
The default pixel per pt value used for rendering pages to pixel buffers.
PPP_TO_PPI_FACTOR
The factor used to convert pixel per pt to pixel per inch.

Functions§

page_diff
Render the visual diff of two pages. If the pages do not have matching dimensions, then the origin is used to align them, regions without overlap will simply be colored black.
ppi_to_ppp
Converts a pixel-per-inch ratio to a pixel-per-pt ratio.
ppp_to_ppi
Converts a pixel-per-pt ratio to a pixel-per-inch ratio.