FoxitPDFSDKforWeb
v9.2.0
Foxit PDF SDK for Web
|
Provides undo and redo functionality for document operations within the UIExtension. 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... | |
Provides undo and redo functionality for document operations within the UIExtension.
This addon allows users to undo and redo document operations, making it easy to navigate through changes made to the PDF document.
|
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.