Hey Everyone,
I just received this error while building a html -> pdf plugin for a
client for their WordPress site, using dompdf.
Fatal error: Call to undefined method DOMText::getAttribute() in /
Other Pica Shares/Websites/wcgh/wp-content/plugins/
WCGH_DoctorsToPDF_Plugin/dompdf_6.0/include/cellmap.cls.php on line
407
I receive the error in both dompdf 5.5 and 6.0 beta2. You can see the
html I'm feeding to dompdf here:
http://d.pr/2a3l And I'm calling
dompdf like so:
//Create our pdf from the compiled html
require_once("dompdf_6.0/dompdf_config.inc.php");
$dompdf = new DOMPDF();
$dompdf->load_html($html_str);
$dompdf->render();
$pdf = $dompdf->output(); // store the entire PDF as a string in $pdf
...then I write $pdf out to a *.pdf file.
If I a bulk of that html it renders out just fine.. leads me to think
something in the html is causing this error? Any ideas would be much
appreciated. I also just noticed this error in my apache log, but was
going to debug that next... but maybe they are connected to my use of
png?
libpng warning: Interlace handling should be turned on when using
png_read_image
THANKS!
James