1
I am trying to convert a 40mb html PDF file using DOMPDF. Even with 3600 seconds timeout, it does not generate the file, nor if I put it to as 1x cron task a day or run on command line.
my script
<?php
require_once 'dompdf/autoload.inc.php';
use Dompdf\Dompdf;
// instantiate and use the dompdf class
$dompdf = new Dompdf();
$dompdf->loadHtml($html);
// (Optional) Setup the paper size and orientation
$dompdf->setPaper('A4', 'landscape');
// Render the HTML as PDF
$dompdf->render();
// Output the generated PDF to Browser
$dompdf->stream();
?>
where the variable $html
is all content from my 40 mega file.
I wonder if someone has some more efficient conversion class, that works well with large files or if Dompdf itself has this support
sorry ignorance but I have a server with Cpanel that hosts my client’s website and I need to generate the pdf, but I’m not able to use it. By any chance could you hand me the zip of the files for use ? I downloaded the git libraries and downloads from the site but neither autoload.php file exists
– Jasar Orion
I edited the answer and put the files.
– Amanda Lima
very good , congratulations and thanks for the help
– Jasar Orion