TPDFlibVisualOptionsRun
Data types, document comparison
Description
Runs one options-driven visual comparison for the JSON-option comparison methods.
TPDFlib declares the public methods and a protected dispatch method for the visual comparison of the selected document with a PDF file, driven by JSON options. The edition class supplies the implementation as a callback of this type. A plain TPDFlib instance supplies none, so the call returns the documented empty result and sets LastErrorCode to PDFLIB_ERROR_SMALLBUSINESS_REQUIRED. Application code never declares, assigns or calls a value of this type.
Syntax
Delphi
TPDFlibVisualOptionsRun = Function(Operation: TPDFlibVisualOptionsOperation;
Const BaselineFileName, BaselinePassword, OptionsJSON, OutputFileName: WideString): WideString Of Object;Parameters
| Operation | Comparison to run: voCompare or voSaveReview |
|---|---|
| BaselineFileName | Path of the baseline PDF whose pages are compared against the selected document |
| BaselinePassword | Password for the baseline file, or an empty string when it is not encrypted |
| OptionsJSON | JSON options; for voCompare the resolution, colour tolerance, tile size, ignored rectangles, page pair and artifact requests, for voSaveReview the comparison limits. An empty string selects the defaults |
| OutputFileName | Path of the review PDF to write for voSaveReview; empty for voCompare |
Return values
| J |
See also
TPDFlibVisualOptionsOperation, TPDFlibVisualFileCompare, CompareFileVisualsEx, SaveVisualComparisonPDF