You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to dompdf
When trying to call dompdf I get the following error:
Fatal error: Call to undefined method DOMText::getAttribute() in /
include/pdf/dompdf/include/cellmap.cls.php on line 399
Aagaard
unread,
Aug 21, 2009, 5:42:53 AM8/21/09
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to dompdf
On my page where I generate the html and call dompdf I have a variable
called $html.
It's when i'm trying to call dompdf with this variable it fails.
IF I echo $html and copy-paste the sourcecode from the page in the
browser and then paste this into $html = ' PASTED TEXT ';
and then call dompdf then it WORKS!
How can that be? And how do I use $html directly in dompdf?
Aagaard
unread,
Aug 21, 2009, 7:57:58 AM8/21/09
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to dompdf
I stripped the $html for double spaces. Now it works.
BrianS
unread,
Aug 26, 2009, 1:15:47 PM8/26/09
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to dompdf
Based on the error it looks like DOMPDF thinks the current node is an
element when it's really text. I'm not sure why double spaces would
cause this kind of problem. How are you passing $html to DOMPDF? It
looks like it's getting loaded OK since the error is coming from
cellmap.cls.php. Do you have a sample of the original value of $html
that was causing the issue?
codeZero
unread,
Nov 28, 2014, 6:00:08 AM11/28/14
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to dom...@googlegroups.com, henrikaaga...@gmail.com
Hey whats your code structure for tables? You should have something like:
<table>
<tr>
<th>Heading 1</th>
<th>Heading 2</th>
<th>Heading 3</th>
<th>Heading 4</th>
</tr>
<tr>
<td>Cell 1</td>
<td>Cell 2</td>
<td>Cell 3</td>
<td>Cell 4</td>
</tr>
</table>
Hope this helps cause I had a similar case but soon resolved it after double checking the < table > elements. Cheers!