[]
Represents a page labeling range.
A document is divided into labeling ranges, each of which is a series of consecutive pages using the same numbering system. Labeling ranges shall not overlap, so that each page shall have only one label. Pages within a range shall be numbered sequentially in ascending order. A page's label consists of a numeric portion based on its position within its labeling range, optionally preceded by a label prefix denoting the range itself.
public class PageLabelingRange : PdfDictWrapper, IPdfDict
Initializes a new instance of the PageLabelingRange class.
public PageLabelingRange()
Initializes a new instance of the PageLabelingRange class.
public PageLabelingRange(string prefix, NumberingStyle numberingStyle, int startPageNumber)
prefix
stringnumberingStyle
NumberingStylestartPageNumber
intGets the index of the page from which this PageLabelingRange starts.
public int FirstPageIndexInDocument { get; }
Gets or sets the numbering style that shall be used for the numeric portion of each page label. There is no default numbering style; if NumberingStyle is Unset, page labels shall consist solely of a label prefix with no numeric portion.
public NumberingStyle NumberingStyle { get; set; }
Gets or sets the label prefix for page labels in this range.
public string Prefix { get; set; }
Gets or sets the value of the numeric portion for the first page label in the range. Subsequent pages shall be numbered sequentially from this value, which shall be greater than or equal to 1. Default value: 1.
public int StartPageNumber { get; set; }
Returns the label for a page with a specified index.
public string GetPageLabel(int pageDocumentIndex)
pageDocumentIndex
intThe page index in a document.
The page label.