I am trying to display an image in the pdf template that is generated when printing a ticket.
If, for example, the "src" property of the "<img>" tag is informed with a relative path, the image does appear in the pdf.
<img src="/images/image01.jpg" alt="Imagen del producto" style="max-height:480px;">
But if the "src" property is informed with the path used to access the attached files, then the image is not loaded into the pdf.
<img src="/file.php?key=_rwmxdkezhjizx7bvjlyweuvgz09vlhk&expires=1611187200&signature=3d9c8be1bb7a7771dcb1980ced47c3e7e46138e1" alt="Imagen del producto" style="max-height:480px;">
These urls are obtained when we collect the value of the attached files of a form.
I don't quite understand why the second example doesn't work. This url, if we use it in a browser, returns an image element, and this element indicates the same url in its own "src" attribute. (Screenshot_1.png)
What am I doing wrong? How could I make the attached images of a ticket appear in the report pdf?
Thanks a lot.
Versión osTicket v1.12 (a076918)
Servidor del Software Web nginx/1.16.1
Versión MySQL 5.7.32
Versión PHP 7.0.33