PDF Generation Template Editor
Open-source visual PDF generation engine with customizable templates and developer-friendly APIs.
Open-source visual PDF generation engine with customizable templates and developer-friendly APIs.
The ComPDF React Native SDK provides callbacks and event APIs for Reader activity, PDF object changes, and application-defined operations.
This chapter applies to an embedded CPDFReaderView. ComPDFKit.openDocument() opens a standalone native Reader and does not expose the component instance required by these APIs.
Guides
Reader State and Interface Callbacks
Respond to Reader readiness, page changes, saves, full-screen changes, and interface actions.
Observe annotation and form-field creation, selection, and undo or redo state.
Content Editing Events and History State
Handle content-editor selection changes and editing history state.
Custom Annotation Creation Workflows
Replace the default annotation creation workflow with application UI.
Custom Actions and Menu Events
Handle custom menus and custom actions for existing annotations and form fields.