In this article, we are going to discuss about How to resolve the domPDF image load problem in CakePHP. domPDF is used to export the application data. If some images are available in the data, sometimes it will show all data in pdf without images. Here I'm going to provide solution to solve the domPDF image load problem in cakePHP.
It will shows the below error:
DOMPDF_ENABLE_REMOTE is set to FALSE
Solution:
Open the dompdf location where you store it and open the file name "dompdf_config.inc.php".
Search for the following line
def("DOMPDF_ENABLE_REMOTE", false);
and change the above line like bellow
def("DOMPDF_ENABLE_REMOTE", true);
All are done. Now correctly place the image path in your html code which are you want to show in your pdf.
It will shows the below error:
DOMPDF_ENABLE_REMOTE is set to FALSE
Solution:
Open the dompdf location where you store it and open the file name "dompdf_config.inc.php".
Search for the following line
def("DOMPDF_ENABLE_REMOTE", false);
and change the above line like bellow
def("DOMPDF_ENABLE_REMOTE", true);
All are done. Now correctly place the image path in your html code which are you want to show in your pdf.
0 comments:
Post a Comment