Barcodes
A predefined Hublify twig-element can be included to generate a barcode-image (SVG).
In your twig-html-template, use:
... <div> {% include '@ecs/hublify/pdf/elements/_barcode.html.twig' ignore missing with { 'block': { 'text': data.si_pcode, 'format': 'CODE128', 'displayValue': false, } } only %} </div> ...
QR-Codes
A predefined Hublify twig-element can be included to generate a qr-code-image (SVG).
In your twig-html-template, use:
... <div> {% include '@ecs/hublify/pdf/elements/_qr-code.html.twig' ignore missing with { 'block': { 'text': 'myTextStrInTheCode!', } } only %} </div> ...