[]
Saves the current PDF document to a file.
public void Save(string fileName, bool incrementalUpdate = false)
Type | Name | Description |
---|---|---|
string | fileName | The name of the PDF file to create. |
bool | incrementalUpdate | Indicates whether document should be saved using incremental updates. |
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 current PDF document to a System.IO.Stream.
public void Save(Stream stream, bool incrementalUpdate = false)
Type | Name | Description |
---|---|---|
Stream | stream | The System.IO.Stream object to use for saving the document. |
bool | incrementalUpdate | Indicates whether document should be saved using incremental updates. |
Saving the PDF document to a System.IO.Stream object is often used in Web scenarios, when you are creating a response object or storing the document in the cache, and don't want to create temporary files.