Redo and Undo Text Editing
The following code shows how to undo and redo a text editing:
if ([pdfView canEditTextUndo]) {
[pdfView editTextUndo];
}
if ([pdfView canEditTextRedo]) {
[pdfView editTextRedo];
}
You can add listeners for undo and redo status. See the method PDFViewEditingOperationDidChanges:
in How to Listen to the Changes of Block Editing part of Edit PDF in this guide.