Skip to content
Lamina PDF
0.9.0
GitHub
Open the web app

SignParams

type SignParams = SignParamsJs;

Defined in: packages/sdk/src/types.ts:1653

What a signature states and how it is made, for the sign op: claimedTime (a PDF date such as "D:20261130120000Z", filled by the caller’s clock, never read by the library), reason, location and contact, the subfilter ("cadesDetached" for PAdES, the default, or "pkcs7Detached", which is not PAdES), the digest ("sha256", "sha384" or "sha512") and reserve, the bytes of signature to leave room for (raise it after sign-placeholder-too-small). level follows the sub-filter ("bb" or "none"), and one that doesn’t go with it fails with invalid-op.

certify ("noChanges", "formFill" or "annotate") makes the signature the document’s certification, which says what may change afterwards (ISO 32000-2 §12.8.2.2). It must be the first signature: a file that holds one fails with sign-certify-not-first.

lock ({ action: "all" | "include" | "exclude", fields, permission }) locks form fields once signed (§12.8.2.4); left out, a /Lock the signature field already holds binds all the same. A permission (1 to 3) limits later changes even when the signature doesn’t certify, and the stricter of it and certify is the certification’s level.

0.7.0