Skip to content
ComPDF
DemoSampleAPI ReferenceFAQ

PDF Generation Template Editor

Open-source visual PDF generation engine with customizable templates and developer-friendly APIs.

View on GitHub

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