Here's the code, $filename gets declared and assigned before this
Code: Select all
$file_htm = $filename . ".htm";
$file_pdf = $filename . ".pdf";
require_once("../library/dompdf-0.5.1/dompdf_config.inc.php");
echo "\nIncluded file... preparing to create dompdf";
$dompdf = new DOMPDF();
echo "\nCreated object... preparing to load html file: $file_htm";
$dompdf->load_html_file($file_htm);
echo "\nloaded the file... preparing to render";
$dompdf->render();
echo "\nRendering the file... preparing to stream";
$dompdf->stream($file_pdf);
echo "\ndone\n";Anyone have any thoughts or ideas?
EDIT: I've changed this code, now I'm pulling all of the file contents into a string, running that through HTMLPurifier, and trying to render that instead. It's still doing the 100% CPU dance.