PrintDocumentAdvanced
Rendering and printing
Description
This page describes TPDFlibPrintSettings in PDF Library for Delphi under the "Rendering and printing" topic. API names, parameters, class names, filenames, and literals are kept exactly as they appear in the Delphi library and DLL entry points.
Syntax
Delphi
Function TPDFlib.PrintDocumentAdvanced(Const PrinterName: WideString; StartPage, EndPage, Options: Integer; Const Settings: TPDFlibPrintSettings): Integer;
Parameters
| PrinterName | Installed printer name |
|---|---|
| StartPage | First page to print, using one-based numbering |
| EndPage | Last page to print, using one-based numbering |
| Options | Value returned by PrintOptions |
| Settings | Copies, collation, duplex, orientation, colour, quality, paper and input-bin settings |
Return Values
| 0 | The printer name or a setting was invalid, or the print job failed |
|---|---|
| 1 | The print job completed successfully |
Remarks
Zero-initialise Settings to retain printer defaults, then set only the required members
Use PrintPagesAdvanced when the job needs non-contiguous, reordered, odd or even page ranges