Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/
Class

PdfRunningContentContext

OfficeIMO.Pdf

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

Read-only page information used to compose bounded running header or footer content.

Inheritance

  • object
  • PdfRunningContentContext

Usage

Explore 6 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.

Accepted by parameters 6

Methods

public string FormatPageNumber(int number, PdfPageNumberStyle? style = null) #

Formats a positive page count using the supplied style or this page's numbering style.

Parameters

number int required
style OfficeIMO.Pdf.PdfPageNumberStyle? = null optional

Returns

string

Properties

public int PageNumber { get; } #

Current visible page number, including an explicitly restarted numbering sequence.

public int TotalPages { get; } #

Last visible page number in the current numbering sequence, matching the existing {pages} token.

public int DocumentPageNumber { get; } #

Current one-based physical output page number.

public int DocumentPages { get; } #

Total physical pages in the document.

public int SectionPageNumber { get; } #

Current one-based physical page within the tracked source section, or the PDF page group when no source sections are tracked.

public int SectionPages { get; } #

Physical page count in the tracked source section or PDF page group, independent of visible numbering and restarts.

public OfficeLength ContentWidth { get; } #

Width of the page's content frame in points, including mirrored margins.

public OfficeLength PageWidth { get; } #

Physical page width in points.

public OfficeLength PageHeight { get; } #

Physical page height in points.

public PdfPageNumberStyle PageNumberStyle { get; } #

Number style selected for this page's visible numbering sequence.