Click or drag to resize

SDFDocSaveToBufferAsync Method

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

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

Parameters

flags
Type: pdftron.SDFSDFDocSaveOptions
Options for saving the document.
header
Type: SystemString
The file header to use.

Return Value

Type: IAsyncOperationIBuffer
When this method completes, it returns the buffer.
Remarks

In a multi-threaded environment, the user is expected to acquire a write lock before attempting to save the document.

The save options can be combined using bitwise OR operations.

The new file header is only set when performing a full save.

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