Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $pdf->SetProtection(array('copy'), '', null, 0, null);
- $pdf->SetMargins(0, 0, 0, true);
- $pdf->SetHeaderMargin(0);
- $pdf->SetFooterMargin(0);
- $pdf->SetAutoPageBreak(false, 0);
- $pdf->AddPage('L');
- $pdf->Image($imagen, -7, 1, 310, 210, '', '', '', false, 300, '', false, false, 0);
- if(!empty($imagentrasera)){
- $pdf->AddPage('L');
- $pdf->Image($imagentrasera, -7, 1, 310, 210, '', '', '', false, 300, '', false, false, 0);
- }
- if(!empty($certificado_digital)){
- // PENDIENTE DE TERMINAR
- $info = array(
- 'Name' => __('Certificado PDF',true),
- 'Location' => '',
- 'Reason' => '',
- 'ContactInfo' => '',
- );
- //var_dump($_SERVER['DOCUMENT_ROOT']);
- // HAY QUE RETOCAR¡¡¡
- $certificado_crt = 'file://'.$_SERVER['DOCUMENT_ROOT'].Configure::read('directorioinstalacion').'app/webroot/Documentos/certificados/'.$certificado_digital;
- $certificado_key = 'file://'.$_SERVER['DOCUMENT_ROOT'].Configure::read('directorioinstalacion').'app/webroot/Documentos/certificados/'.$certificado_key;
- $pdf->setSignature($certificado_crt,$certificado_key, '', '', 1, $info);
- }
- echo $pdf->Output(__('Certificado',true).'.pdf', 'I');
Add Comment
Please, Sign In to add comment