Click or drag to resize

DocumentAddPageLabelRange(Int32, PageLabelStyle, String, Int32) Method

Adds a range of page labels: from the page at firstPageIndex up to the next range, a PDF viewer shows the pages numbered in the specified style, after the prefix, instead of their positions.

Namespace: ExpertPdf.HtmlToPdf.PdfDocument
Assembly: ephtmltopdf (in ephtmltopdf.dll) Version: 22.0.0
Syntax
public void AddPageLabelRange(
	int firstPageIndex,
	PageLabelStyle style,
	string prefix,
	int startNumber
)

Parameters

firstPageIndex  Int32
The zero based index of the first page of the range.
style  PageLabelStyle
The numbering style. With None the label is the prefix alone.
prefix  String
The text before the number of every page in the range, for example "A-". Can be null.
startNumber  Int32
The number of the first page of the range, 1 or more.
Remarks

Page labels are the page numbers PDF viewers display and accept in their page box - for example i, ii, iii for the front matter of a book and 1, 2, 3 for its body, or A-1, A-2 for an appendix. They do not change the pages or their content. A range ends where the next one starts; adding a range with the same first page replaces it.

The ranges refer to the page positions when the document is saved, so add them after the pages are added, inserted (a table of contents, for example) or removed. Pages before the first range are numbered 1, 2, 3.

See Also