PD4ML v4 Forums PD4ML v3 Archived Forums (Read Only) HTML/CSS rendering issues Cant render into PNG when inside server code

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

    #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

    #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!

    #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]

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

The forum ‘HTML/CSS rendering issues’ is closed to new topics and replies.