Click or drag to resize

PDFDocSaveToBufferAsync Method

Saves all changes to the document and writes them to a buffer.

Namespace:  pdftron.PDF
Assembly:  pdftron (in pdftron.dll) Version: 255.255.255.255
Syntax
public IAsyncOperation<IBuffer> SaveToBufferAsync(
	SDFDocSaveOptions flags
)

Parameters

flags
Type: pdftron.SDFSDFDocSaveOptions
Options for saving the document.

Return Value

Type: IAsyncOperationIBuffer
When this method completes, it returns a buffer containing the saved data.
Remarks

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.

See Also