I am generating PDF using domPDF and addition to that I have some PDF files stored in my database that I want to embed into the PDF that I am generating by using domPDF. So for example:
PDF Files Stored in MySql as Blob
$MysqlPDF = Blob content stored in the mysql database
Generating a PDF using domPDF
$html = '<html>
<body>
Some content to generate pdf
want to include here the PDF from blob
<div style="page-break-after: always;"></div>
$MysqlPDF
</body>
</html>'
$pdf->loadHtml($html);
When I echo or print $MysqlPDF it is only showing the PDF of $MysqlPDF and not showing the one which I am generating using domPDF. And if I remove $MysqlPDF then it is only showing the PDF content that I am generating using domPDF. So I am not sure what is the best way to embed $MysqlPDF into the PDF generation using domPDF.
Aisha is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.