public interface CPDFEditManager
Modifier and Type | Method and Description |
---|---|
void |
addEditStatusChangeListener(OnEditStatusChangeListener listener)
Registers a callback to be invoked when the status of PDF editing is changed.
|
void |
beginEdit(int type)
Enters the editing mode, and the area of editable text or images will be displayed in the PDF page.
|
boolean |
canRedo()
Whether to support Redo, is a time-consuming method.
|
boolean |
canUndo()
Whether to support Undo, is a time-consuming method.
|
void |
changeEditType(int type)
In editing mode, call this interface to change the edit type.
|
void |
disable()
Disables the feature of PDF editing.
|
void |
enable()
Enables the feature of PDF editing.
|
void |
endEdit()
Calls this interface when ends the editing mode and the current edited content needs to be saved.
|
CPDFEditConfig.Builder |
getEditConfigBuilder()
Gets the configuration items of editing.
|
boolean |
isEditMode()
Whether it is editing mode.
|
boolean |
isEnabled()
Whether to enable the feature of PDF editing.
|
void |
onUndoRedoCallback(int pageNum,
boolean canUndo,
boolean canRedo) |
CPDFEditArea |
redo() |
CPDFEditArea |
undo() |
void |
updateEditConfig(CPDFEditConfig config)
Updates configuration after modifying the configuration items of editing.
|
void beginEdit(int type)
type
- Editable type: 1. text 2. images 3. all contentvoid endEdit()
void changeEditType(int type)
type
- Editable type: 1. text 2. images 3. all contentboolean isEditMode()
CPDFEditConfig.Builder getEditConfigBuilder()
void updateEditConfig(CPDFEditConfig config)
beginEdit(int)
.boolean canUndo()
boolean canRedo()
CPDFEditArea undo()
CPDFEditArea redo()
void onUndoRedoCallback(int pageNum, boolean canUndo, boolean canRedo)
void addEditStatusChangeListener(OnEditStatusChangeListener listener)
void enable()
void disable()
boolean isEnabled()