/docs/components/pdf/api
API References
Technical reference for page list, page selection, and page manipulation workflows.
The viewer emits `pageList` as the latest page snapshot for the active file.
pageList Payload
The host uses `selectPage` to navigate from its own page UI.
selectPage Payload
Use `pageManipulation` for PDF page actions. The exact fields depend on the action.
Treat the payload as a required base plus action-specific fields instead of one giant universal contract.
- Base fields: `requestId` and `action` are always required.
- Range actions: reorder, rotate, extract, and delete actions require `pageRange`.
- Paste: `page-paste` requires `targetPageIndex`.
- Insert / Replace: `page-insert` and `page-replace` require `pageRange`, `file`, and `selectedPages`.
- Blank pages: `page-insert-blank` requires `pageRange`, `count`, `width`, and `height`.
pageManipulation Payload
Page navigation and page manipulation both return result events that the host should handle explicitly.
- selectPageResult: Confirms the page-selection request.
- pageManipulationResult: Reports success or failure for page-level edits.
Result Events
