Quantcast
Channel: html2openxml Discussions Rss Feed
Viewing all articles
Browse latest Browse all 228

New Post: font size lost

$
0
0
Hello,
But how does it work for my exemple?

```
<br class="ibp-rteFontSize-5"/><span style="font-size: 16px">My Text </span></div>```
When I write ( in C#):
attrValue = en.StyleAttributes["font-size"];
            if (attrValue != null)
            {
                if (String.Compare(attrValue, "100%") != 0)
                {
                    if (attrValue.Contains("pt"))
                    {
                        attrValue = attrValue.Replace("pt", "");
                    }
                    if (attrValue.Contains("px"))
                    {
                        attrValue = attrValue.Replace("px", "");
                    }
                    styleAttributes.Add(new FontSize { Val = attrValue });
                }
The texte "My Texte" disapears.
Thanks in advance for your answers.

Viewing all articles
Browse latest Browse all 228

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>