PD4ML v4 Forums PD4ML v3 Archived Forums (Read Only) HTML/CSS rendering issues Incorrect layout in generated PDF

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
  • #26381

    I cannot get my generated PDF file to have two columns like my HTML does.

    I have tried setting the HtmlWidth and PageSize, but those just seem to make the pdf page bigger, but it still wants to put the text column under the image instead of next to it.

    Here is a snip of my code:

    os = new java.io.FileOutputStream(file);

    PD4ML pdf = new PD4ML();
    pdf.setPageSize( new Dimension(1024, 1024));
    pdf.setPageInsets( new Insets(0, 0, 0, 0) );
    pdf.setHtmlWidth( 1024 );
    pdf.enableImgSplit( false );
    pdf.render( new StringReader(html), os );

    I have tried leaving out the call to adjustHtmlWidth and even making the Html and PageSize really large. No dice.

    Any help?


    The width of the nesting DIV is not sufficient for 2 columns.
    I changed the width from 612 to 624 and it produced a 2 columns layout.

    [language=css:2p1m9ped]#clientBrowserMainEntity {
    margin: 0 0 10px 5px; }[/language:2p1m9ped]


    Thanks. I was sure I had tried that, but I guess I must not have.

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

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