PdfSecurityOptions Interface
AES-256, standard security handler revision 6. Settings apply to this export only and never persist in a workbook.
Package: @txtextcontrol/tx-sheet-control. Version: 2.0.0.
Type-only declaration; it is not a JavaScript runtime constructor.
Members
Properties
| Property | Description |
|---|---|
| encryptMetadata | Encrypt XMP metadata as well as document content; defaults to true. |
| ownerPassword | Nonempty password granting unrestricted owner access. Omission generates a random, unrecoverable owner secret. |
| permissions | Reader permissions for user access, including opening with the empty user password. |
| userPassword | Password required to open the PDF; omitted or empty permits opening without a prompt. |
Examples
Configure PdfSecurityOptions for an invoice or sales-report workflow. Supply font and document resources from the application where the example accepts them as inputs.
import type { PdfSecurityOptions } from '@txtextcontrol/tx-sheet-control';
const pdfSecuritySettings: PdfSecurityOptions = { userPassword: 'Invoice' };