Offer Letter
A formal offer of employment, as a company's people team sends it to a candidate to read, sign and return before a deadline. The candidate, the role and every figure come from one data file.
- A letterhead and a personal opening. The company's svg mark, name, tagline and address, the offer reference and date, and the candidate's name and address above the salutation.
- The offer at a glance. Base salary, target bonus, sign-on bonus and equity as four figures in one ruled strip, each with its terms in a line beneath.
- Position, compensation and benefits tables. Title and level, reporting line, location, start and probation dates; each pay component with its annotation and the first-year cash total; health, retirement, vacation, parental leave and stipends.
- Contingencies as a list from data. The background check, right to work, the confidentiality agreement, restrictive covenants and written acceptance, numbered from the data file.
- A deadline that stands out. The at-will provision, then the expiry date and time set apart before the closing and the sender's signature block.
- An acceptance page completed in the PDF. The printed name pre-filled, an empty signature field, two date pickers, four acknowledgements as checkboxes, and the offer's fingerprint as a PDF417 barcode.
- Plus a repeating
CONFIDENTIALwatermark and a ruled running header and footer with the offer number, the expiry date, a line for the candidate's initials and the page count.
Features used: PDF/A-2b conformance, watermarks, columns, tables, lists, rules, SVG, barcodes (pdf417), form fields (checkbox, datepicker, text), empty signature fields, data binding, headers and footers
- Output
- Template
- Data
How it's built
The offer at a glance
The four headline terms sit in one ruled strip: an outer columns whose style draws a rule above and below (glance), holding one single-column columns per term. Each card after the first takes gCard, which adds a hairline on its left, so the strip reads as four cells without a table. Two of the four:
{ "columns": { "style": "glance", "widths": [1, 1], "gap": 0, "rows": [
[ { "columns": { "style": "gCardFirst", "widths": [1], "rows": [ [
{ "p": "Base salary", "style": "gKey" }, { "p": "$data.compensation.glanceBase", "style": "gVal" }, { "p": "CAD a year", "style": "gSub" } ] ] } } ],
[ { "columns": { "style": "gCard", "widths": [1], "rows": [ [
{ "p": "Target bonus", "style": "gKey" }, { "p": "$data.compensation.glanceBonus", "style": "gVal" }, { "p": "of base, at target", "style": "gSub" } ] ] } } ]
] } }
The figures come from data ("glanceBase": "$210,000"), set large in the serif face by gVal. See Columns.
The acceptance page
The candidate completes the last page in the PDF itself. Every field is an inline shortcode with a field name, a value and a size in points: the printed name is a text field pre-filled from data, the signature is an empty signature field a signing tool can fill, the dates are date pickers left blank, and each acknowledgement is a checkbox that starts unticked.
{ "p": "[textfield, candidateFullName, $data.candidate.fullName, 400|22]" },
{ "p": "[signature, candidateSignature, 400|40]" },
{ "p": "[datepicker, acceptanceDate, , 180|22]" },
{ "p": "[checkbox, ackAtWill, false, 12|12] I have read and understood the [b]At-Will Employment[/b] provision above.", "style": "ackCheckbox" }
Field names must be unique in the document; they are what a system reads back from the returned file. See Field types and Signature field.
A fingerprint as an svg barcode
The offer's fingerprint, a pipe-separated record of the offer number, version, dates and a content hash, is drawn as a PDF417 barcode element inside an svg. The svg sets the exact box and carries a title, which is the barcode's text alternative.
{ "svg": { "viewBox": [200, 52], "title": "Offer fingerprint $data.offer.offerNumber as PDF417", "children": [
{ "barcode": { "x": 0, "y": 0, "width": 200, "height": 52, "spec": { "type": "pdf417", "code": "$data.security.fingerprint" } } }
] } }
See Barcodes inside svg.