Click or drag to resize

PdfSaveOptions Class

Represents options used for saving a PdfDocument to a PDF file.
Inheritance Hierarchy
SystemObject
  SautinSoft.PdfSaveOptions
    SautinSoft.PdfPdfSaveOptions

Namespace: SautinSoft.Pdf
Assembly: SautinSoft.Pdf (in SautinSoft.Pdf.dll) Version: 2024.11.26
Syntax
public sealed class PdfSaveOptions : SaveOptions

The PdfSaveOptions type exposes the following members.

Constructors
 NameDescription
Public methodPdfSaveOptions Initializes a new instance of the PdfSaveOptions class.
Top
Properties
 NameDescription
Public propertyCloseInput

Gets or sets a value indicating whether to close the PDF file currently associated with the PdfDocument.

This option is ignored if PdfDocument is not saved to a new file.

Using this option has the same effect as calling Close before saving the PdfDocument to a new file.

Default value: .

Public propertyCloseOutput

Gets or sets a value indicating whether to close the new PDF file to which the PdfDocument will be saved.

Using this option has the same effect as calling Close after saving the PdfDocument.

Default value: .

Public propertyCrossReferenceType

Gets a value indicating how cross-reference information (information about byte positions of the indirect objects) and indirect objects are stored in the PDF file.

This option is ignored if PdfDocument is not saved to a new file.

Default value: Table.

Public propertyStatic memberDefault Gets the default options used for saving any PdfDocument to a PDF file.
Public propertyEncryption Gets or sets the encryption-related information or if a PDF document is not saved to an encrypted PDF file.
Public propertyFacturXXml Gets or sets the XML data for Factur-X/Order-X output file formats.
Public propertyUpdateDateInformation

Gets or sets a value indicating whether to update CreationDate and/or ModificationDate before the PdfDocument is saved to a PDF file.

If PdfDocument is saved to a new file, then CreationDate will be set to Now and ModificationDate will be set to .

If PdfDocument is not saved to a new file, then ModificationDate will be set to Now.

Default value: .

Public propertyUpdateId

Gets a value indicating whether to set or update Id before the PdfDocument is saved to a PDF file.

If PdfDocument does not have an Id, then new PdfDocumentIdentifier will be assigned to it; otherwise, Modification of an existing PdfDocumentIdentifier will be updated.

Default value: .

Public propertyUpdateProducerInformation

Gets a value indicating whether to update Producer before the PdfDocument is saved to a PDF file.

If set to , then Producer will be set to user-friendly name of the SautinSoft.Pdf assembly.

Default value: .

Public propertyVersion

Gets or sets the version of the PDF specification to which the PdfDocument conforms specified in the PDF file’s header (see 7.5.2, "File Header").

This option is ignored if PdfDocument is not saved to a new file.

Note that the PDF file’s header version might be coerced to a value higher than the one specified in Version if the PDF file uses features that are not supported by the version specified in Version.

If the value is then PDF file’s header version will be automatically set to a specific value depending on the features used in the PDF file.

Default value: .

Top
Methods
 NameDescription
Public methodSetPasswordEncryption

Sets the PdfPasswordEncryption to a PDF file to which a PDF document is saved.

Use the returned PdfPasswordEncryption to set the password(s) and other encryption-related information.

Top
See Also