PdfPermissions Interface
Standard PDF reader permissions. Omitted permissions are allowed; restrictions require encryption.
Package: @txtextcontrol/tx-sheet-control-server. Version: 2.0.0.
Type-only declaration; it is not a JavaScript runtime constructor.
Members
Properties
| Property | Description |
|---|---|
| annotating | Add or modify annotations; PDF readers may also permit form filling when this is enabled. |
| assembling | Insert, rotate or delete pages and create outlines or thumbnails. |
| copying | Copy or extract text and graphics. Accessibility extraction is always allowed by the PDF standard. |
| fillingForms | Fill existing interactive forms and sign existing signature fields. |
| modifying | Modify document contents, except operations controlled by the separate permissions below. |
| printing | None, low resolution (reader rasterization) or unrestricted high resolution printing. |
Examples
Configure PdfPermissions for an invoice or sales-report workflow. Supply font and document resources from the application where the example accepts them as inputs.
import type { PdfPermissions } from '@txtextcontrol/tx-sheet-control-server';
const pdfPermissions: PdfPermissions = { printing: 'none' };