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

NameTypeAccessDescription
PaperSizePaperSizeRead/WriteThe sheet this page is printed on.
PaperSourcePaperSourceRead/WriteThe bin the sheet is drawn from.
PrinterResolutionPrinterResolutionRead/WriteThe resolution the page is rendered at.
MarginsMarginsRead/WriteThe margins left unprinted inside the sheet, in hundredths of an inch.
LandscapeboolRead/WriteTrue when the page is printed across the sheet’s long edge.
ColorboolRead/WriteTrue when the page is printed in colour.
PrinterSettingsPrinterSettings?Read/WriteThe printer these settings belong to, if any.
BoundsRectangleReadThe printable sheet in hundredths of an inch, with the paper size’s own dimensions swapped when Landscape is set.
IsDefaultMarginsboolReadTrue while Margins has never been assigned.

Methods

SignatureDescription
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.

See Also

 English