Skip to main content

Lot grading certificate

One svg component, three instances, three sets of data: the certificate a standards bureau issues after grading three lots of olive oil, where each lot's grade is shown by the same quality-seal component placed with use.

  • Same component, three instances. use names quality-seal three times; each instance passes its own params (grade A+, A, B and its tier), so one definition draws the whole family with no geometry copied.
  • Sized from its viewBox. The component is drawn in a 150 by 150 viewBox, and each use gives it a box of its own, 150, 119 and 92 units, its area in proportion to the lot's volume; the rings, star and letters scale as a unit.
  • On one baseline. The three seals stand on a gold line, each lot's name and volume under it, with a title and a description for screen readers.
  • Analysis results and grading scale. Three-line tables in tabular figures, with the grades as chips.
  • Certification and sign-off. The bureau's statement, two signature lines and a QR code that verifies the certificate.

What to look for. The three seals are one drawing: compare the rings and the star across the three sizes, then the letters, which change with each instance's data.

Features used: PDF/A-4, PDF/UA-2, DOCX Transitional conformance, columns, tables, SVG, barcodes (qrcode), data binding, components, headers and footers