Page navigation
Scroll to a specific page
Enter a page number and synchronize the document viewport with the thumbnail pane.
Ready to tryUse the controls above to interact with this demo.
What this demonstrates
Navigate to a page
Scroll directly to a page while keeping thumbnail and viewport navigation synchronized.
API used
TXDocumentViewer.scrollToPage
Key members
Programmatic page navigation keeps a custom workflow synchronized with the viewer viewport and thumbnail pane.
TXDocumentViewer.scrollToPage(pageNumber);
How it works
The Razor helper prepares the browser viewer and its document. Demo-specific JavaScript uses the public TXDocumentViewer API and remains encapsulated with this demo.
NuGet packages
Displays supported document and PDF formats in the browser.
dotnet add package TXTextControl.Web.DocumentViewer --version 34.2.0
Source files
See the implementation
The view, browser behavior, assets, and controller are encapsulated in Demos/DocumentViewer/Advanced/Scroll.