Problem with call to dompdf

0

Good morning

I was watching a tutorial of dompdf to install it but I can not find more recent tutos and when I put the sentence require_once 'dompdf-master/src/autoloader.php'; it gives me this error

I appreciate all the help

PS: I do not know if it is ok but it is the files that I am told in the documents I do not have them in my library Thank you if they need screenshot of the library items that I have they tell me pls I attach the structure of the folders

                    $codigo=utf8_decode($codigo);
                    $pdf = new Dompdf\Dompdf(); 
                    $dompdf->load_html($codigo);
                    ini:set("memory_limit","32M");
                    $dompdf->render();  
                    $dompdf->stream("ejemplo.pdf");

$ code is the html code I do not know if it's ok because it was what I saw in the tutorial

    
asked by Kevin Salazar 24.10.2017 в 18:02
source

1 answer

0

You need to download the dompdf with all its complete configuration files, download the latest version from this link: Dompdf 0.8.1

Then you import the liberia with the autoload that comes in the caperta and is ready to use, example:

require_once 'dompdf / autoload.inc.php';

$ pdf = new Dompdf \ Dompdf ();

    
answered by 24.10.2017 / 20:37
source