Table of Contents

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 string

The 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.

Read the Save options section to know more about the cases when you may need to override the default 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 string

The name of the file to save document to.

saveOptions PdfSaveOptions

The save options to use.

Remarks

Read the Save options section for the information about the options users usually change.

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 Stream

The 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.

Read the Save options section to know more about the cases when you may need to override the default 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 Stream

The stream to save document to.

saveOptions PdfSaveOptions

The save options to use.

Remarks

Read the Save options section for the information about the options users usually change.

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.