Customizing Page Navigation in Our Flutter PDF Viewer

After loading a PDF document in PSPDFKit, you can programmatically interact with it (scrolling to different pages).

Changing the Current Page

A user can change the current page in the UI by swiping on a device. Pages can also be programmatically changed using the startPage configuration option, like so:

// First copy the document from assets to the temporary directory.
await Pspdfkit.present(document.path, {
    startPage: 2