简体   繁体   中英

Itextsharp and css

I am using iTextSharp to generate a pdf invoice.
I have a template for the invoice which is very simple, but uses CSS3 for the formatting and styling.
when I display the page in a browser it works fine, but when I try to generate the page into a pdf using itextsharp it seems to ignore all the CSS3 formatting for some reason.

My question is: Is there a way to get it to work with CSS ? Or is that a limitation of iTextSharp ?

Are your stylesheets linked with an absolute path or a relative one? PDF converters don't tend to work too well with relative paths.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM