TPDFlibVisualPageRender

Data types, document comparison

Description

Renders one page of a library instance for the rendered-page comparison.

TPDFlib declares the public methods and a protected dispatch method for the rendered-page comparison of two library instances. 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

TPDFlibVisualPageRender = Function(PDF: TPDFlib; Page: Integer; DPI: Double;
  Out Bitmap: TPDFVisualBitmap; Out ErrorText: WideString): Boolean;

Parameters

PDFLibrary instance whose selected document supplies the page
PageOne-based page number in that document
DPIRendering resolution in dots per inch
BitmapReceives the rendered pixels
ErrorTextReceives the failure reason when the result is False

Return values

TrueThe page was rendered and Bitmap holds the pixels
FalseRendering failed; ErrorText describes why

See also

TPDFlibVisualBitmapCompare, CompareRenderedPagesWith, TPDFVisualBitmap