pdfGetMidPageNum

Get the page number at the middle of the window.
int pdfGetMidPageNum(PDFViewerHandle viewer)
This function returns the page number corresponding to the middle of the window.

This function returns -1 if no PDF file is open.

C:
int pageNum; pageNum = pdfGetMidPageNum(viewer);
pdfGetCurrentPageNum