Skip to content
Loading
CSS external links not supporting while generate PDF file
Obviously this defeats the points of CSS and once again, that's why they're working on the new XMLWorker above.
 
Lastly, to use fonts by name you have to register them with iTextSharp first, it won't go looking for them:
  1. iTextSharp.text.FontFactory.Register(@"c:\windows\fonts\cambria.ttc", "Cambria");  
For backgroud color is through the HtmlTags class
  1. styles.LoadTagStyle(HtmlTags.HEADERCELL, HtmlTags.BACKGROUNDCOLOR, "Blue");  
+1
  • Sankara Krishnan Venugopal
    Thank you Faisal.
    0
  • Hi Sankar,
     
    External css will not work while export. your need write style in inline, then only it will work. 
    +1