Skip to main content

Immigration Notice

The notice of action an immigration authority mails when it approves an application for employment authorization, here from the Verdania Immigration & Naturalization Authority. Every personal detail comes from immigration-notice.data.json: one template, one notice per applicant.

  • An official header. The authority's seal (the registry-heraldic-seal component), its name and address, the form number, and the notice type and date.
  • The case at a glance. Receipt number, received and priority dates and the form filed, beside the applicant's name, VR-number, date of birth and country of birth.
  • The approval and its terms. A facts table with the class requested, the validity dates, the applicant's online account and the issuing office, its labels on a dark band.
  • The notice itself. A short letter on what the approval means and whom to contact if a detail is wrong, closed with the officer's name in a script face over the printed name and title.
  • A barcode to verify it. A Code 128 of the receipt number with the address to check it at.
  • A detachable arrival/departure record. Below a dashed scissors line, the record repeats the holder's details with admission number, class, admitted-until date and passport number, the applicant's photo, an entry stamp, and two machine-readable lines in OCR-B.
  • Plus a "SPECIMEN" watermark, a reminder to keep the notice, and a PDF/A-2a claim, with a title on every svg that carries meaning.

Features used: PDF/A-2a conformance, watermarks, columns, tables, rules, SVG, images, barcodes (code128), data binding, components

How it's built​

A facts table with a coloured band​

The authorization's facts are a two-column table whose label cells carry their own dark fill and white text, so the band down the left is drawn by the label style alone. Each value is a $data path (Tables, Data binding):

{ "document": {
"styles": {
"factsHeader": { "fontSize": 7, "fontWeight": "bold", "color": "#FFFFFF", "backgroundColor": "#1A1A5C",
"paddingTop": 5, "paddingBottom": 5, "paddingLeft": 8, "paddingRight": 8, "letterSpacing": 0.6 },
"factsValueBold": { "fontSize": 9, "fontWeight": "bold", "color": "#1A1A5C",
"paddingTop": 4, "paddingBottom": 4, "paddingLeft": 8, "paddingRight": 8 } },
"content": [
{ "table": { "style": "factsTable", "widths": [2, 3], "rows": [
[ { "p": "Valid from", "style": "factsHeader" }, { "p": "$data.authorization.validFrom", "style": "factsValueBold" } ],
[ { "p": "Valid to", "style": "factsHeader" }, { "p": "$data.authorization.validTo", "style": "factsValueBold" } ] ] } } ] } }

Signature and verification line​

The officer's name is set twice from one data field: once in a script face, as the signature, and once in print beneath it. Beside it, a Code 128 encodes the receipt number, bound from the same data (Barcodes):

{ "document": {
"fonts": { "Script": { "regular": "fonts/GreatVibes-Regular.ttf" } },
"styles": { "signatureScript": { "fontFamily": "Script", "fontSize": 22, "color": "#1A1A5C", "marginTop": 4 } },
"content": [
{ "table": { "style": "headerTable", "widths": [3, 2], "rows": [ [
{ "table": { "style": "headerTable", "widths": [1], "rows": [
[ { "p": "$data.officer.name", "style": "signatureScript" } ],
[ { "p": "$data.officer.name", "style": "officerName" } ] ] }, "style": "headerCell" },
{ "table": { "style": "headerTable", "widths": [1], "rows": [
[ { "p": "[barcode, code128, $data.receipt.number, 180|32]" } ],
[ { "p": "Verify at vrina.example/verify", "style": "barcodeLabel" } ] ] }, "style": "headerCell" } ] ] } } ] } }

The detachable record​

A dashed rule and a scissors line mark where the record is cut off. The record itself is three columns — two label/value tables and the applicant's photo in a titled svg — followed by the entry stamp and two machine-readable lines in the OCR-B face, each from the data file:

{ "document": {
"fonts": { "OCRB": { "regular": "fonts/OCRB-Regular.ttf" } },
"styles": { "mrzLine": { "fontFamily": "OCRB", "fontSize": 11, "color": "#1A1A5C", "letterSpacing": 1.5, "marginBottom": 1 } },
"content": [
{ "hr": { "borderStyle": "dashed", "height": 0.6, "color": "#999999" } },
{ "p": "✂ Detach below — VR-94 Arrival/Departure Record", "style": "tearoff" },
{ "p": "$data.mrz.line1", "style": "mrzLine" },
{ "p": "$data.mrz.line2", "style": "mrzLine" } ] } }

The document claims PDF/A-2a, so every svg that carries meaning has a title — "Seal of the immigration registry", "Photograph of the applicant", "Customs entry stamp" — which is what a reader of the tagged file announces (Conformance).