text-transform:uppercase not working while converting HTML to PDF

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

text-transform:uppercase not working while converting HTML to PDF

Siladitya Chakrabarti
Hi,

I am using itextSharp reference to convert my HTML and CSS file to a PDF.
so all the styles are being rendered. But text-transform:uppercase; is not applying.

This is my code below.

using (var HTMLStream = new MemoryStream(Encoding.UTF8.GetBytes(ParsedHTML.ToString())))
                    {
                        using (var CSSStream = new MemoryStream(Encoding.UTF8.GetBytes(CSS.ToString())))
                        {
                            XMLWorkerHelper.GetInstance().ParseXHtml(Writer, ITSDocument, HTMLStream, CSSStream, Encoding.UTF8, FontFactory.FontImp, ClientDirectory);
                        }
                    }