dompdf不显示gujrati字体

问题描述

我使用dompdf将html转换为pdf。但它不会将gujrati字体转换为pdf。

我使用了以下代码

    // Include autoloader
    require_once 'dompdf-master/autoload.inc.PHP'; 
    
    // Reference the Dompdf namespace <br>
    use Dompdf\Dompdf; 
     
    // Instantiate and use the dompdf class <br>
    $dompdf = new Dompdf();
    
    
    // Load HTML content <br>
    $dompdf->loadHtml($output); 
     
    // (Optional) Setup the paper size and orientation <br>
    $dompdf->setPaper('A4','landscape'); 
     
    // Render the HTML as PDF <br>
    $dompdf->render(); 
     
    // Output the generated PDF to browser <br>
    $dompdf->stream('-',array("Attachment" => 0));

但是从“ //将HTML呈现为PDF”这里gujrati字体成为que-mark-? ??。

我想在打印中打印gujrti字体

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)