Save

Save(EditableDocument, Stream, ISaveOptions)

Converts specified edited document, represented as instance of ‘EditableDocument’, to the resultant document of specified format and saves its content to specified stream

public void Save(EditableDocument inputDocument, Stream outputDocument, ISaveOptions saveOptions)
Parameter Type Description
inputDocument EditableDocument Version of the input document, that was edited in WYSIWYG HTML-editor and is stored as instance of ‘EditableDocument’ class, which should be converted to output document of some specific format. Must not be null or disposed.
outputDocument Stream Output stream, in which the content of the resultant document will be recorded. Must not be null, disposed, must support writing.
saveOptions ISaveOptions Document saving options, which define the format of the resultant document, and also general and format-specific saving options. Must not be null.

Remarks

Learn more

See Also


Save(EditableDocument, string, ISaveOptions)

Converts specified edited document, represented as instance of ‘EditableDocument’, to the resultant document of specified format and saves its content to file by specified file path

public void Save(EditableDocument inputDocument, string filePath, ISaveOptions saveOptions)
Parameter Type Description
inputDocument EditableDocument Version of the input document, that was edited in WYSIWYG HTML-editor and is stored as instance of ‘EditableDocument’ class, which should be converted to output document of some specific format. Must not be null or disposed.
filePath String Path to the file, in which the output document will be saved. It file with the same name exists, it will be completely rewritten. String with path must not be null, empty or contain only whitespaces.
saveOptions ISaveOptions Document saving options, which define the format of the resultant document, and also general and format-specific saving options. Must not be null.

Remarks

Learn more

See Also


Save(Stream, WordProcessingSaveOptions)

Converts the original document after modification (for example, FormFieldManager), to the resultant document of the specified format and saves its content to the provided stream.

public Stream Save(Stream outputDocument, WordProcessingSaveOptions saveOptions)
Parameter Type Description
outputDocument Stream The stream to which the output document will be saved. This stream should be writable and positioned at the start of the document content. Must not be null.
saveOptions WordProcessingSaveOptions Document saving options that define the format of the resultant document, as well as general and format-specific saving options. Must not be null.

Return Value

The stream containing the saved document content.

Remarks

If the outputDocument or saveOptions is null, an ArgumentNullException will be thrown. If the document to save is missing, an ArgumentNullException will be thrown.

Thrown when outputDocument or saveOptions is null, or when the document to save is missing.Learn more:

See Also