RenderPageTileToFileEx

Rendering and printing

Description

Renders one tile and its optional overlap into a raster file

Syntax

function TPDFlib.RenderPageTileToFileEx(DPI: Double;
  Page, PixelLeft, PixelTop, PixelWidth, PixelHeight, Overlap: Integer;
  const Options: TPDFlibPageRasterOptions; const FileName: WideString;
  out Info: TPDFlibPageRasterInfo): Integer;

Parameters

DPI, PageA positive finite resolution and a 1-based page number
PixelLeft, PixelTop, PixelWidth, PixelHeightThe tile core in pixels from the upper-left of the rotated effective page box. The core must fit inside that page
OverlapThe requested expansion in pixels on every side, clipped at the page bounds
OptionsA TPDFlibPageRasterOptions value selecting the raster format and rendering policies
FileNameThe destination image path. The library finishes the tile in memory before publishing the file
InfoAn output TPDFlibPageRasterInfo receiving the actual overlapped pixel bounds and effective rendering choices

Use the pixel coordinates, format and policies of RenderPageTileToStreamEx. The file extension is part of the supplied name. The library finishes the tile in memory before publishing the destination

Return values

Returns 1 when publication succeeds and 0 when rendering or publication fails