Page List
Listen for pageList and selectPage commands to build custom host-side page lists and thumbnail rails.
The SDK exposes page list metadata and active selection updates from the Canvas session.
Use the pageList and pageChanged event streams as the single source of truth for rendering custom page rails, thumbnail grids, or PDF navigation panels.
- Instant Syncing: Receive list arrays containing selection flags and thumbnail URLs dynamically.
- Flexible Navigation: Route viewport focuses by calling
.selectPage()with indices or human-facing page numbers. - Embedded Thumbnails: Read base64
thumbnailDataUrlreferences directly from the payload (no separate file retrieval needed).
Listen to page notifications and route viewport selections programmatically:
Subscribe to pageList updates
Select a page
The pageList payload shape is structured as follows:
When integrating custom page lists, align workflows with these rules:
- One Source of Truth: Keep viewport navigation state in the canvas. Render selection outlines based on
page.isSelectedelements rather than updating parent flags directly on click. - Thumbnail Fallbacks: The base64
thumbnailDataUrlstring is generated asynchronously. Provide a loader icon or colored placeholder while the preview loads.
Copy these project setup files to configure mounting, page event subscriptions, and page selection handlers:
Subscribe to pages arrays and select views using standard React state hooks:
Subscribe to pages arrays and select views using standard Vue Composition reactive variables:
Subscribe to pages arrays and select views inside an Angular component model:
Open the focused demo to watch the page rail update live from pageList events.
File Page List Demo
Focused live demo for the pageList workflow.
Preview opens in a large modal for zoom-friendly review.
