as reported in #211899: table view problem (and solution) dompdf 0.5.1 is not able to handle the tbody tag. This also applies to the printpdf submodule.

The same solution can be applied to .../print/print_pdf/print_pdf.pages.inc in function _print_pdf_dompdf() just before the call to $dompdf->load_html($html):

  // must get rid of tbody (dompdf goes into recursion)
  $html = preg_replace('/<tbody>|<\/tbody>/', '', $html);

Comments

jcnventura’s picture

Status: Active » Fixed

The latest dev contains this fix. In a few hours you should be able to test it.

jcnventura’s picture

Status: Fixed » Active

The patch is not fully correct. The tbody tag can have attributes (http://www.w3schools.com/TAGS/tag_tbody.asp) and when that happens, the above pattern won't replace it.

The fix is very, very simple, and I will mark this fixed again when I do it...

João

jcnventura’s picture

Status: Active » Fixed

Just committed some code to better handle tbody's with attributes (adding the case-insensitive option).

João

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.