DocumentEditingController

Default controller for editing PDF pages.

Functions

Link copied to clipboard
abstract fun duplicateSelectedPages()
Perform duplicate selected pages action on document editor.
Link copied to clipboard
abstract fun exportSelectedPages(@NonNull context: Context)
Exports selected pages into a separate document.
Link copied to clipboard
Returns document editing manager, so the document editing mode listeners can be registered.
Link copied to clipboard
Gets currently selected pages on document editor.
Link copied to clipboard
abstract fun importDocument(@NonNull context: Context)
Imports all the pages from a given document source to a destination index, if no page is selected the imported document will be appended.
Link copied to clipboard
abstract fun isDocumentEmpty(): Boolean
Checks if document editor has removed every document page.
Link copied to clipboard
abstract fun isExportEnabled(): Boolean
Indicates whether the exporting of the pages is enabled.
Link copied to clipboard
abstract fun isRedoEnabled(): Boolean
Checks if redo operation is possible on document editor.
Link copied to clipboard
abstract fun isSaveAsEnabled(): Boolean
Indicates whether the 'Save As' is enabled on the selected pages, meaning the new document is created once the editing is finished.
Link copied to clipboard
abstract fun isUndoEnabled(): Boolean
Checks if undo operation is possible on document editor.
Link copied to clipboard
abstract fun performSaving(@NonNull context: Context, @NonNull popupAnchorView: View)
Performs saving of the items.
Link copied to clipboard
abstract fun redo(): List<EditingChange>
Perform redo changes on document editor.
Link copied to clipboard
abstract fun removeSelectedPages()
Perform remove selected pages action on document editor.
Link copied to clipboard
abstract fun rotateSelectedPages()
Perform rotate selected pages action on document editor.
Link copied to clipboard
abstract fun setSelectedPages(@NonNull pages: Set<Integer>)
Sets currently selected pages on document editor.
Link copied to clipboard
abstract fun undo(): List<EditingChange>
Perform undo changes on document editor.