TPDFlibPrintSettings
Data Types
Description
TPDFlibPrintSettings groups the Windows DEVMODE values accepted by PrintDocumentAdvanced and PrintPagesAdvanced
Syntax
Delphi
type TPDFlibPrintSettings = record
Copies: Integer;
Collate: Integer;
Duplex: Integer;
Orientation: Integer;
Color: Integer;
PrintQuality: Integer;
PaperSize: Integer;
DefaultSource: Integer;
end;
Fields
| Copies | 0 retains the printer default, otherwise use 1 through 32767 |
|---|---|
| Collate | 0 retains the printer default and 1 requests collation |
| Duplex | -1 or 0 retains the default, 1 selects simplex, 2 long-edge duplex and 3 short-edge duplex |
| Orientation | -1 or 0 retains the default, 1 selects portrait and 2 landscape |
| Color | -1 or 0 retains the default, 1 selects monochrome and 2 colour |
| PrintQuality | -1 or 0 retains the default, 1 through 4 select high, medium, low or draft quality, and 5 through 4800 specify DPI |
| PaperSize | -1 or 0 retains the default, otherwise use a positive DMPAPER_* or driver-defined identifier that fits DEVMODE.dmPaperSize |
| DefaultSource | -1 or 0 retains the default, otherwise use a positive DMBIN_* or driver-defined input-bin identifier |
See also
Initialise the record with Default(TPDFlibPrintSettings) or FillChar before setting individual members
See also
PrintPagesAdvanced, PrintDocumentAdvanced, GetPrinterCapabilities