getPageNumFromPageLabel

Convert a page label to a page number.
getPageNumFromPageLabel([in] BSTR pageLabel, [out, retval] int *pageNum)
This function returns the page number for pageLabel.

Returns -1 if there is no matching page label, or if the PDF file doesn't have page labels.

Page labels are an optional PDF feature, allowing arbitrary strings (e.g., "i", "ii", "iii") to be associated with page numbers.

VB:
pageNum = viewer.getPageLabelFromPageNum("xii")
hasPageLabels
getPageLabelFromPageNum