Skip to main content

Signers & positioning

Since version 2.1.1, documents can declare their signers and the position of each signature. Signers are declared when the document is uploaded to MobbSign Server; the Web SDK assigns each signature to a signer.

Declare the signers​

Fill in the signers array when you upload the document with POST /documents:

FieldRequiredDescription
nameYesName of the signer. It is written in the reason of their signature.
rolNoRole of the signer, for example Client or Employee.
signaturePositionNoWhere their signature is placed. See Signature positioning.
{
"signers": [
{
"name": "Jane Doe",
"rol": "Client",
"signaturePosition": {"x": 20, "y": 100, "width": 50, "height": 50, "numPage": 1}
},
{"name": "John Smith", "rol": "Employee"},
{"name": "Signer 3"}
]
}

The response returns the identifier (id) and the status of each signer. If a document has no signers, it can be signed without restrictions.

Signature positioning​

signaturePosition places the signature of a signer in the document. Coordinates are expressed in PDF points (1/72 of an inch); an A4 page measures 595 × 842 points.

FieldDescription
x, yHorizontal and vertical position of the signature.
width, heightMaximum width and height of the signature. A larger signature is scaled down, keeping its proportions.
numPagePage of the signature, starting at 1.

The signing act​

A signing act is a session in which a MobbSign instance presents a document and captures one or more signatures. You can let the SDK assign the signatures to the signers of the document in order, or name the signers of the act.

Without signers in the act​

If the signers option is empty, each signature is assigned to the next pending signer of the document, in order:

  • With onlyFinishWhenEveryoneSign set to 1 or 2, Finish appears when all the signers of the document have signed, in one act or in several. With 0, it appears after the first signature.
  • With allowSignAfterDocumentIsSigned set to true (default), more signatures are allowed once all the signers have signed; with false, only the signatures of the declared signers.

With signers in the act​

Pass the identifiers of the signers who sign in this act. Each signature is assigned to the next signer of the array, in the order of the array:

new MobbSign({
...options,
signers: [4440, 4439],
}).then((mobbsign) => mobbsign.load(documentId));
  • Finish appears after the first signature with onlyFinishWhenEveryoneSign: 0, when the signers of the act have signed with 1, and when all the signers of the document have signed with 2.
  • allowSignAfterDocumentIsSigned is always false: only the signers of the act can sign. For additional free signatures, create another instance without signers.