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
| Library instance whose selected document supplies the page | |
| Page | One-based page number in that document |
| DPI | Rendering resolution in dots per inch |
| Bitmap | Receives the rendered pixels |
| ErrorText | Receives the failure reason when the result is False |
Return values
| True | The page was rendered and Bitmap holds the pixels |
|---|---|
| False | Rendering failed; ErrorText describes why |
See also
TPDFlibVisualBitmapCompare, CompareRenderedPagesWith, TPDFVisualBitmap