HTML Size Limitations?

314 views
Skip to first unread message

dclark

unread,
May 5, 2009, 12:41:02 PM5/5/09
to dompdf
Hi.

First let me say thanks to those in charge of starting this new
support and development group. I recently set up dompdf and build the
page from a data base. Currently it does not contain images but it
does have that capability. I am using FCKEditor for users to enter
data into a blob field. Because of FCKeditor they can past directly
from MSWord. ( I will remove this if needed) I seem to have a
rather small size limitation when the page is dynamically generated
and passed to DomPDF. I am not sure that is the problem but even
when I remove all of the Word Formatting they still fail.

Long explanation for a short question.

Is there an HTML size limitation in DomPDF>

Thanks in Advance

ryan....@gmail.com

unread,
May 5, 2009, 12:44:24 PM5/5/09
to dompdf
I am still diving through all of the dompdf code before we begin
serious development... so I am not completely sure... but from what
I've seen so far there is not a hard coded limit for the size of HTML.
However, you may be limited by the memory being used and/or the time
the process is taking. Are you getting error messages? Try turning on
all logging for both php/mysql/web server.

dMc

unread,
May 5, 2009, 6:54:09 PM5/5/09
to dom...@googlegroups.com
i had this prob as well its not script related you just need to bump the allocated memory limit up in php.ini

BrianS

unread,
May 6, 2009, 2:00:01 PM5/6/09
to dompdf
A complex document can cause long rendering times and/or high memory
usage. Either of these can cause the script to error out before
completion if your server has low limits on script execution time or
memory usage. Errors returned by your script would indicate if either
of these are the problem. If you're not seeing any errors your php.ini
may have display_errors set to 0.

You can modify max_execution_time, memory_limit, and display_errors
using ini_set() <http://www.php.net/ini-set>.

If upping the execution time limit and memory limit does not work then
your problem may be in the HTML. If you have TIDY installed you might
consider running your code through it before passing the HTML document
to DOMPDF. The HTML generated by Word can be pretty messy. I do this
on a site where I'm using fcke and it helps. Plus, it's easier to scan
the HTML for errors if need be.

Without knowing what errors are thrown or the HTML you're using
there's not much help we can provide specific to your problem.

Brian
Reply all
Reply to author
Forward
0 new messages