We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

HTML to PDF CSS padding problem

Hi,

I am using the PDF library to convert HTML to PDF and have done this successfully however once the HTML is converted it does not recognise the padding styles in the table. Is this a bug? I have posted the code below.

html {font-family:Arial, Helvetica, sans-serif; font-size:10px;}

body {text-align:center; margin: 0; font-family:Arial, Helvetica, sans-serif; }
body.whitePage {background:#FFFFFF;}
.matrix {border-collapse:collapse; font-size:11px; font-family:Arial, Helvetica, sans-serif;}
.matrix tr th {font-weight:100; text-align:center;background-color:#182942; color:#FFFFFF; }

.evenRow{background-color:#F1F1F1; height:30px;padding:10px;}
.oddRow{background-color:#FFFFFF; padding:10px;}


.alLeft {text-align:left !important; padding:10px;}
.alRight {text-align:right !important;padding:10px;}
.alMid {text-align:center !important;padding:10px;}

















































































































Currency Pair Settlement/Value TradeID Long/Short Currency Amount Dealt Price Current Price Unrealized P/L CCY Unrealized P/L USD
GBPUSD   Long GBP 1,100,000.00 - - USD -92.51 -92.51
GBPUSD 09 Jun 2011 Flat GBP 0.00 - - USD -1,105.50 -1,105.50
GBPUSD 09 Jun 2011 10000162 Sold GBP 1,000,000.00 1.637825 - - -
GBPUSD 09 Jun 2011 10000096 Bought GBP 1,000,000.00 1.638830 - - -
GBPUSD 09 Jun 2011 10000160 Sold GBP 100,000.00 1.637825 - - -
GBPUSD 09 Jun 2011 10000094 Bought GBP 100,000.00 1.638830 - - -
GBPUSD 10 Jun 2011 Long GBP 1,100,000.00 1.637810 1.638731 USD 1,012.99 1,012.99
GBPUSD 10 Jun 2011 10000163 Bought GBP 1,000,000.00 1.637810 1.638731 USD 920.90 920.90
GBPUSD 10 Jun 2011 10000161 Bought GBP 100,000.00 1.637810 1.638731 USD 92.09 92.09

Hello Jeremie,

Thanks for your interest in our products.

I have tested the scenario and I am able to reproduce the same problem. For the sake of correction, I have logged it in our issue tracking system as PDFNET-28273. We will investigate this issue in details and will keep you updated on the status of a correction. <?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />

We apologize for your inconvenience.

Thanks for your quick response.

Hi,

Is there any resolution on the above problem.

Thanks

Hello Jeremie,

Thanks for your patience.

Our development team is still working hard to get this issue fixed and I am afraid it's not yet completely resolved. Mean while I have requested the development team to share the ETA regarding its resolution. Please be patient and spare us little time. We apologize for this delay and inconvenience.