Document.Save

Save()

Save document incrementally (i.e. using incremental update technique).

public void Save()

Remarks

In order to save document incrementally we should open the document file for writing. Therefore Document must be initialized with writable stream like in the next code snippet: Document doc = new Document(new FileStream(“document.pdf”, FileMode.Open, FileAccess.ReadWrite)); // make some changes and save the document incrementally doc.Save();

See Also


Save(SaveOptions)

Saves the document with save options.

public void Save(SaveOptions options)
ParameterTypeDescription
optionsSaveOptionsSave options.

See Also


Save(string, SaveFormat)

Saves the document with a new name along with a file format.

public void Save(string outputFileName, SaveFormat format)
ParameterTypeDescription
outputFileNameStringPath to file where the document will be stored.
formatSaveFormatFormat options.

See Also


Save(Stream, SaveFormat)

Saves the document with a new name along with a file format.

public void Save(Stream outputStream, SaveFormat format)
ParameterTypeDescription
outputStreamStreamStream where the document will be stored.
formatSaveFormatFormat options.

Exceptions

exceptioncondition
ArgumentExceptionArgumentException when HtmlSaveOptions is passed to a method. Save a document to the html stream is not supported. Please use method save to the file.

See Also


Save(string, SaveOptions)

Saves the document with a new name setting its save options.

public void Save(string outputFileName, SaveOptions options)
ParameterTypeDescription
outputFileNameStringPath to file where the document will be stored.
optionsSaveOptionsSave options.

See Also


Save(Stream, SaveOptions)

Saves the document to a stream with a save options.

public void Save(Stream outputStream, SaveOptions options)
ParameterTypeDescription
outputStreamStreamStream where the document will be stored.
optionsSaveOptionsSave options.

Exceptions

exceptioncondition
ArgumentExceptionArgumentException when HtmlSaveOptions is passed to a method. Save a document to the html stream is not supported. Please use method save to the file.

See Also


Save(HttpResponse, string, ContentDisposition, SaveOptions)

Saves the document to a response stream with a save options.

public void Save(HttpResponse response, string outputFileName, ContentDisposition disposition, 
    SaveOptions options)
ParameterTypeDescription
responseHttpResponseEncapsulates HTTP-response information.
outputFileNameStringSimple file name, i.e. without path.
dispositionContentDispositionRepresents a MIME protocol Content-Disposition header.
optionsSaveOptionsSave options.

See Also


Save(Stream)

Stores document into stream.

public void Save(Stream output)
ParameterTypeDescription
outputStreamStream where document shell be stored.

See Also


Save(string)

Saves document into the specified file.

public void Save(string outputFileName)
ParameterTypeDescription
outputFileNameStringPath to file where the document will be stored.

See Also