doutan3192 2013-04-08 12:27
浏览 59

如何在我的控制器动作中包含dompfg ..现在它显示空白页面

i am using dompdf to convert html content to pdf.. this is my basic code

$path_pdf = BASE_PATH.'/public/dompdf/dompdf_config.inc.php'; 
require_once($path_pdf); 
$html = '<p>Hello PHP</p>';         
$dompdf = new DOMPDF();
$dompdf->load_html($html);
$dompdf->render();
$dompdf->stream("sample.pdf");

but at second line where i have included dompdf ... after doing it all when i run this page it shows me blank screen..and after doing some debugging i found dompdf_config.inc.php is not including... i have checked my files path, it is correct. Any idea.. Thank in advance.

  • 写回答

0条回答 默认 最新

    报告相同问题?

    悬赏问题

    • ¥15 Vue3 大型图片数据拖动排序
    • ¥15 划分vlan后不通了
    • ¥15 GDI处理通道视频时总是带有白色锯齿
    • ¥20 用雷电模拟器安装百达屋apk一直闪退
    • ¥15 算能科技20240506咨询(拒绝大模型回答)
    • ¥15 自适应 AR 模型 参数估计Matlab程序
    • ¥100 角动量包络面如何用MATLAB绘制
    • ¥15 merge函数占用内存过大
    • ¥15 使用EMD去噪处理RML2016数据集时候的原理
    • ¥15 神经网络预测均方误差很小 但是图像上看着差别太大