HTML to PDF / DOCX / RTF Java converter library › Forums › PD4ML v3 Archived Forums (Read Only) › General questions / FAQ › PD4ml take lots of memory in special scenerio
- This topic has 1 reply, 2 voices, and was last updated Mar 06, 2012
10:36:54 by PD4ML.
-
AuthorPosts
-
March 6, 2012 at 10:29#26694
Hello,
We are facing a strange problem with the pd4ml product. We run out of memory when we try to generate pdf from the HTML page having image of specific dimension and css.
HTML page has an image of dimension around 414 X 233 and some css is getting applied on it. Below is the html code snippet
The css which is getting applied on the image is:
#main-col .article .inline-left-image-wrapper {
float: left;
margin: 0 10px 0 0;
}img.inline-left-image {
float: left;
clear: left;
margin: 0 10px 5px 0;
}When either “float: left;” is removed from css (highlighted above in red) or if we change the dimensions of the image, pdf is generated without any problem but when we generate pdf keeping the same css and dimension of the image, we run out of memory.
In our error log we get the exception:
Uncaught Throwable java.lang.OutOfMemoryError: Java heap spaceIn stdout.log file which shows the progress of the pdf generation seems to get stuck at generation pdf step:
0 progress conversion begin
15 progress html parsed
93 progress document tree structure built
93 progress layouting…
93 progress layouting…
93 progress layouting…
93 progress layouting…
93 progress layouting…
93 progress layouting…
93 progress layouting…
93 progress layouting…
93 progress layouting…
93 progress layouting…
93 progress layouting…
93 progress layouting…
93 progress layouting…
93 progress layouting…
93 progress layouting…
93 progress layouting…
93 progress layouting…
93 progress layouting…
93 progress layouting…
93 progress layouting…
93 progress layouting…
109 progress layouting…
109 progress layouting…
109 progress layouting…
109 progress layouting…
109 progress layouting…
109 progress layouting…
109 progress layouting…
109 progress layouting…
109 progress layouting…
109 progress layouting…
109 progress layouting…
109 progress layouting…
109 progress layouting…
109 progress layouting…
109 progress layouting…
109 progress layouting…
109 progress layouting…
109 progress layouting…
109 progress layouting…
109 progress layouting…
109 progress layouting…
109 progress layouting…
158313 progress layouting…
158313 progress layouting…
158313 progress layouting…
158313 progress layouting…
158313 progress layouting…
158313 progress layouting…
158313 progress layouting…
158313 progress layouting…
158313 progress layouting…
158313 progress layouting…
347783 progress layouting…
347783 progress layouting…
347783 progress layouting…
348986 progress layouting…
348986 progress layouting…
348986 progress layouting…
348986 progress layouting…
348986 progress layouting…
348986 progress layouting…
348986 progress layouting…
348986 progress layouting…
350205 progress layouting…
350205 progress layouting…
350205 progress layouting…
350205 progress layouting…
350205 progress layouting…
350205 progress layouting…
350205 progress layouting…
350205 progress layouting…
351408 progress layouting…
353064 progress layouting…
353064 progress layout done
356674 progress generating PDF… 1
Please suggest what could be the cause of the issue. We can share our HTML file and css and other required resources to debug this issue. We are currently using the latest licensed version of pd4ml.
March 6, 2012 at 10:36#28916Please send the source HTML document (+resources, logs and may be some comments) to support pd4ml com. We’ll address the issue on Friday.
-
AuthorPosts
The forum ‘General questions / FAQ’ is closed to new topics and replies.