TX Sheet Control

PdfSecurityOptions Interface

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-server. Version: 2.0.0.

Type-only declaration; it is not a JavaScript runtime constructor.

Members

Properties

PropertyDescription
encryptMetadataEncrypt XMP metadata as well as document content; defaults to true.
ownerPasswordNonempty password granting unrestricted owner access. Omission generates a random, unrecoverable owner secret.
permissionsReader permissions for user access, including opening with the empty user password.
userPasswordPassword 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-server';

const pdfSecuritySettings: PdfSecurityOptions = { userPassword: 'Invoice' };

See Also