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
| DPI | Raster resolution from 1 through 4800; EPS and PostScript retain vector page content while using this value for embedded image processing |
|---|---|
| PageRanges | A standard one-based range such as 1-3,5, All, Odd, or Even |
| PrintFormat | PDF_PRINT_STREAM_POSTSCRIPT (0), PDF_PRINT_STREAM_EPS (1), PDF_PRINT_STREAM_PCL (2), or PDF_PRINT_STREAM_PWG (3) |
| Options | Combine PDF_PRINT_STREAM_MONOCHROME (1), PDF_PRINT_STREAM_DUPLEX (2), PDF_PRINT_STREAM_TUMBLE (4), and PDF_PRINT_STREAM_PJL (8) as allowed by the selected format |
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