PageSettings
Overview
PageSettings is a class in Aspose.PDF FOSS for .NET.
How one page of a print job is laid on paper: the sheet, its orientation, the margins printed inside it, the bin it is drawn from and the resolution it is rendered at.
This class declares 3 methods for PageSettings objects in .NET programs.
Available methods include: PageSettings, ToString.
Public members are accessible to any .NET application after installing the Aspose.PDF FOSS for .NET package.
Properties: Bounds, Color, IsDefaultMargins, Landscape, Margins, PaperSize, and 3 more.
Properties
| Name | Type | Access | Description |
|---|---|---|---|
PaperSize | PaperSize | Read/Write | The sheet this page is printed on. |
PaperSource | PaperSource | Read/Write | The bin the sheet is drawn from. |
PrinterResolution | PrinterResolution | Read/Write | The resolution the page is rendered at. |
Margins | Margins | Read/Write | The margins left unprinted inside the sheet, in hundredths of an inch. |
Landscape | bool | Read/Write | True when the page is printed across the sheet’s long edge. |
Color | bool | Read/Write | True when the page is printed in colour. |
PrinterSettings | PrinterSettings? | Read/Write | The printer these settings belong to, if any. |
Bounds | Rectangle | Read | The printable sheet in hundredths of an inch, with the paper size’s own dimensions swapped when Landscape is set. |
IsDefaultMargins | bool | Read | True while Margins has never been assigned. |
Methods
| Signature | Description |
|---|---|
PageSettings() | Creates page settings whose every property is still at its default, bound to settings for the default printer - as the reference does, so a caller can fill in PrinterSettings in place and print with it. |
PageSettings(printerSettings: PrinterSettings) | Creates page settings bound to a printer, starting from that printer’s own defaults. |
ToString() | Calls ToString on this PageSettings instance. |