Issue 101: Downloading PDF is Taking long time
Status:  WontFix
Owner: ----
Closed:  Jul 2008
Reported by ndhilliprasad@gmail.com, May 2, 2008
I am experimenting the JMesa Tag library to include in Our Project

I have really impressed with the Table Styles and Functionalities provided.
also i am downloading spreadsheets and PDF 

Spread Sheet was downloaded with high speed

When i am trying to download the PDF it is taking long time.
I have taken the performance statistics with Jprofiler.
From the results I have clearly observed that code in Itext.jar is taking
the long time.
is there any way to avoid this performance bottleneck?
(No of Rows in my collection was about 1000)
Attaching the Jprofiler Snapshot also

Thanks
Dhilli

Call Tree1.htm
66.8 KB   View   Download
May 2, 2008
#1 ndhilliprasad@gmail.com
It is not a defect but is a performance issue
May 2, 2008
#2 extremec...@gmail.com
Currently the PDF support is offered through the Flying Saucer project, which uses
iText. The implementation using Flying Saucer is to take an HTML table and create a
PDF document. 

Even though you have identified the bottleneck I think the performance would be
better if it was done with just the straight iText library. It is very easy to create
different kinds of views with JMesa, but creating the different views is something
that I would ask the community to do as the need comes up.
May 7, 2008
#3 ajay.mah...@gmail.com
In addition to slower performance, I observe that while generating pdf, an internet 
connection is attempted to w3.org, perhaps to download schemas or dtds. Shouldnt 
this be taken from jars. Making runtime internet connection is not a good idea for 
production environments. 
May 7, 2008
#4 extremec...@gmail.com
The only thing I know that is declared is the doctype, which is pretty standard.

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

Do you observe something else?
Jul 3, 2008
#5 extremec...@gmail.com
Ideally at some point we just create a PDF view using iText directly. For now there
is no action I can take on this.
Status: WontFix