New to KendoReactStart a free 30-day trial

scrollToPage
Premium

Scrolls the PDF Viewer document to the passed page number.

jsx
function App() {
const pdfRef = React.useRef(null);
const handleClick = () => {
  scrollToPage(pdfRef.current.element, 3);
};
return (
  <div>
    <Button onClick={handleClick} >
      Scroll to Page 3
    </Button>
    <PDFViewer
      ref={pdfRef}
    />
  </div>
  )
}

Parameters

rootElement

HTMLElement

The root HTML element of the PDF Viewer component.
pageNumber

number

The page number.
Not finding the help you need?
Contact Support