Skip to the content
v1.0.1-beta.17

Signatures

Premium add-on. This page covers a premium add-on, included in Scriviamo Pro and Pro + Collaboration. See pricing

The premium signature add-on adds SignatureNode, JSON type "signature": a line to sign on. Click it, or Sign on its toolbar, to sign by drawing with a mouse, a finger or a pen, or by typing a name, which is drawn in a handwriting-like font. Signed, it shows the signature, and under the line its label, the signer's name and the date.

import {SignatureNode, SignatureModes} from "./dist/addons/scriviamo.signature.js"

let signature = new SignatureNode()
signature.label = "Client"
signature.fieldName = "client_signature"
signature.required = true
editor.addNode(signature)

// Signing from code, such as with a name the application already knows:
signature.sign(SignatureModes.typed, "Ada Lovelace")
Property or methodMeaning
labelThe text under the line; "Signature" when empty
fieldNameIts name as a form field and in fillable PDFs; "signature" by default
requiredMarks it required, with an asterisk while unsigned
showDateWhether the date it was signed shows; on by default
signerNameThe signer's name, shown under the line
isSigned, signedAtWhether it's signed, and when, as an ISO date and time
mode, strokes, typedNameThe signature: drawn strokes, or a typed name
sign(mode, value, signerName), clear()Sign it, or clear it, as one undo step
openSigningDialog()Asks for a signature

Signing needs an editable editor; in a read-only one, the field shows as it is.

Exporting

Signed, HTML has the signature as SVG, and imports back. Unsigned, HTML has a text field named fieldName in its place, so a page with the exported form collects a typed signature, and a fillable PDF has a field to fill in there.

This records a picture of a signature, with the name and date the person gave. It isn't a cryptographic digital signature, which proves who signed and that nothing changed after; for that, send the finished document to a signing service.