API Reference
Cmdlet
Compare-OfficePdfVisual
Compares rendered PDF pages and returns pixel-level review artifacts.
Remarks
Compares rendered PDF pages and returns pixel-level review artifacts.
Examples
Compare selected pages with a small pixel tolerance.
PS>
$options = [OfficeIMO.Pdf.PdfVisualComparisonOptions]::new(); $options.AllowedDifferenceRatio = 0.001; Compare-OfficePdfVisual -ReferencePath .\Expected.pdf -DifferencePath .\Actual.pdf -PageRange '1-3' -Options $options
Returns per-page difference ratios, images, and diagnostics.
Common Parameters
This command supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable.
For more information, see about_CommonParameters.
Syntax
Compare-OfficePdfVisual -DifferencePath <String> [-DifferenceReadOptions <PdfReadOptions>] [-Options <PdfVisualComparisonOptions>] [-PageRange <String>] -ReferencePath <String> [-ReferenceReadOptions <PdfReadOptions>] [<CommonParameters>]#Parameter set:
All Parameter SetsParameters
- DifferencePath String
- Actual PDF path.
- DifferenceReadOptions PdfReadOptions
- Optional bounded read settings for the actual document.
- Options PdfVisualComparisonOptions
- Optional render, tolerance, alignment, background, and ignored regions.
- PageRange String
- Optional one-based ranges such as 1-3,5.
- ReferencePath String
- Expected PDF path.
- ReferenceReadOptions PdfReadOptions
- Optional bounded read settings for the expected document.
Outputs
OfficeIMO.Pdf.PdfVisualComparisonReport