com.pspdfkit.ui.special_mode.controller.DocumentEditingController |
Default controller for editing PDF pages.
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
abstract void |
duplicateSelectedPages()
Perform duplicate selected pages action on document editor.
| ||||||||||
abstract void |
exportSelectedPages(Context context)
Exports selected pages into a separate document.
| ||||||||||
abstract DocumentEditingManager |
getDocumentEditingManager()
Returns document editing manager, so the document editing mode listeners can be registered.
| ||||||||||
abstract Set<Integer> |
getSelectedPages()
Gets currently selected pages on document editor.
| ||||||||||
abstract void |
importDocument(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.
| ||||||||||
abstract boolean |
isDocumentEmpty()
Checks if document editor has removed every document page.
| ||||||||||
abstract boolean |
isExportEnabled()
Indicates whether the exporting of the pages is enabled.
| ||||||||||
abstract boolean |
isRedoEnabled()
Checks if redo operation is possible on document editor.
| ||||||||||
abstract boolean |
isSaveAsEnabled()
Indicates whether the 'Save As' is enabled on the selected pages, meaning the new document is
created once the editing is finished.
| ||||||||||
abstract boolean |
isUndoEnabled()
Checks if undo operation is possible on document editor.
| ||||||||||
abstract void |
performSaving(Context context, View popupAnchorView)
Performs saving of the items.
| ||||||||||
abstract List<EditingChange> |
redo()
Perform redo changes on document editor.
| ||||||||||
abstract void |
removeSelectedPages()
Perform remove selected pages action on document editor.
| ||||||||||
abstract void |
rotateSelectedPages()
Perform rotate selected pages action on document editor.
| ||||||||||
abstract void |
setSelectedPages(Set<Integer> pages)
Sets currently selected pages on document editor.
| ||||||||||
abstract List<EditingChange> |
undo()
Perform undo changes on document editor.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() | |||||||||||
![]() |
Perform duplicate selected pages action on document editor.
Exports selected pages into a separate document.
context | The context to use. |
---|
Returns document editing manager, so the document editing mode listeners can be registered.
Gets currently selected pages on document editor.
Imports all the pages from a given document source to a destination index, if no page is selected the imported document will be appended.
context | The context to use for opening the SAF picker. |
---|
Checks if document editor has removed every document page. This is useful to avoid saving documents with zero pages.
true
if document editor has no pages.
Indicates whether the exporting of the pages is enabled.
true
if page exporting is enabled.
Checks if redo operation is possible on document editor.
true
if redo operation is allowed.
Indicates whether the 'Save As' is enabled on the selected pages, meaning the new document is created once the editing is finished.
true
if 'Save As' is enabled.
Checks if undo operation is possible on document editor.
true
if undo operation is allowed.
Performs saving of the items.
context | The context to use. |
---|---|
popupAnchorView | The view on which to append the possible pop-up menu with 'Save' and 'Save As' options. |
Perform redo changes on document editor.
Perform remove selected pages action on document editor.
Perform rotate selected pages action on document editor.
Sets currently selected pages on document editor.
pages | Set of pages to select (by position). |
---|
Perform undo changes on document editor.