Forum Replies Created

Viewing 15 posts - 2,236 through 2,250 (of 4,243 total)
  • Author
    Posts
  • in reply to: General questions / FAQ
    #26816

    Can you tell me what the changes are in this new release? There is no change log available in the news archive.

    in reply to: PDF Pages are all blank
    #29223

    It seems the binary PDF document data is corrupted. Usually that happens by a HTTP transfer, when an undesired character encoding conversion is applied to a binary PDF document.

    In PD4ML JSP taglib byte[] result PDF data is sent 2 ways:
    [language=java:3bo2snuj]sr.setContentLength(result.length);
    ServletOutputStream sos = sr.getOutputStream();
    if ( this.getEncoding() != null && this.getEncoding().equals(“default”) ) {
    sos.write(result);
    } else {
    sos.print( new String( result, “ISO8859_1” ) );
    }
    sos.close();[/language:3bo2snuj]

    Try both in your Tomcat app.

    Another more rare reason of such corruption is a replacement of UNIX-style new line characters with Win-style double chars. The problem may happen, but it is quite unlikely to face with in web scenarios.

    in reply to: Maintenance PD4ML v381 (Java) released – changes?
    #29224

    You may find an actual changes description in the release notes document:
    http://pd4ml.com/relnotes.htm

    in reply to: HTML/CSS rendering issues
    #26818

    Hi,

    I’m having trouble with the styling of a PDF I generate from HTML.
    When I save the HTML as a file and open it in a browser, it looks good . On the other hand, The PDF that I generate from this HTML string doesn’t look good (mostly in terms of fonts, padding, alignment etc.).
    I believe that I’m not using any special styling in my HTML page.
    Where can be a good starting point to find out what’s causing my PDF not to look good?

    Thanks,
    Ziv

    in reply to: HTML/CSS rendering issues
    #26819

    Hi,

    I’m attaching a sample code of a png rendering of an html page.

    I tested the example code on a Stand alone J2SE program and its rendering the page into PNG24 just great.

    Then I took the exactly same code, and putted inside a Sptring MVC controller in my Jetty server, and it render the page but into PDF, ignoring outputFormat(PD4Constants.PNG24);

    Is there another way that I can force the render to be made on PNG?

    Both program are using the same jar 381

    Thanks for your time!
    Juan

    in reply to: Cant render into PNG when inside server code
    #29235

    Hi Juan

    I tried what you said and it also happened to me.
    Right now, I am testing the tool and I will be needing the configuration that you mentioned.

    Did you reached a solution?

    Cheers

    in reply to: Cant render into PNG when inside server code
    #29236

    Hi,

    I was using the non pro versions, that seems to not support outputFormat change

    WARNING: outputFormat() takes no effect in non-Pro PD4ML versions
    version: PD4ML 381 (eval)

    I will download the PRO trial and test it.

    Thanks!

    in reply to: General questions / FAQ
    #26821

    when processing html files of large size 7 – 11MB ,OutOfMemoryError: Java heap space error is occurring

    java.lang.OutOfMemoryError: Java heap space
    at java.lang.AbstractStringBuilder.expandCapacity(AbstractStringBuilder.java:99)
    at java.lang.AbstractStringBuilder.append(AbstractStringBuilder.java:393)
    at java.lang.StringBuffer.append(StringBuffer.java:225)
    at org.zefer.pd4ml.pdf.f.do(Unknown Source)
    at org.zefer.pd4ml.pdf.f.ÓO0000(Unknown Source)
    at org.zefer.pd4ml.pdf.PD4Device.startNewPage(Unknown Source)
    at org.zefer.pd4ml.PD4ML.o00000(Unknown Source)
    at org.zefer.pd4ml.PD4ML.render(Unknown Source)
    at org.zefer.pd4ml.PD4ML.render(Unknown Source)

    some times:

    java.lang.OutOfMemoryError: Java heap space
    at org.zefer.html.c.g.super(Unknown Source)
    at org.zefer.html.c.b.privatesuper(Unknown Source)
    at org.zefer.html.c.b.Ôo0000(Unknown Source)
    at org.zefer.html.c.f.Ô00000(Unknown Source)
    at org.zefer.html.c.f.Ó00000(Unknown Source)
    at org.zefer.html.c.f.ø00000(Unknown Source)
    at org.zefer.html.c.f.Õ00000(Unknown Source)
    at org.zefer.html.c.f.return(Unknown Source)
    at org.zefer.html.c.f.oo0000(Unknown Source)
    at org.zefer.html.c.f.õO0000(Unknown Source)
    at org.zefer.html.doc.PD4MLHtmlParser.parse(Unknown Source)
    at org.zefer.html.doc.PD4MLHtmlParser.buildDocument(Unknown Source)
    at org.zefer.pd4ml.PD4ML.o00000(Unknown Source)
    at org.zefer.pd4ml.PD4ML.render(Unknown Source)
    at org.zefer.pd4ml.PD4ML.render(Unknown Source)

    #29241

    Did you override the default max heap size with -Xmx???m JVM command line parameter? The default value as a rule is not sufficient for HTML rendering.

    in reply to: Cant render into PNG when inside server code
    #29237

    You are right: to perform HTML->Image conversion you need PD4ML Pro (or any derived volume license library).

    As I see in your code sample there is pd4ml.enableDebugInfo() call. It should report to STDOUT/server’s log the following message:

    [language=java:1mhs96fk]if ( debug && !isPro() ) {
    System.err.println( “WARNING: outputFormat() takes no effect in non-Pro PD4ML versions” );
    }[/language:1mhs96fk]

    #29242

    yes, it is set to 256m

    #29243

    HTML rendering (especially of that big docs) is a resource consuming task. We recommend to set at least 512m, but 1gig is better.

    It does not mean JVM immediately allocates the memory – it only defines a limit for peak cases.

    in reply to: General questions / FAQ
    #26820

    Dear friends,

    I have developed html file which contains data with image file. Then i have used pd4ml for converting Html file to Pdf.
    Pdf file is successfully created with data only. i.e. Images are not displaying. But html file is displaying on browser with image also.

    Please give me the suggestion.

    Thanking You,

    Regards
    Satyaprasad

    in reply to: Images Not Displaying
    #29238

    The following info is a good starting point to debug:
    http://pd4ml.com/cookbook/pd4ml_document_images.htm

    in reply to: Images Not Displaying
    #29239

    Hi,

    In which area, we will write pd4ml.enableDebugInfo();

Viewing 15 posts - 2,236 through 2,250 (of 4,243 total)