Skip to content
ComPDF
DemoFAQ

PDF Generation Template Editor

Open-source visual PDF generation engine with customizable templates and developer-friendly APIs.

View on GitHub
Guides

Overview

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.

Annotation and Form Events

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.