I have several textarea (over 20) on different pages of PHP and I use TinyMCE as the editor for all of these textarea. All are written in MySQL as BLOB, since all textarea allow text and image, and many characters in each. My problem: I can not print all textarea in a single PDF file (I use FPDF, but I already tried with html2pdf and tb did not work). When I call the fields recorded as BLOB via a SELECT, the text until it prints (with a few minor accent errors / ç, as below), but the images do not print at all, only the following exits in the PDF in place of the image :
<img title="foto.jpg" src="data:image/jpeg;base64,/9j/4AAQSk........>
And instead of words, such as "CONCEPT", prints:
CONCEITUAÇÃO
In the latter case, I've already tried to use utf8_decode
and htmlspecialchars_decode
, but it did not work. 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 data from all textarea into a single PDF. If someone has already experienced this or knows how to solve ......