Closed GoogleCodeExporter closed 9 years ago
The fact that the errors you're seeing are coming from DOMDocument indicates
that there are some problems with your document structure. I was able to
identify three structural issues that, after fixing, allowed me to render the
document. In pdf.php remove the unnecessary opening TD tag on line 14, and
remove or encode the < character in the text of the table cells on lines 433 &
437.
Pay attention to your HTML syntax. Seemingly innocuous issues in document
structure that a web browser can handle can cause DOMDocument to give up. When
this happens you should run your document through a validator to identify any
problems: http://validator.w3.org
You can avoid this kind of error in the future by enabling the HTML5 document
parser (when using dompdf 0.6.0 beta 3 or greater). Your document does not have
to be HTML5 in order to take advantage of the HTML5 parser. The benefit of
enabling the library is that it is able to correct a number of structural
errors in HTML document. (I was initially unable to reproduce the problem
because I had this library enabled on my server).
Original comment by eclecticgeek
on 13 May 2012 at 4:23
Hello,
Many thanks for feedback. I'll check this asap and see what happens.
P.S. maybe i missed to specify that i am a big noob in this branch of
engineering.
A fine day and week ahead,
n.
Original comment by ara...@gmail.com
on 13 May 2012 at 9:16
ok..later edit.
I confirm the error. Many thanks for support.
n.
Original comment by ara...@gmail.com
on 13 May 2012 at 11:06
Glad this resolved the issue. Feel free to post here with bugs, or join us on
the support forum for anything else: http://groups.google.com/group/dompdf
Original comment by eclecticgeek
on 15 May 2012 at 1:39
Original comment by eclecticgeek
on 30 May 2013 at 5:16
Original issue reported on code.google.com by
ara...@gmail.com
on 11 May 2012 at 10:59Attachments: