I am trying to generate some PDFs from an MVC view and it's been quite a ride. I eventually came across this and am trying to use it but it has this strange markup as shown below (it's based on ITextSharp):
<row>
<cell borderwidth="0.5" left="false" right="false" top="false" bottom="true">User Name</cell>
<cell borderwidth="0.5" left="false" right="false" top="false" bottom="true">Description</cell>
<cell borderwidth="0.5" left="false" right="false" top="false" bottom="true" horizontalalign="right">Lucky Number</cell>
<cell borderwidth="0.5" left="false" right="false" top="false" bottom="true" horizontalalign="right">Doubled</cell>
</row>
All I am really trying to do at this point is set the width of the column (cell, as it's called here) but cell
isn't accepting my style: width
or width
or anything.
How can I use this thing? Are there any better ways to render PDF from MVC view?