Save a Document
To save a PDF document to path use
CPDFDocument.WriteToLoadedPath(), the PDF document will be saved incrementally. Use this method if you are concerned about saving time. If you use this method, any changes to the document, even deleting annotations, will result in appending to the PDF file. However, even though this is the fastest way of saving a document, it does come with the cost of incrementing the file size with each save.
In most cases, the file size increase is negligible. However, there might be some cases in which you want to prioritize file size over saving performance. Below you’ll find a strategy to prevent the file size from growing unnecessarily when saving changes to a document.
To save as a PDF document to path use
CPDFDocument.WriteToFilePath(string filePath), the PDF document will be saved non-incremental. If you use this method, will rewrite the entire document instead of appending changes at the end.