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 |