FoxitPDFSDKforWeb
v10.0.0
Foxit PDF SDK for Web
|
This addon provides comprehensive undo and redo operations at a global level within the document environment. It supports undoing and redoing actions related to bookmarks, annotations, and advanced editing (AdvEdit) functionalities. Users can efficiently revert or reapply changes made to bookmarks, annotations, and advanced editing tasks within the document, enhancing the overall control and flexibility of document management. More...
Inherits UIXAddon.
Public Member Functions | |
invoke (callback) | |
Executes a callback function to add document operation history to the undo stack. More... | |
redo () | |
Redoes the previously undone document operation. More... | |
undo () | |
Undoes the last document operation. More... | |
undoAll () | |
Undoes the all document operations. More... | |
This addon provides comprehensive undo and redo operations at a global level within the document environment. It supports undoing and redoing actions related to bookmarks, annotations, and advanced editing (AdvEdit) functionalities. Users can efficiently revert or reapply changes made to bookmarks, annotations, and advanced editing tasks within the document, enhancing the overall control and flexibility of document management.
|
inline |
Executes a callback function to add document operation history to the undo stack.
Use this method to execute a callback function that performs document operations, such as creating, deleting, or modifying annotations. The operation history of these actions will be automatically added to the undo stack, enabling users to undo these actions if needed. If no document is currently open, the pdfDoc
parameter within the callback function will be null
.
callback | (pdfDoc:PDFDoc)=>void - A callback function that receives a pdfDoc parameter and should perform the document operation to be added to the undo stack. |
|
inline |
Redoes the previously undone document operation.
|
inline |
Undoes the last document operation.
|
inline |
Undoes the all document operations.