CPDFEditManager class

Content Edit Manager Manages switching between different editing types in content edit mode.

Supported editing types: text, image, and path.

  • Multiple types can be enabled at the same time. For example, enabling both text and image allows editing both text and image.
  • If only path is enabled, only paths can be edited.
  • If none is selected, no content can be edited.

Features:

Examples:

  • Edit text and image:
final editManager = controller.editManager;
editManager.changeEditType([CPDFEditType.text, CPDFEditType.image]);
  • Edit path only:
final editManager = controller.editManager;
editManager.changeEditType([CPDFEditType.path]);
  • Disable editing:
final editManager = controller.editManager;
editManager.changeEditType([CPDFEditType.none]);

Accessing the edit history manager:

final editManager = controller.editManager;
final historyManager = editManager.historyManager;

Constructors

CPDFEditManager(MethodChannel _channel)

Properties

hashCode int
The hash code for this object.
no setterinherited
historyManager CPDFEditorHistoryManager
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

changeEditType(List<CPDFEditType> types) Future<bool>
Change the current editing types. types: List of editing types to enable. Returns: true if the operation is successful, false otherwise. example:
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited