PDF Generating Tool Support Forum

HOME   Login   Register    Search




  Subject: HTML rendering problem with width attribute
   PostPosted: 11 Jul 2011, 18:15 
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


  Subject: Re: HTML rendering problem with width attribute
   PostPosted: 11 Jul 2011, 22:25 
sorry wrong pdf file
i'll update tomorow.


  Subject: Re: HTML rendering problem with width attribute
   PostPosted: 12 Jul 2011, 10:28 
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/


  Subject: Re: HTML rendering problem with width attribute
   PostPosted: 12 Jul 2011, 14:08 
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.


Attachments:
pd4ml32277.pdf [25.18 KiB]
Downloaded 32 times
  Subject: Re: HTML rendering problem with width attribute
   PostPosted: 13 Jul 2011, 14:19 
i've update again and it's ok now.
first update wasn't ok i think
thanks !



[Reply]     [ 5 posts ] 

Copyright ©2004-10 zefer|org. All rights reserved. Bookmark and Share