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 Flutter SDK provides callbacks and event APIs for Reader activity, PDF object changes, and application-defined operations.
This chapter applies to CPDFReaderWidget embedded in a Flutter page. ComPDFKit.openDocument() opens a standalone native Reader and does not expose a CPDFReaderWidgetController; the APIs described here are therefore unavailable in that flow.
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.