Important: You have to define in the config also: define('K_ALLOWED_TCPDF_TAGS', '|write1DBarcode|');