Aspose::Pdf::Document::Save method

Document::Save() method

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

void Aspose::Pdf::Document::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

Document::Save(const System::SharedPtr<SaveOptions>&) method

Saves the document with save options.

void Aspose::Pdf::Document::Save(const System::SharedPtr<SaveOptions> &options)
ParameterTypeDescription
optionsconst System::SharedPtr<SaveOptions>&Save options.

See Also

Document::Save(const System::SharedPtr<System::IO::Stream>&) method

Stores document into stream.

void Aspose::Pdf::Document::Save(const System::SharedPtr<System::IO::Stream> &output)
ParameterTypeDescription
outputconst System::SharedPtr<System::IO::Stream>&Stream where document shell be stored.

See Also

Document::Save(const System::SharedPtr<System::IO::Stream>&, const System::SharedPtr<SaveOptions>&) method

Saves the document to a stream with a save options.

void Aspose::Pdf::Document::Save(const System::SharedPtr<System::IO::Stream> &outputStream, const System::SharedPtr<SaveOptions> &options)
ParameterTypeDescription
outputStreamconst System::SharedPtr<System::IO::Stream>&Stream where the document will be stored.
optionsconst System::SharedPtr<SaveOptions>&Save options.

See Also

Document::Save(const System::SharedPtr<System::IO::Stream>&, SaveFormat) method

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

void Aspose::Pdf::Document::Save(const System::SharedPtr<System::IO::Stream> &outputStream, SaveFormat format)
ParameterTypeDescription
outputStreamconst System::SharedPtr<System::IO::Stream>&Stream where the document will be stored.
formatSaveFormatFormat options.

See Also

Document::Save(const System::SharedPtr<System::Web::HttpResponse>&, const System::String&, ContentDisposition, const System::SharedPtr<SaveOptions>&) method

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

void Aspose::Pdf::Document::Save(const System::SharedPtr<System::Web::HttpResponse> &response, const System::String &outputFileName, ContentDisposition disposition, const System::SharedPtr<SaveOptions> &options)
ParameterTypeDescription
responseconst System::SharedPtr<System::Web::HttpResponse>&Encapsulates HTTP-response information.
outputFileNameconst System::String&Simple file name, i.e. without path.
dispositionContentDispositionRepresents a MIME protocol Content-Disposition header.
optionsconst System::SharedPtr<SaveOptions>&Save options.

See Also

Document::Save(const System::String&) method

Saves document into the specified file.

void Aspose::Pdf::Document::Save(const System::String &outputFileName)
ParameterTypeDescription
outputFileNameconst System::String&Path to file where the document will be stored.

See Also

Document::Save(const System::String&, const System::SharedPtr<SaveOptions>&) method

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

void Aspose::Pdf::Document::Save(const System::String &outputFileName, const System::SharedPtr<SaveOptions> &options)
ParameterTypeDescription
outputFileNameconst System::String&Path to file where the document will be stored.
optionsconst System::SharedPtr<SaveOptions>&Save options.

See Also

Document::Save(const System::String&, SaveFormat) method

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

void Aspose::Pdf::Document::Save(const System::String &outputFileName, SaveFormat format)
ParameterTypeDescription
outputFileNameconst System::String&Path to file where the document will be stored.
formatSaveFormatFormat options.

See Also