Click or drag to resize

PageSetupPaperType Property

Gets or sets the type of the paper for the page.

Namespace:  GemBox.Document
Assembly:  GemBox.Document (in GemBox.Document.dll) Version:
public PaperType PaperType { get; set; }

Property Value

Type: PaperType
The type of the paper.

Default value for this property is A4.

This member is supported in printing.

GemBox.Document uses enhanced printing services provided with Windows Presentation Foundation (WPF). All pages of a specific Section will be printed with settings from PageSetup of that section. Internally, WPF printing uses PrintTicket class to specify page printing settings and value of this member is applied to appropriate member of PrintTicket instance which is used to print all pages of a section with this print options member.

PrintTicket instance which is used to print every page of a section is constructed in following order:

Based on stream specified in PrintOptions(Stream) constructor (base print ticket). Appropriate base print ticket members are set based on PrintOptions instance members values. Base print ticket is cloned for each section, clone's appropriate members are set based on PageSetup instance of that section and clone is used to print all pages of that section.

Printing settings which do not exist in PrintOptions nor in PageSetup can be specified on base print ticket (which stream is passed to PrintOptions(Stream) constructor).

See Also