Click or drag to resize

PdfEncryptionOptions Enumeration

Represents options for PDF file password-based encryption.

Namespace: SautinSoft.Pdf.Security
Assembly: SautinSoft.Pdf (in SautinSoft.Pdf.dll) Version: 2025.3.13
Syntax
[FlagsAttribute]
public enum PdfEncryptionOptions
Members
Member nameValueDescription
None0 No content shall be encrypted.
EncryptContent1 All content (strings and streams) shall be encrypted except embedded file streams (if EncryptEmbeddedFiles is not set) and document-level metadata stream (if EncryptMetadata is not set).
EncryptEmbeddedFiles2 Embedded files shall be encrypted.
EncryptMetadata4

Document-level metadata stream (see 14.3.2, "Metadata Streams") shall be encrypted.

If EncryptMetadata is set, it is applicable only if EncryptContent is also set.

EncryptAll7 All content (strings and streams) in the document shall be encrypted.
See Also