Purchase Order Approval
A purchase order approved by the purchasing team, whose signature appearance is their APPROVED stamp.
- Purchase order. Supplier, delivery, required-by and terms, then four line items with quantity, unit price and amount and the total excluding VAT.
- Approval stamp. A stamp component placed inside the signature's svg and given the approval date as a parameter.
- Approver's lines. The signer, reason and date, a lock icon, and a green box styled by the document.
- Default faces. The document declares no fonts of its own.
Features used: PDF/A-2b, DOCX Transitional conformance, columns, tables, SVG, a digital signature, data binding, components, headers and footers
- Output
- Template
- Data
How it's built
The signature
The order is approved by M. Okafor of the purchasing team: a person's signature, drawn with the team's APPROVED stamp.
{
"styles": {
"approval": {
"fontSize": 8,
"color": "#14532D",
"border": "1pt solid #2F7D4F",
"backgroundColor": "#F3F9F5",
"borderRadius": 3,
"padding": 7
}
},
"signature": {
"fieldName": "PurchaseApproval",
"certificate": "certs/demo-signer.p12",
"password": "test-2026",
"visible": true,
"position": {"pageNumber": 1, "left": 48, "bottom": 188, "width": 300, "height": 96},
"appearance": {
"signedBy": "M. Okafor, Purchasing",
"reason": "Purchase order PO-2026-3381 approved",
"signDate": "2026-10-09T10:00:00Z",
"style": "approval",
"icon": "lock",
"svg": {
"viewBox": [132, 132],
"children": [
{
"use": {
"name": "approved-stamp",
"x": 0,
"y": 0,
"width": 132,
"height": 132,
"params": {"date": "09 OCT 2026"}
}
}
]
}
}
}
}
The appearance draws three lines (signer, reason and date; no location is set) in the document's approval style: 8pt dark green text in a 1pt green frame on a pale green fill, with 7pt of padding, and a lock icon on the top-right tab. The svg at the right places the approved-stamp component by use, and its one param, date, prints the approval date in the stamp (Components). The next order passes its own date; the stamp is not drawn again.
With signingType left at PAdES and no timestampServer, the signature reaches the B-B baseline level (Signature levels): the signature, the signing certificate and its signed attributes; a timestampServer would take it to B-T. Left out, its default certification level noChanges makes it a certification signature: no change is allowed after signing. The document also claims a DOCX (transitional): there the same object signs the whole package, in XAdES at the same level, and the same box is drawn.
Verifying it
Open the PDF in a reader and its signature panel shows the signature and whether the file still verifies: any change to the signed file invalidates it. The box on the page is a drawing, the stamp and the lock icon included, and says nothing about whether the signature verifies; the panel does. The document signs with certs/demo-signer.p12, a self-signed demonstration key, so every reader shows its signer as untrusted. To be trusted, sign with your own key, whose certificate your readers trust: upload a file under that name, or name your own key in certificate. E-signature lists every key of the block.