Skip to content

PdfFixedDocument.Save Method

Overloads

Name Description
Save(String,PdfSecurityHandler,Boolean) Saves the document to the specified file.
Save(Stream,PdfSecurityHandler,Boolean) Saves the Pdf document to the specified stream.
Save(String) Saves the Pdf document to a file.
(inherited from PdfDocument)
Save(String,PdfSecurityHandler) Saves the Pdf document to a file.
(inherited from PdfDocument)
Save(String,Boolean) Saves the Pdf document to a file.
(inherited from PdfDocument)
Save(Stream) Saves the Pdf document to the specified stream.
(inherited from PdfDocument)
Save(Stream,PdfSecurityHandler) Saves the Pdf document to the specified stream.
(inherited from PdfDocument)
Save(Stream,Boolean) Saves the Pdf document to the specified stream.
(inherited from PdfDocument)

Save(String,PdfSecurityHandler,Boolean)

Saves the document to the specified file.

C#
public override void Save(string fileName, PdfSecurityHandler securityHandler, bool enableObjectCompression)

Parameters

fileName String

A string that contains the name of the file where the 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,PdfSecurityHandler,Boolean)

Saves the Pdf document to the specified stream.

C#
public override 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