Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/

API Reference

Class

FooterTextBuilder

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

Builder for footer text segments and tokens.

Inheritance

  • Object
  • FooterTextBuilder

Usage

Explore 17 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 12

Methods

CurrentPage 2 overloads
public FooterTextBuilder CurrentPage() #
Returns: FooterTextBuilder

Adds a token that renders the current page number.

Returns

The same builder for chaining.

public FooterTextBuilder CurrentPage(PdfTextRun style) #
Returns: FooterTextBuilder

Adds a current-page token with the supplied visual text style.

Parameters

style OfficeIMO.Pdf.PdfTextRun requiredposition: 0
Text run whose visual styling is applied; its text is ignored.

Returns

The same builder for chaining.

DocumentPages 2 overloads
public FooterTextBuilder DocumentPages() #
Returns: FooterTextBuilder

Adds the page count of the complete document, including all sections.

Returns

The same builder for chaining.

public FooterTextBuilder DocumentPages(PdfTextRun style) #
Returns: FooterTextBuilder

Adds a document-wide page-count token with the supplied visual text style.

Parameters

style OfficeIMO.Pdf.PdfTextRun requiredposition: 0
Text run whose visual styling is applied; its text is ignored.

Returns

The same builder for chaining.

public FooterTextBuilder Run(PdfTextRun run) #
Returns: FooterTextBuilder

Adds a visually styled text run to the footer.

Parameters

run OfficeIMO.Pdf.PdfTextRun requiredposition: 0
Styled text to render. Interactive links, inline visuals, and paragraph tabs are not supported.

Returns

The same builder for chaining.

public FooterTextBuilder Text(String s) #
Returns: FooterTextBuilder

Adds a literal text segment to the footer.

Parameters

s System.String requiredposition: 0
Text to render.

Returns

The same builder for chaining.

TotalPages 2 overloads
public FooterTextBuilder TotalPages() #
Returns: FooterTextBuilder

Adds a token that renders the total number of pages.

Returns

The same builder for chaining.

public FooterTextBuilder TotalPages(PdfTextRun style) #
Returns: FooterTextBuilder

Adds a total-pages token with the supplied visual text style.

Parameters

style OfficeIMO.Pdf.PdfTextRun requiredposition: 0
Text run whose visual styling is applied; its text is ignored.

Returns

The same builder for chaining.