[]
        
(Showing Draft Content)

C1.Pdf.C1PdfDocumentBase.Save

Save Method

Save(string)

Saves the PDF document to a file.

Declaration
public void Save(string fileName)
Parameters
Type Name Description
string fileName

Name of the PDF file to create.

Remarks

Saving the PDF document to a file requires that the file be available for writing. If the file already exists and is in use by an application (such as the Adobe Acrobat Reader), the method will throw an exception.

Save(Stream)

Saves the PDF document to a Stream.

Declaration
public void Save(Stream stream)
Parameters
Type Name Description
Stream stream

Stream object to use for saving the document.

Remarks

Saving the PDF document to a Stream object is often used in Web scenarios, when you are creating a Response object or storing the document in the a cache, and don't want to create temporary files.