PDFDocSaveAsync Method (IOutputStream, SDFDocSaveOptions) |
Namespace: pdftron.PDF
public IAsyncAction SaveAsync( IOutputStream outputStream, SDFDocSaveOptions flags )
Because the IOutputStream object is write only, the newly saved document is not used as source.
Saving will lock the document for the duration of the save.
The save options can be combined using bitwise OR operations.
A full save with remove unused or linearization option may re-arrange object in the cross reference table. Therefore all pointers and references to document objects and resources should be re-acquired in order to continue document editing.
If the original pdf has a corrupt xref table (see HasRepairedXref or http://www.pdftron.com/kb_corrupt_xref), then it can not be saved using the e_incremental flag.