Answered by:
itextsharp issues

Question
-
User616860969 posted
how to apply css file in pdf view using itext sharp
Thursday, May 11, 2017 8:33 AM
Answers
-
User-1509636757 posted
The iTextSharp css will work only for simple type css, so make sure the css conatined in css files are of simple type. Here is the list of supported type css property in iTextSharp: http://demo.itextsupport.com/xmlworker/itextdoc/CSS-conformance-list.htm
Here are some related thread, you might would like to refer:
- Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
Saturday, May 13, 2017 5:48 PM
All replies
-
User-1509636757 posted
The iTextSharp css will work only for simple type css, so make sure the css conatined in css files are of simple type. Here is the list of supported type css property in iTextSharp: http://demo.itextsupport.com/xmlworker/itextdoc/CSS-conformance-list.htm
Here are some related thread, you might would like to refer:
- Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
Saturday, May 13, 2017 5:48 PM -
User616860969 posted
hii
styles.LoadStyle("redBigText", "color", "Red");
styles.LoadStyle("redBigText", "border-top", "12pt");
styles.LoadStyle("redBigText", "border-bottom", "12pt");
styles.LoadStyle("redBigText", "border-left", "12pt");
styles.LoadStyle("redBigText", "border-right", "1");
i am applying this way but only "color" is applying and border styles not appying
Monday, May 15, 2017 6:04 AM -
User616860969 posted
thank you kaushal
Monday, May 15, 2017 7:12 AM -
User616860969 posted
how to convert 2 or more css with html to pdf using itextsharp
Monday, May 15, 2017 8:08 AM -
User-1509636757 posted
how to convert 2 or more css with html to pdf using itextsharpdid you check this link that I have posted?: How to apply external CSS while generating PDF using iTextSharp XML
It shows usage of multiple CSS file
var cssFiles = new List { "pdf1.css", "pdf2.css" };
Monday, May 15, 2017 9:32 AM