itextsharp and displaying fractions
Posted on 2014-02-28
Can't figure this one out. I am creating a pdf dynamically that is displaying numbers of say 40.5, but I need it to display as 40 1/2 with the 1/2 to be the smaller font like Word does it when you type it in there. I've tried adding a new paragraph with the Unicode such as this:
document.Add(New Paragraph("\u00bc", FontFactory.GetFont("sanserif", 8)))
But it just displays the "\u00bc" as text. Obviously I'm doing something wrong. I know I can use a chunk and raise the text up, but its still not what they want.
Searching is getting me nowhere and even on here it doesn't appear to have been asked ever. Anybody know?