[]
Saves the PDF document to a file.
public void Save(string fileName)
Type | Name | Description |
---|---|---|
string | fileName | Name of the PDF file to create. |
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.
Saves the PDF document to a Stream.
public void Save(Stream stream)
Type | Name | Description |
---|---|---|
Stream | stream | Stream object to use for saving the document. |
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.