RenderPageLayerToString

Rendering, annotations, form fields, binary output

« Back to documentation index

Returns one page layer as binary PNG data held in an AnsiString

Syntax

function RenderPageLayerToString(DPI: Double; Page,
  LayerKind: Integer): AnsiString;

Parameters

ParameterDescription
DPIPositive output resolution in dots per inch
Page1-based page number
LayerKind0 selects base page content, 1 annotations, 2 form fields, and 3 all interactive objects

Return values

Binary PNG data on success, or an empty string when the request is invalid or rendering fails

Remarks

Interactive layer PNGs include transparency and are suitable for overlay composition; treat the returned value as binary data rather than encoded text

See also

RenderPageLayerToStream, RenderPageLayerToFile, RenderPageToString