PdfDocument.Save Method
Overloads
| Name | Description |
|---|---|
| Save(String) | Saves the Pdf document to a file. |
| Save(String,PdfSecurityHandler) | Saves the Pdf document to a file. |
| Save(String,Boolean) | Saves the Pdf document to a file. |
| Save(String,PdfSecurityHandler,Boolean) | Saves the Pdf document to a file. |
| Save(Stream) | Saves the Pdf document to the specified stream. |
| Save(Stream,PdfSecurityHandler) | Saves the Pdf document to the specified stream. |
| Save(Stream,Boolean) | Saves the Pdf document to the specified stream. |
| Save(Stream,PdfSecurityHandler,Boolean) | Saves the Pdf document to the specified stream. |
Save(String)
Saves the Pdf document to a file.
Parameters
fileName String
File where the PDF document is saved.
Save(String,PdfSecurityHandler)
Saves the Pdf document to a file.
Parameters
fileName String
File where the PDF document is saved.
securityHandler PdfSecurityHandler
Security handler for encrypting the saved file.
Save(String,Boolean)
Saves the Pdf document to a file.
Parameters
fileName String
File where the PDF document is saved.
enableObjectCompression Boolean
When set to true, the structure of the PDF objects is also compressed. Supported when PDF version >= 1.5
Save(String,PdfSecurityHandler,Boolean)
Saves the Pdf document to a file.
public virtual void Save(string fileName, PdfSecurityHandler securityHandler, bool enableObjectCompression)
Parameters
fileName String
File where the PDF document is saved.
securityHandler PdfSecurityHandler
Security handler for encrypting the saved file.
enableObjectCompression Boolean
When set to true, the structure of the PDF objects is also compressed. Supported when PDF version >= 1.5
Save(Stream)
Saves the Pdf document to the specified stream.
Parameters
stream Stream
Destination stream.
Save(Stream,PdfSecurityHandler)
Saves the Pdf document to the specified stream.
Parameters
stream Stream
Destination stream.
securityHandler PdfSecurityHandler
Security handler for encrypting the saved file.
Save(Stream,Boolean)
Saves the Pdf document to the specified stream.
Parameters
stream Stream
Destination stream.
enableObjectCompression Boolean
When set to true, the structure of the PDF objects is also compressed. Supported when PDF version >= 1.5
Save(Stream,PdfSecurityHandler,Boolean)
Saves the Pdf document to the specified stream.
public virtual void Save(Stream stream, PdfSecurityHandler securityHandler, bool enableObjectCompression)
Parameters
stream Stream
Destination stream.
securityHandler PdfSecurityHandler
Security handler for encrypting the saved file.
enableObjectCompression Boolean
When set to true, the structure of the PDF objects is also compressed. Supported when PDF version >= 1.5