PdfPageSetup
OfficeIMO.Pdf
Page size, margins, orientation and running headers and footers of a PDF document, composed page or section.
Inheritance
- object
- PdfPageSetup
Remarks
The setup is a view over its PdfCreateOptions; it holds no state of its own, so cloned and composed-page options expose their own snapshot through their own setup.
Usage
Explore 2 API references to this type
This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.
Returned or exposed by 2
- Property PdfCreateOptions.PageSetup
- Property PdfPageBuilder.PageSetup
Inherited Methods
Properties
public PdfPageSize Size { get; set; } #Gets or sets the page size. Default is Letter (612 by 792 points).
public OfficePageOrientation Orientation { get; set; } #Gets or sets the page orientation. Setting it swaps the page width and height when needed.
public PdfPageSetupMargins Margins { get; } #Gets the page margins. Sides that were not set follow the document theme.
public bool MirrorMargins { get; set; } #Swaps the left and right margins on even visible page numbers. Numbering starts and restarts determine parity.
public bool DifferentFirstPage { get; set; } #When true, page 1 of each section uses PdfPageSetup.FirstPageHeader and PdfPageSetup.FirstPageFooter.
public bool DifferentOddAndEvenPages { get; set; } #When true, even pages use PdfPageSetup.EvenPageHeader and PdfPageSetup.EvenPageFooter.
public bool UseVisiblePageNumberParity { get; set; } #Uses visible page-number parity for odd/even headers, footers and watermarks. First-page variants still refer to the first physical page of each section. The default uses section-relative page parity.
public PdfHeaderFooter FirstPageHeader { get; } #Gets the page-1 header used when PdfPageSetup.DifferentFirstPage is true.
public PdfHeaderFooter EvenPageHeader { get; } #Gets the even-page header used when PdfPageSetup.DifferentOddAndEvenPages is true.