Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

html table with 40'000 rows #97

Closed
szsolutions opened this issue Mar 30, 2016 · 4 comments
Closed

html table with 40'000 rows #97

szsolutions opened this issue Mar 30, 2016 · 4 comments

Comments

@szsolutions
Copy link

I tried to use html2pdf.fr to create a pdf for a table with about 40'000 rows. Unfortunately it takes to much time. for about 1'000 Records I just have to wait about one minute and the CPU-load of the server is about 99%. Does anyone has an idea to perform the creation? The table is quite simple without any css.

@juchi
Copy link
Contributor

juchi commented Mar 30, 2016

Hi,
Table generation is indeed a quite heavy process in HTML2PDF and unfortunately there no major improvement to be expected for now, with the current code base.
However, performance for heavy documents will be one of the focuses for the next major version, but I can't provide a timeline at this time.

@mhagenbruch
Copy link

Hey there, i have the same problem. What is better tags to use than table? simple divs?

@fagundes
Copy link
Contributor

@mhagenbruch, sorry for the late reply, I don't think change the tag name will really improve the performance. My guess the recursive algorithm is the problem here.

I guess the real 'bottleneck' to use html2pdf now it's their performance in large documents. There is any kind of guideline that we could pursue to contribuite to improve html2pdf in that matter.

There are some issue we can solve improving it. This one, #135 and #133.

@spipu
Copy link
Owner

spipu commented May 18, 2017

html2pdf does not like big tables. Try to split them in tables of 100 rows

@spipu spipu closed this as completed May 18, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants