Skip to content
ComPDF
DemoSampleAPI ReferenceFAQ
New Release

Open-Source PDF SDK & AI Document Processing

Get the full self-hosted SDK and AI document processing on GitHub. One-click deploy to quickly build your document workflows.

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();
}