Invoice (PDF/A-3b + PDF/UA-1)
This is the invoice example (same data and logo) with a pdf block, rendered as an archival and accessible document:
"conformance": "PDF/A-3b"adds XMP metadata, an sRGB OutputIntent and a file ID, and allows embedded files."ua": true(PDF/UA-1) adds a structure tree in reading order. The "INVOICE" heading in the header hasrole: "H1", the seller block hasrole: "P"and the logo is aFigurewithalt. These three are tagged on page 1; the rest of the header and footer are pagination artifacts. Line items become aTablewithTHheader cells andTDcells.metadatafills the title, author, subject and keywords from the invoice data.createdcomes from{{invoice.date}}, so output is reproducible.attachmentsembeds the source data asinvoice-data.json(AFRelationshipSource).
liuska render -t examples/invoice-pdfa/template.json -o invoice-pdfa.pdf
docker run --rm -v "$PWD:/data" verapdf/cli --format text /data/invoice-pdfa.pdf # PASS 3b
docker run --rm -v "$PWD:/data" verapdf/cli -f ua1 --format text /data/invoice-pdfa.pdf # PASS ua1