0
I have several textarea (more than 20), on different pages of PHP and use Tinymce as editor of all these textarea. All are written to Mysql as BLOB, since all textarea allows text and image, and many characters in each. My problem: I can’t print every textarea in a single PDF file (I use the FPDF, but I’ve tried it with html2pdf and tb did not function). When I call the recorded fields as BLOB through a SELECT, the text until it prints (with some minor accents/ç errors, as below), but the images do not print at all, only the following comes out in the PDF instead of the image:
<img title="foto.jpg" src="data:image/jpeg;base64,/9j/4AAQSk........>
And instead of words such as "CONCEPTUALIZATION", print:
CONCEITUAÇÃO
In the latter case, I’ve tried using utf8_decode
and htmlspecialchars_decode
, but it didn’t help. In the case of the image, I have no idea how to solve it, because the image usually appears in the textarea, in the Tinymce preview of the respective textarea and even in the PDF generated by Tinymce in each textarea. The problem is when I have to consolidate all the data of all textarea into a single PDF. If someone has already gone through this or knows how to solve......