EncryptionScope

Receiver of encryption { ... }.

Mirrors the field-by-field builder style of MetadataScope: set the owner password (and optionally a user password) plus the permission flags, and the builder produces a PdfEncryption. See PdfEncryption for the per-platform support matrix and the meaning of each flag.

Properties

Link copied to clipboard

Whether text/graphics may be extracted (copy/paste, accessibility readers). Defaults to true.

Link copied to clipboard

Whether the document content may be modified. Defaults to false. Ignored on iOS (no corresponding Core Graphics flag).

Link copied to clipboard

Whether the document may be printed. Defaults to true.

Link copied to clipboard

Password granting full, unrestricted access. Must be set to a non-empty value — build throws otherwise, because an empty owner password offers no protection.

Link copied to clipboard

Password required to open the document. Empty (the default) means the document opens without a prompt while the permission flags still apply.