/docs/components/pdf/api
API References
Technical reference for page list, page selection, and page manipulation workflows.
The canvas 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:
requestIdandactionare always required. - Range actions: reorder, rotate, extract, and delete actions require
pageRange. - Paste:
page-pasterequirestargetPageIndex. - Insert / Replace:
page-insertandpage-replacerequirepageRange,file, andselectedPages. - Blank pages:
page-insert-blankrequirespageRange,count,width, andheight.
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
