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.
You can use CPDFConfiguration or CPDFReaderWidgetController to show or hide annotations in the current document.
The following are examples of how to show or hide annotations:
CPDFConfigurationCPDFReaderWidget(
document: widget.documentPath,
configuration: CPDFConfiguration(
readerViewConfig: CPDFReaderViewConfig(annotationsVisible: true)
)
);CPDFReaderWidgetController// Check if annotations are currently visible
bool isAnnotationsVisible = await _controller.isAnnotationsVisible();
// Show annotations
await _controller.setAnnotationsVisible(true);
// Hide annotations
await _controller.setAnnotationsVisible(false);