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
- More about saving document after edit using GroupDocs.Editor: How to save edited document using GroupDocs.Editor
See Also
- class EditableDocument
- interface ISaveOptions
- class Editor
- namespace GroupDocs.Editor
- assembly GroupDocs.Editor
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
- More about saving document after edit using GroupDocs.Editor: How to save edited document using GroupDocs.Editor
See Also
- class EditableDocument
- interface ISaveOptions
- class Editor
- namespace GroupDocs.Editor
- assembly GroupDocs.Editor
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:
- More about saving documents after modification using GroupDocs.Editor: How to save documents using GroupDocs.Editor
See Also
- class WordProcessingSaveOptions
- class Editor
- namespace GroupDocs.Editor
- assembly GroupDocs.Editor
Save(Stream)
Save the current document content to the specified output stream.
public Stream Save(Stream outputDocument)
Parameter | Type | Description |
---|---|---|
outputDocument | Stream | The stream to which the document content will be saved. This cannot be null. |
Return Value
The stream with the saved document content.
Exceptions
exception | condition |
---|---|
ArgumentNullException | Thrown when outputDocument is null or if the document content is missing. |
Remarks
This method copies the content from the internal document representation to the provided output stream. The stream’s original position is preserved after the save operation.
See Also
- class Editor
- namespace GroupDocs.Editor
- assembly GroupDocs.Editor