Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/
Class

PdfPageSetup

OfficeIMO.Pdf

Namespace
OfficeIMO.Pdf
Assembly
OfficeIMO.Pdf
Source revision
e163ccb36643 with working tree changes
Modifiers
sealed

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

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 Header { get; } #

Gets the running header.

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.

public PdfHeaderFooter FirstPageFooter { get; } #

Gets the page-1 footer used when PdfPageSetup.DifferentFirstPage is true.

public PdfHeaderFooter EvenPageFooter { get; } #

Gets the even-page footer used when PdfPageSetup.DifferentOddAndEvenPages is true.