This is the content of generateInvoice.pdf.twig file:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pdf SYSTEM "%resources%/dtd/doctype.dtd">
<pdf>
<dynamic-page>
Hello {{ name }}!
</dynamic-page>
</pdf>
But in my browser console I get a lot of errors like for example:
Warning: Ignoring invalid character "109" in hex string
pdf.worker.js (line 235)
Warning: Ignoring invalid character "76" in hex string
pdf.worker.js (line 235)
Warning: Ignoring invalid character "104" in hex string
pdf.worker.js (line 235)
Warning: Ignoring invalid character "117" in hex string
Hi, I'm using your bundle to generate a PDF file and I'm doing in this way:
This is the content of
generateInvoice.pdf.twig
file:But in my browser console I get a lot of errors like for example:
Why? What I've missed here?