Skip to main content

Certificate of Achievement

A course completion certificate from DocPayload Learn Academy, printed the way banknotes and passports are protected: with line work and ink effects a scanner or a photocopier does not carry over faithfully. Every one of them is plain vector drawing, so it prints sharp at any size, and draws the same in the PDF and the DOCX.

  • A split-fountain iris. The sheet is washed with one gradient that runs from rose through cream and mint to sky, as an iris press lays two inks into one another. It is a single linearGradient on a page-wide rect in a scope: "page" watermark, written as native vector shading in both formats, behind everything else.
  • A latent image of the credential number. The band under the course summary looks like an even gold tint. The field is ruled in horizontal lines and the credential number in vertical ones, at the same pitch and weight, so both carry the same ink. Tilt the page toward the light, or copy it, and the number comes up. The band is a component, latent-band, whose text is a parameter: here $data.credential.id, so every certificate carries its own number. Its letters come from a text in textRenderingMode: "clip", which confines the vertical lines to them and paints nothing itself; in the PDF it stays text, invisible, inside the band's figure.
  • Microprinted signature rules. Each signature stands on a rule that is really a line of 2-point text: the credential number and the signer's name, bound from data and fitted to the rule's exact width with textLength. Under magnification it reads; copied, it smears into a plain line. The microprint along both edges and the rings around the seal work the same way.
  • A seal that verifies. The seal's DataMatrix carries the credential record, and the seal itself links to this credential's own verification page: the link on its outer ring binds the credential ID from data.
  • Archival and well tagged. The certificate claims PDF/A-4 and both levels of Well-Tagged PDF (wtpdf-accessibility, wtpdf-reuse). Each drawing names what it is, so a screen reader announces the band and the rules as well as the seal, and the Latin lines are tagged as Latin.

Features used: PDF/A-4, PDF/UA-2, WTPDF 1.0 accessibility, WTPDF 1.0 reuse conformance, watermarks, columns, rules, SVG, barcodes (datamatrix), data binding, components, headers and footers

How it's built​

The latent-image band, placing the component with the credential number inside a framed drawing:

{
"svg": {
"title": "Latent image security band",
"desc": "Fine gold lines in which the word AUTHENTIC is ruled across the grain",
"viewBox": [512, 34],
"children": [
{ "rect": { "x": 104, "y": 0, "width": 304, "height": 34, "style": "bandFrame" } },
{ "use": { "name": "latent-band", "x": 106, "y": 2, "width": 300, "height": 30,
"params": { "text": "$data.credential.id" } } }
]
}
}

A microprinted signature rule:

{
"svg": {
"title": "Signature rule of $data.dean.name",
"viewBox": [140, 3],
"children": [
{ "text": { "x": 0, "y": 0, "style": "sigMicro", "textLength": 140, "lengthAdjust": "spacing",
"text": "[caps]$data.credential.id · $data.dean.name · $data.credential.id · $data.dean.name[/caps]" } }
]
}
}

The seal's outer ring, linked to the credential's verification page:

{ "path": { "d": "M 75 4 A 71 71 0 0 1 75 146 A 71 71 0 0 1 75 4", "style": "sealLink",
"link": "https://verify.docpayload-academy.example/c/$data.credential.id" } }

Place the band last in its drawing: a clip lasts to the end of the svg, so anything drawn after the band would be confined to its letters too.

The band's inks are its styles, latentField for the field's lines and latentWord for the letters', and a document that declares either restyles it:

{
"document": {
"styles": {
"latentField": { "fill": "none", "stroke": "#7A1F3D", "strokeWidth": 0.25 },
"latentWord": { "fill": "none", "stroke": "#1E3A5C", "strokeWidth": 0.25 }
},
"content": [
{ "svg": { "title": "Latent image", "viewBox": [300, 30], "children": [
{ "use": { "name": "latent-band", "params": { "text": "VALID" } } } ] } }
]
}
}

Keep the two inks of a similar darkness and the lines of one weight. Otherwise the word shows at a glance, which is a two-tone engraving rather than a latent image.

Variants: the same components, composed again​

The certificate is built from four components, each placed with its own parameters and themed by the document's styles:

ComponentParametersStyles a document restyles
latent-bandtextlatentTint, latentField, latentWord, latentLetters
verification-sealtitle, ring, motto, microTop, microBottom, payload, verifyvsRing, vsInner, vsBandTop, vsBandBottom, vsRingText, vsMotto, vsMicro, vsJewel, vsCaption
signature-microprintname, title, credential, rulesmScript, smName, smTitle, smCred
microprint-ruletext, titlemicroRule

signature-microprint places microprint-rule itself, so a signature's rule is a component inside a component. The two documents below are new designs that reuse all four, each with its own data:

  • Distinction, in burgundy and navy: the latent band engraves the recipient's name ("text": "$data.recipient.fullName"), and the seal and the band take burgundy from the document's vs* and latent* styles.
  • Workshop attendance, landscape and green: one signature, the seal above it, and a band engraving a fixed word ("text": "VALID"), the same component with a literal parameter in place of data.