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, PageA positive finite resolution and a 1-based page number
OptionsA TPDFlibPageRasterOptions value selecting the raster format, page box, background, optional-content mode, DPI policy and backend-difference policy
FileNameThe destination image path. The library renders the complete image before publishing the file
InfoAn 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