I use iTextSharp (on SharePoint but I hope this does not matter) to convert a HTML document to PDF. So far I was unable to get any borders around elements. How do I do this? Is this not supported?
Things I tried:
// in c# code
StyleSheet styles = new iTextSharp.text.html.simpleparser.StyleSheet();
styles.LoadStyle("borderCls", "border-style", "solid"); // <td class="borderCls">
styles.LoadStyle("borderCls", "border-width", "1px");
styles.LoadStyle("borderCls", "border-color", "#000");
//
styles.LoadStyle("borderCls", "border", "solid 1px #000");
// in html
<td style="border:solid 1px #000">
//
<td border="1">
//
<td style="border-style:solid;border-width:1px">
But these did not work. I just can't get iTextSharp to create any borders.
Update: Also is it possible just to define a Border on only one specific side?