Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #26580

    Hi,

    first, sorry for my english, i’m french ^^

    i’m currently testing PD4ML for one of my customer.
    We want to generate PDF with HTML on lotus notes web applications.

    An ajax called agent generate the pdf with the html passed in POST method

    the call

    sUrl = "//A_TSTEXPPDF?OpenAgent"
    var sRet ="";
    $.ajax({
    type: "POST",
    url: sUrl,
    data: Trans(sData),
    cache: false,
    async: false,
    success: function(sRep){
    console.log(sRep)
    }
    
    });

    in the java agent

    html = docCont.getItemValueString("Request_Content");
    generatePDF( html,  fos, PD4Constants.A4, "", "<font color=green face=tahoma>DXL to PDF convesion result. $[page] of $[total]</font>");

    there’s problem with div’s width and padding.

    thanks for your help.

    here you can find the some codes :
    fichier zip: PD4ML.zip

    #28581

    sorry wrong pdf file
    i’ll update tomorow.

    #28582

    Simple HTML
    Bad render in PDF cf file join

    <!DOCTYPE HTML PUBLIC '-//W3C//DTD HTML 4.01 Transitional//EN'>
    <html>
    <head>
    <title>TITRE</title>
    <meta http-equiv='Content-Type' content='text/html; charset=utf-8'>
    <meta http-equiv='Expires' content='0'>
    <meta content='no-cache' name='Pragma'>
    <meta content='no-cache' name='Cache-Control'>
    <style type='text/css'>
    .div1{
    border: 1px solid yellow;
    width:800px;
    }
    .div2{
    border: 1px solid red;
    float:left;
    width:50%;
    }
    .div3{
    border: 1px solid green;
    float:left;
    width:50px;
    }
    </style>
    </head>
    <body>
    <div class="div1">
    <div class="div2">AAAA</div>
    <div class="div3">BBB</div>
    </div>
    </body>
    </html>

    http://www.fichier-zip.com/2011/07/12/expodj1135/

    #28583

    As I see, the PDF is generated with PD4ML v321b3, which is quite old. Obviously it is from our sample Notes database.

    If would make sense to replace it with the most recent version – in the meantime we addressed a lot of rendering issues. I’ve attached a PDF generated with one of the new versions – as for me it looks correct.

    #28584

    i’ve update again and it’s ok now.
    first update wasn’t ok i think
    thanks !

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

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