cannot open pdf file generated using dompdf

前端 未结 5 1581
栀梦
栀梦 2021-01-15 06:22

i am trying to generate a pdf file from smarty template using dompdf:code is below:-

require_once(\'dompdf/dompdf_config.inc.php\');
$dompdf = new DOMPDF();
         


        
5条回答
  •  情话喂你
    2021-01-15 06:40

    I having issue with my pdf created by dompdf I open pdf file in notepad++ i found the below php error with dompdf

    Message:  "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"
    

    This happened due to old version of dompdf that could not be supported php 7 version after updating dompdf library the issue get resolved.

    download latest dompdf library here

提交回复
热议问题