& and PDF generator

Hello people!!   I have a PDF generator to print a document template to PDF, it works properly but if the dynamic variables contains ‘&’ an error is triggered and the PDF generator fails, anyone knows why? or how to solve it?   Thanks for your time!!
1 answers

Hey there,


it probably has something to do with the generator searching for the & tag to perform a specific action.

Might be the best to perform a replaceAll($string, ‘&’, ‘and’) on the label before performing the pdf generation.

This way you won’t have the issue