getPageLabel

abstract fun getPageLabel(@IntRange(from = 0) pageIndex: Int, substituteWithPlainLabel: Boolean): String

Gets the page label.

Return

The page label of the page requested, or null if the document has no label for it and substituteWithPlainLabel is false.

Parameters

pageIndex

The index of the page.

substituteWithPlainLabel

If true, and no page label exists for the given page, returns a string with the page number.