itextsharp html to pdf - table border not working -


i creating page tinymce editor , need convert content of editor pdf. loading editor default content contins <p> , <div> tags , 1 <table>.

i have tried apply border <td> , working if apply background-color <td> in editors seems perfect in generated pdf not able see bottom border of <td> above <td> background color.

strdetailtable.append("<tr style='border:0;border-bottom-color:black;border-bottom-width: 1px;border-bottom-style: solid;'>"); strdetailtable.append("<td style='border:0;border-bottom-color:black;border-bottom-width: 1px;border-bottom-style: solid;border-right-width: 1px;border-right-style: solid;width:200px;padding-bottom:5px;'>" + item.data1+ " </td>"); strdetailtable.append("<td style='border:0;border-bottom-color:black;border-bottom-width: 1px;border-bottom-style: solid;border-right-width: 1px;border-right-style: solid;width:200px;padding-bottom:5px;'>" + item.data2+ " </td>"); strdetailtable.append("<td style='border:0;border-bottom-color:black;border-bottom-width: 1px;border-bottom-style: solid;border-right-width: 1px;border-right-style: solid;width:200px;padding-bottom:5px;'>" + item.data3+ " </td>");  strdetailtable.append("</tr>");  strdetailtable.append("<tr><td  colspan='3' style='background-color:#d9d9d9;font-weight:bold;border:0;border-bottom-width: 1px;border-bottom-style: solid;width:200px;padding-bottom:5px;padding-top:5px;'>" + item.headerdata + " </td></tr>"); 

if using xmlworkerhelper parse html should not have problems, @ conformance list off css attribute supported, , tablecell border style attribute supported; using htmlworker?


Comments

Popular posts from this blog

get url and add instance to a model with prefilled foreign key :django admin -

android - Keyboard hides my half of edit-text and button below it even in scroll view -

css - Make div keyboard-scrollable in jQuery Mobile? -