--- title: currentPage description: "Learn how to build custom functionality when working with the React PDF Viewer by Kendo UI with the help of the currentPage." api_reference: true type: inner_api slug: api_pdf-viewer_currentpage --- # currentPage A function which gives you the page number of the document according to the scroll position. #### Parameters ##### rootElement HTMLElement The root HTML element of the PDFViewer component. #### Returns number The page number.