Skip to content

HR Code

The <hrCode> tag displays the Human Readable Code of the current page, for example 13-1 252/3.

It can only be used within <template>.

Example

<template ...>
  ...
  <hrCode
    left="15cm"
    bottom="28cm"
    width="5cm"
    height="5cm"
    fontSize="4mm"
  />
  ...
<template>

Attributes

The <hrCode> tag inherits all attributes from <text>, including:

left, bottom

The position on the page in pt, mm, or cm.

width, height

The size of the text block in pt, mm, or cm.

fontSize (optional)

The font size of the human-readable code.

color (optional)

The text color of the code.

align (optional)

Text alignment: left, right, center, or justify.

class (optional)

The style class to use.