Yet Another Table Rendering Problem (YATRP)

78 views
Skip to first unread message

Paulo Henrique

unread,
May 21, 2012, 2:09:06 PM5/21/12
to dom...@googlegroups.com
Hello yall. I been using DOMPDF for a while now (just started the 0.6.0b today) and sometimes i find quite some dificulties. 

The layouts I'm sent to render in PDF always contains lots of tables and it is very difficult to make a good pdf in what comes to positioning and such, but i always manage to do it.

Now, im having some issues with this new report im rendering.

I send the HTML (containing tables) and instead of a document with 2 or 3 pages, I get a document with 112 blank pages, then 1 page with half the content (it overflows the page and doesnt break to the next one) and the last page is also blank.

I'm not sure what to do or what is going on.

Im sending in attachment the HTML I am trying to render on the PDF.

If you guys could help me shine some light on the matter, would be highly appreciated.

Thanks in advance.

Paulo Henrique

Depto. de T.I.

55 (31)2526-5652    |   55 (31)9519-1773    |    pa...@solides.com.br

 

Solides - São Paulo: 55  (11) 4063-7462 | Solides - Belo Horizonte: 55 (31) 4063-7462

Solides - Rio de Janeiro:  55 (21) 4063-7462 | Solides - Curitiba:    55 (41) 4063-7462

 

assinatura


image001.jpg
htmldemo.txt

John Bell

unread,
May 21, 2012, 6:38:53 PM5/21/12
to dom...@googlegroups.com
there is a known issue about table cells cannot span multiple pages.

Your report has a table with a single cell that encloses the report:
<table width="100%" cellspacing="0" cellpadding="0" border="0" align="center" class="form" style="width: 100%;">
                <tbody><tr>
                    <td style="padding: 20px;"><div style="width: 100%;">
            report contents here
</div>
</td>
</tr>
</tbody></table>

I suspect this could all be replaced with
<div style="width:100%;padding:20px">
            report contents here
</div>

this should solve your problem...
====
John
--
You received this message because you are subscribed to the Google Groups "dompdf" group.
To post to this group, send email to dom...@googlegroups.com.
To unsubscribe from this group, send email to dompdf+un...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/dompdf?hl=en.
Reply all
Reply to author
Forward
0 new messages