Table of Contents

Method Add

Namespace
BitMiracle.Docotic.Pdf
Assembly
BitMiracle.Docotic.Pdf.dll

Add(int, PdfPageNumberingStyle)

Adds a new labeling range with the specified first page index and numbering style to the PdfPageLabelMap.

public void Add(int firstPageIndex, PdfPageNumberingStyle style)

Parameters

firstPageIndex int

The zero-based index of the first page in the new labeling range.

style PdfPageNumberingStyle

The numbering style to use for the numeric portion of page labels in the range.

Remarks

If a labeling range with the same first-page index already exists, it is overwritten. Use Contains(int) to determine whether an entry already exists.

firstPageIndex must be greater than or equal to 0.

See the Page labels section for information about creating and managing page labeling ranges.

Exceptions

ArgumentOutOfRangeException

firstPageIndex is negative, or style is Unspecified or an undefined PdfPageNumberingStyle value.

Add(int, PdfPageNumberingStyle, string)

Adds a new labeling range with the specified first page index, numbering style, and label prefix to the PdfPageLabelMap.

public void Add(int firstPageIndex, PdfPageNumberingStyle style, string prefix)

Parameters

firstPageIndex int

The zero-based index of the first page in the new labeling range.

style PdfPageNumberingStyle

The numbering style to use for the numeric portion of page labels in the range.

prefix string

The prefix to prepend to page labels in the range.

Remarks

If a labeling range with the same first-page index already exists, it is overwritten. Use Contains(int) to determine whether an entry already exists.

firstPageIndex must be greater than or equal to 0, and prefix must not be null.

See the Page labels section for information about creating and managing page labeling ranges.

Exceptions

ArgumentOutOfRangeException

firstPageIndex is negative, or style is Unspecified or an undefined PdfPageNumberingStyle value.

ArgumentNullException

prefix is null.

Add(int, PdfPageNumberingStyle, string, int)

Adds a new labeling range with the specified first page index, numbering style, label prefix, and starting number to the PdfPageLabelMap.

public void Add(int firstPageIndex, PdfPageNumberingStyle style, string prefix, int startNumber)

Parameters

firstPageIndex int

The zero-based index of the first page in the new labeling range.

style PdfPageNumberingStyle

The numbering style to use for the numeric portion of page labels in the range.

prefix string

The prefix to prepend to page labels in the range.

startNumber int

The numeric portion of the first page label in the range.

Remarks

If a labeling range with the same first-page index already exists, it is overwritten. Use Contains(int) to determine whether an entry already exists.

firstPageIndex must be greater than or equal to 0, prefix must not be null, and startNumber must be greater than or equal to 1.

Page labels in the range are numbered sequentially starting with startNumber.

See the Page labels section for information about creating and managing page labeling ranges.

Exceptions

ArgumentOutOfRangeException

firstPageIndex is less than 0, startNumber is less than 1, or style is Unspecified or an undefined PdfPageNumberingStyle value.

ArgumentNullException

prefix is null.