RenderPageToFileEx
Rendering and printing
Description
Renders the full effective page box to a file with the selected raster format, page box, optional-content mode and DPI policy
Syntax
function TPDFlib.RenderPageToFileEx(DPI: Double; Page: Integer;
const Options: TPDFlibPageRasterOptions; const FileName: WideString;
out Info: TPDFlibPageRasterInfo): Integer;
Parameters
| DPI, Page | A positive finite resolution and a 1-based page number |
|---|---|
| Options | A TPDFlibPageRasterOptions value selecting the raster format, page box, background, optional-content mode, DPI policy and backend-difference policy |
| FileName | The destination image path. The library renders the complete image before publishing the file |
| Info | An output TPDFlibPageRasterInfo receiving the raster geometry and effective rendering choices |
Options, DPI and geometry reporting follow RenderPageToStreamEx. Choose the output format in the options. The library renders the page before publishing the file
Return values
Returns 1 after publishing the image and 0 when the request, render or publication fails