On this page
Guides
End Content Editing and Save
After completing edits, you can exit editing mode by using SetMouseMode
with CPDFToolManager
to switch out of edit mode. To save the changes, utilize either WriteToLoadedPath
or WriteToFilePath
save the modified document.
C#
// Exit edit mode and switch to PanTool mode.
toolManager.SetToolType(ToolType.Pan);
if(tool.IsDocumentModified)
{
// Save changes to the local document.
doc.WriteToLoadedPath();
}