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

PrinterNameInstalled printer name
StartPageFirst page to print, using one-based numbering
EndPageLast page to print, using one-based numbering
OptionsValue returned by PrintOptions
SettingsCopies, collation, duplex, orientation, colour, quality, paper and input-bin settings

Return Values

0The printer name or a setting was invalid, or the print job failed
1The 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

Remarks

PrintPagesAdvanced, TPDFlibPrintSettings, PrintOptions