Cannot Get CSS To Work In ITextSharp (5.4.3) When Making Pdf
I have a problem trying to apply a css file to my pdf using the iTextSharp (5.4.3) generation library. basically the css is not being applied at all. I have the following method in
Solution 1:
iTextSharp is very poor with designs using css, images etc. Instead wkhtmltopdf is the best.
Solution 2:
Well it would appear that the CSS was correctly being applied as I tested a
td{
border:1px solid red;
padding:0.4em;
margin:0;
}
to the pdf, and all the cells got bordered in red, so it would appear that the pdf overrides certain styles. Not sure why.
Post a Comment for "Cannot Get CSS To Work In ITextSharp (5.4.3) When Making Pdf"