RenderPagesToPrintString

Rendering, printing, binary output

Description

Returns a complete PostScript, EPS, PCL, or PWG Raster print stream as a binary-safe AnsiString

Syntax

Delphi

Function TPDFlib.RenderPagesToPrintString(DPI: Double; Const PageRanges: WideString; PrintFormat, Options: Integer): AnsiString;

Parameters

The parameters and accepted format-specific option combinations are identical to RenderPagesToPrintStream

Return values

Returns the complete binary payload, including embedded zero bytes for PCL and PWG, or an empty string on failure

Remarks

Use Length rather than null-terminated string operations when sending or storing the result

DLL clients use RenderPagesToPrintBuffer and ActiveX clients use RenderPagesToPrintData to preserve embedded zero bytes

See also

RenderPagesToPrintStream, RenderPagesToPrintFile