PrinterSettings

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

NameTypeAccessDescription
PrinterNamestringRead/WriteThe printer this job goes to.
CopiesintRead/WriteNumber of copies of the range to print.
CollateboolRead/WriteTrue when the copies of a multi-page range are printed document-by-document rather than page-by-page.
FromPageintRead/WriteFirst page of the range, used when PrintRange is SomePages.
ToPageintRead/WriteLast page of the range, used when PrintRange is SomePages.
MinimumPageintRead/WriteLowest page number FromPage may take.
MaximumPageintRead/WriteHighest page number ToPage may take.
PrintRangePrintRangeRead/WriteWhich pages of the document the job covers.
DuplexDuplexRead/WriteHow the printer prints on both sides of a sheet.
PrintToFileboolRead/WriteRoute the job to PrintFileName rather than to paper.
PrintFileNamestring?Read/WriteTarget path for a PrintToFile job.
PrinterUriUri?Read/WriteThe printer’s address when it is reached over a network protocol rather than by name.
DefaultPageSettingsPageSettingsReadThe page settings this printer applies to a page the job does not describe itself.

Methods

SignatureDescription
PrinterSettings()Creates settings for the default printer.
ToString()Calls ToString on this PrinterSettings instance.

See Also

 English