PdfVisualComparisonOptions
OfficeIMO.Pdf
Options for dependency-free rendered PDF comparison.
Inheritance
- object
- PdfVisualComparisonOptions
Usage
Explore 6 API references to this type
This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.
Returned or exposed by 1
- Property PdfReviewComparisonOptions.Visual
Accepted by parameters 5
- Method PdfDocumentProof.CompareVisual
- Method PdfDocumentProof.CompareVisualPages
- Method PdfVisualComparer.Compare
- Method PdfVisualComparer.CompareImages
- Method PdfVisualComparer.ComparePages
Constructors
public PdfVisualComparisonOptions() #Inherited Methods
Properties
public byte ChannelTolerance { get; set; } #Maximum per-channel difference treated as equal, from 0 through 255.
public double AllowedDifferenceRatio { get; set; } #Maximum changed-pixel ratio accepted as equal, from 0 through 1.
public PdfVisualPageAlignment Alignment { get; set; } #Alignment for pages with differing dimensions.
public OfficeColor Background { get; set; } #Raster background used for both inputs.
public IList<PdfPixelRegion> IgnoredRegions { get; } #Ignored comparison regions in output pixel coordinates. At most 4096 regions are accepted.
public OfficePageSelector? ExpectedPages { get; set; } #Optional ordered, document-relative expected-page selection. Null selects every expected page.
public OfficePageSelector? ActualPages { get; set; } #Optional ordered, document-relative actual-page selection. Null selects every actual page.
public int MaxPages { get; set; } #Maximum selected pages on either side, including repeated pages.
public long MaxPixelsPerImage { get; set; } #Maximum raster pixels allocated for one expected, actual, or diff page image.
public long MaxTotalPixels { get; set; } #Maximum aggregate raster pixels allocated across the comparison.
public long MaxTotalOutputBytes { get; set; } #Maximum aggregate PNG bytes retained in the comparison report.
public bool IgnoreAntialiasing { get; set; } #When true, a pixel above PdfVisualComparisonOptions.ChannelTolerance does not count as changed if it looks like an edge that moved by less than a pixel: each image's colour lies, within the tolerance, inside the colour range of the other image's 3x3 neighbourhood. Renderers that place the same glyph edges slightly differently then match, while ink added or removed against plain background still counts. The highlighted diff marks ignored pixels in yellow. Pages with different dimensions are compared without this rule.