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.
After entering content editing mode, developers can control which types of elements users can edit:
Toolbar Switching
Users can switch between editing types using the bottom toolbar.
API Switching
If the bottom toolbar is hidden, you can switch edit types using the API:
const manager = pdfReaderRef.current._editManager;
// Enable text editing only
await manager.changeEditType([CPDFEditType.Text]);
// Enable both text and image editing
await manager.changeEditType([CPDFEditType.Text, CPDFEditType.Image]);
// Disable all editing (read-only)
await manager.changeEditType([CPDFEditType.NONE]);