ERROR: It seems that Html2Pdf dependencies are not installed ... you must install thems with 'composer install'


I get this error when I installed the dependencies as it says the composer and even so I still give that error, what else may be happening I leave the code for the submission of the form:

error_reporting(E_ALL ^ E_NOTICE);
    require ('vendor/autoload.php');
        //Incluimos la librería
        require_once 'app/lib/pdf/html2pdf-5.2.1/src/Html2Pdf.php';

        //Recogemos el contenido de la vista
        require_once 'index.php';

        //Pasamos esa vista a PDF
        //Le indicamos el tipo de hoja y la codificación de caracteres
        $mipdf=new HTML2PDF('P','letter','es','true','UTF-8');

        //Escribimos el contenido en el PDF

        //Generamos el PDF
<form action="" method="POST">
    <input type="submit" value="Generar PDF" name="generar"/>
asked by Criss 19.12.2018 в 00:18

0 answers