tallpdf.net background color
I cant seem to figure out how to add a background color to a cell for my
pdf document. I am using an xsl template to transform my xml.
If I cant do this directly, has anybody got any ideas on how to do it?
e.g. adding a thick black border etc.
I am trying to replicate this functionality, it is very basic for a pdf
document.
<html>
<body>
<table >
<thead>
<tr>
<th bgcolor="black"><font color="white">Header 1</font></th>
<th bgcolor="black"><font color="white">Header 2</font></th>
<th bgcolor="black"><font color="white">Header 3</font></th>
</tr>
</thead>
</table>
</body>
I am trying to get the fragment with the text "Job Work Order" to have a
black background with white text.
<paragraph type="table" preferredwidth="180mm">
<row >
<cell preferredwidth="70mm" fixed="true">
<paragraph type="textparagraph" spacingbefore="24"
leftindentation="5" rightindentation="2"
horizontalalignment="left">
<fragment fontsize="16">Job Work Order</fragment>
</paragraph>
</cell>
</row>
Thank you.
No comments:
Post a Comment