PDF writer cell styles gridspan and bgcolor are not interpreted

May 4, 2015 at 4:22 PM
Edited May 4, 2015 at 4:33 PM
Maybe this is a known issue, but I didn't see any other posts on PDF and gridspan.

I have a table with multiple gridspan and bgcolor properties applied. When I export to docx format it looks okay, but when I switch the export over to PDF, neither of these properties appear to be interpreted correctly. I've tested with all 3 PDF libraries (DomPDF, TCPDF, and MPDF). Gridspan and alignment results are inconsistent, bgcolor doesn't appear in any of them.

This is the CORRECT docx result viewed through libreoffice (ubuntu):

This is what BOTH DomPDF and MPDF produce:

This is what TCPDF produce:
Its hard to see in this one, but basically the 3rd row became the 1st 2 columns (column 3 and 4 were dropped entirely)

The correct format is as follows:
Row 1: Firstname1 (gridspan:2) Firstname2 (gridspan:2)
Row 2: Lastname1 (gridspan:2) Lastname2 (gridspan:2)
Row 3: Room1 Group 1 Room2 Group2
Row 4: (empty, gridspan: 4)

Any thoughts/suggestions?


PS I'm a big fan of this product. Hope your good work continues.