Method Save
- Namespace
- BitMiracle.Docotic.Pdf
- Assembly
- BitMiracle.Docotic.Pdf.dll
Save(string)
Saves the document to the file with the specified name.
public void Save(string fileName)
Parameters
fileName
stringThe name of the file to save document to.
Remarks
This method saves the document using the default save options. Use Save(string, PdfSaveOptions) overload to specify custom save options.
Save(string, PdfSaveOptions)
Saves the document using the specified save options to the file with the specified name.
public void Save(string fileName, PdfSaveOptions saveOptions)
Parameters
fileName
stringThe name of the file to save document to.
saveOptions
PdfSaveOptionsThe save options to use.
Remarks
Read the Optimize PDF objects for more information on how to apply optimizations with save options.
The Encrypt PDF documents in C# and VB.NET article shows how to use save options to protect PDF files.
Save(Stream)
Saves the document to the specified stream.
public void Save(Stream stream)
Parameters
stream
StreamThe stream to save document to.
Remarks
This method saves the document using the default save options. Use Save(Stream, PdfSaveOptions) overload to specify custom save options.
Save(Stream, PdfSaveOptions)
Saves the document using the specified save options to the specified stream.
public void Save(Stream stream, PdfSaveOptions saveOptions)
Parameters
stream
StreamThe stream to save document to.
saveOptions
PdfSaveOptionsThe save options to use.
Remarks
Read the Optimize PDF objects for more information on how to apply optimizations with save options.
The Encrypt PDF documents in C# and VB.NET article shows how to use save options to protect PDF files.