Forum Replies Created
-
AuthorPosts
-
in reply to: Large PDF Issue May 25, 2012 at 18:11#28860
It looks like we have found the problem. In our CSS, we have “position: relative” style on a
<DIV>tag that wraps almost the entire document (~1700 pages). So I’m guessing that that after the document was basically created, this was causing PD4ML go back and try to shift every character or element in the PDF. Once we removed this stye then everything seemed to work fine and it generated the PDF from HTML in a reasonable amount of time.in reply to: Large PDF Issue May 23, 2012 at 15:07#28858We’ve been using the Java version of PD4ML for several years and it seems that we’re hitting a wall at somewhere over 1000pgs. For example, 500pg PDF might take about 9 minutes, which we find acceptable, however, a 1700pg PDF might take several hours. We’re trying to resolve this issue and any suggestions would be appreciated. Here are some statistics for this example:
1) We’re using JSP to produce HTML that is 16-17MB in size
2) There are only a few small images (~100k in size)
3) The resulting PDF is about 7.5MB
4) We’re calling PD4ML.render(java.net.URL url, java.io.OutputStream os)
5) PD4ML v3.80fx3After upgrading to v3.80fx3, we implemented the PD4ProgressListener to try to profile the process. The result is that it’s spending all that extra time in “step 92: layouting…”. We tried saving the HTML to a static file (i.e. Mozilla: SaveAs) then used PD4ML.render(java.io.InputStreamReader isr, java.io.OutputStream os, java.net.URL base) to create the PDF file and it seemed to create the PDF in about 9 minutes (acceptable). We also confirmed that it’s taking about 4 minutes to produce and stream the HTML from JSP. Do you have any idea why would it go from 9 minutes for the static HTML to several hours for the same HTML streamed (using a URL)?
-
AuthorPosts
