large web tables time out

122 views
Skip to first unread message

Brent Morrison

unread,
Feb 10, 2012, 5:37:45 PM2/10/12
to dompdf
hello all i have a page that uses dompdf to put tables of information
into a pdf well if we add to the tables like right now i have 30ish
rows not pictures but in a table format it times out so far i have
went upto 240 seconds i am trying 600 now if the tables are smaller
say 10 rows it will work fine so is it just that i am not giving it
enough time or is the table to big?

Brent

BrianS

unread,
Feb 10, 2012, 5:58:05 PM2/10/12
to dom...@googlegroups.com

Which version of dompdf are you using? Also, the exact structure of your document matters. dompdf can handle fairly large tables, but there are some layouts that cause problems. The biggest problem tends to happen with nested tables because a table cell has to be smaller than a page.

If you post your document we can take a closer look.

Brent Morrison

unread,
Feb 10, 2012, 6:00:42 PM2/10/12
to dompdf
sorry about this it is fixed now i had a old version and updated and
it works fine now I just noticed the new version download after i sent
the message here but Thank you for being quick and this is a awesome
thing to make pdfs

Brent

Brent Morrison

unread,
Feb 10, 2012, 6:18:38 PM2/10/12
to dompdf
Ok another stupid question but where would i go t adjust the width
that dompdf renders the old version was not setup by me the new
version cuts my pages in like half on the width.

BrianS

unread,
Feb 10, 2012, 7:18:02 PM2/10/12
to dom...@googlegroups.com
On Friday, February 10, 2012 6:18:38 PM UTC-5, Brent Morrison wrote:
Ok another stupid question but where would i go t adjust the width
that dompdf renders the old version was not setup by me the new
version cuts my pages in like half on the width.

What do you mean by configure width? Do you want a larger page size? Or do you want to adjust the size of the table? If you mean the page size, you can control that using $dompdf->set_paper($size, $orientation) where $size is something like 'A4', 'legel', 'letter', etc. (or an array representing the page size) and $orientation is either 'portrait' or 'landscape'
 

On Feb 10, 5:00 pm, Brent Morrison <bmorrison1...@gmail.com> wrote:
> sorry about this it is fixed now i had a old version and updated and
> it works fine now I just noticed the new version download after i sent
> the message here but Thank you for being quick and this is a awesome
> thing to make pdfs

Glad you were able to work it out.
 

Brent Morrison

unread,
Feb 11, 2012, 10:03:57 AM2/11/12
to dompdf
thank you again for your reply what i mean is when i was using the old
dompdf my table may be 6 columns across and it showed all 6 but when i
installed the new version it was only showing 2.5 of the columns. I
found the dpi setting would fix this but came to a almost unreadable
sized font when i set the dpi high enough to see all columns *around
185* so is the dpi the only way and if so how does it get the fonts
size is it from the html?

Brent

BrianS

unread,
Feb 13, 2012, 2:40:21 PM2/13/12
to dom...@googlegroups.com
Is the problem due to images in the table? I wouldn't expect such a large difference in rendering, but there have been a lot of changes in how dompdf calculates widths, etc. Can you post some sample html?
Reply all
Reply to author
Forward
0 new messages