End Text Editing and Save
You can end the editing mode at any time. You can use
endEdit to exit the editing mode. Before you save the changes of editing text by using
Save, or check whether the editing text has changed by using
hasChanges, you should exit the editing mode first. Otherwise, it will be different from the expected result. After exiting, the display and operations will be the same as before entering the editing mode.
//End the editing mode. CPDFEditManager editManager = readerView.getEditManager() editManager.endEdit();
For the code to save documents, see the Basic Operations part in this guide.