Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #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 space

    In 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.

    #28916

    Please send the source HTML document (+resources, logs and may be some comments) to support pd4ml com. We’ll address the issue on Friday.

Viewing 2 posts - 1 through 2 (of 2 total)

The forum ‘General questions / FAQ’ is closed to new topics and replies.