API Reference

Class

PdfPageSelector

Namespace OfficeIMO.Pdf
Assembly OfficeIMO.Pdf
Implements
IEquatable<PdfPageSelector>
Modifiers sealed

Represents a document-relative, caller-ordered page selection expression.

Inheritance

  • Object
  • PdfPageSelector

Remarks

Selectors are resolved against a document page count. Supported terms include absolute pages and ranges (1, 1-3, 5..2), end-relative pages (last, last-2), all, odd, even, and exclusions prefixed with !.

Usage

This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.

Accepted by parameters

Methods

Equals 2 overloads
public virtual Boolean Equals(PdfPageSelector other) #
Returns: Boolean

Parameters

other OfficeIMO.Pdf.PdfPageSelector requiredposition: 0
public override Boolean Equals(Object obj) #
Returns: Boolean

Parameters

obj System.Object requiredposition: 0
public override Int32 GetHashCode() #
Returns: Int32
public static PdfPageSelector Parse(String expression) #
Returns: PdfPageSelector

Parses a document-relative page selector.

Parameters

expression System.String requiredposition: 0
public IReadOnlyList<Int32> Resolve(Int32 pageCount) #
Returns: IReadOnlyList<Int32>

Resolves the selector to caller-ordered, one-based page numbers.

Parameters

pageCount System.Int32 requiredposition: 0
public PdfPageSelection ResolveSelection(Int32 pageCount) #
Returns: PdfPageSelection

Resolves the selector to an absolute page selection.

Parameters

pageCount System.Int32 requiredposition: 0
public override String ToString() #
Returns: String
public static Boolean TryParse(String expression, out PdfPageSelector selector) #
Returns: Boolean

Attempts to parse a document-relative page selector.

Parameters

expression System.String requiredposition: 0
selector OfficeIMO.Pdf.PdfPageSelector@ requiredposition: 1

Properties

public String Expression { get; } #

Original normalized selector expression.