[PDF] générer un pdf avec HTML2PDF
Bonjour, svp j’ai un problème de configuration du fichier HTML2PDF. j’ai écrit ce code ci-dessous*:
Code:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
| <?php
ob_start();
?>
<page backtop="7mm" backbottom="7mm" backleft="10mm" backright="10mm">
<page_header>
Page Header
</page_header>
<page_footer>
Page Footer
</page_footer>
Page Content
</page>
<?php
$content = ob_get_clean();
require_once('html2pdf/html2pdf.class.php');
$pdf = new HTML2PDF('P','A4','en', false, 'ISO-8859-15', array(mL, mT, mR, mB));
$pdf->writeHTML($content);
$pdf->Output();
?> |
une fois le navigateur ouvert, il affiche ce message*:
[ERROR] It seems that HTML2PDF dependencies are not installed... you must install thems with `composer install`
Svp aidez-moi à résoudre ce problème