PrinterSettings
Overview
PrinterSettings is a class in Aspose.PDF FOSS for .NET.
Which printer a job goes to and how it is run there: the copies, the page range, the duplex mode, and whether the job is spooled to a file instead of to paper.
This class declares 2 methods for PrinterSettings objects in .NET programs.
Available methods include: PrinterSettings, ToString.
Public members are accessible to any .NET application after installing the Aspose.PDF FOSS for .NET package.
Properties: Collate, Copies, DefaultPageSettings, Duplex, FromPage, MaximumPage, and 7 more.
Properties
| Name | Type | Access | Description |
|---|---|---|---|
PrinterName | string | Read/Write | The printer this job goes to. |
Copies | int | Read/Write | Number of copies of the range to print. |
Collate | bool | Read/Write | True when the copies of a multi-page range are printed document-by-document rather than page-by-page. |
FromPage | int | Read/Write | First page of the range, used when PrintRange is SomePages. |
ToPage | int | Read/Write | Last page of the range, used when PrintRange is SomePages. |
MinimumPage | int | Read/Write | Lowest page number FromPage may take. |
MaximumPage | int | Read/Write | Highest page number ToPage may take. |
PrintRange | PrintRange | Read/Write | Which pages of the document the job covers. |
Duplex | Duplex | Read/Write | How the printer prints on both sides of a sheet. |
PrintToFile | bool | Read/Write | Route the job to PrintFileName rather than to paper. |
PrintFileName | string? | Read/Write | Target path for a PrintToFile job. |
PrinterUri | Uri? | Read/Write | The printer’s address when it is reached over a network protocol rather than by name. |
DefaultPageSettings | PageSettings | Read | The page settings this printer applies to a page the job does not describe itself. |
Methods
| Signature | Description |
|---|---|
PrinterSettings() | Creates settings for the default printer. |
ToString() | Calls ToString on this PrinterSettings instance. |