0

就像标题一样,在任何地方都找不到答案。我需要使用通过 PHP 注入实时数据的模板背景创建一些 pdf。我需要推送给用户的最终 pdf 进行密码加密,EzPDF 是否支持这个?

4

1 回答 1

0

你的标题显示ExPDF并且你问的确实EzPDF支持这个我不确定他们是否支持这样但我建议你使用 具有 PDF 密码保护和公钥加密的TCPDF

例子

$pdf = new TCPDF(PDF_PAGE_ORIENTATION, PDF_UNIT, PDF_PAGE_FORMAT, true, 'UTF-8', false);

//Password Protection (SetProtection($permissions=array('print', 'copy'), $user_pass='', $owner_pass=null, $mode=0, $pubkeys=null);) 
$pdf->SetProtection(array('print', 'copy'), $user_pass, $owner_pass, $mode, null);


//Example With Public Keys 

$pdf->SetProtection(array('print', 'copy'), $user_pass, $owner_pass, $mode, array(array('c' => 'file://../tcpdf.crt', 'p' => array('print'))));
于 2012-08-02T11:29:03.673 回答