# getPageNumber method

int getPageNumber()

Gets the the page number of the document.

return The page number of the document. throws DocumentException An error has occurred during Document Library execution.

## Implementation

    int getPageNumber() {
      Pointer<Int> pPageNumber = calloc();
      try {
        var err = documentSDK.id3DocumentInfo_GetPageNumber(_pHandle.value, pPageNumber);
        if (err != DocumentError.success.value) {
          throw DocumentException(err);
        }
        final vPageNumber = pPageNumber.value;
        return vPageNumber;
      } finally {
        calloc.free(pPageNumber);
      }
    }