Joined: 16 Oct 2006
Location: Cologne, Germany
|Posted: Tue Oct 02, 2007 4:17 pm Post subject:
|Sorry, but RtfRendering works the other way around: if you have a MigraDoc document you can create PDF or RTF from it.
What you mean is "RTF parsing" - that's not implemented in PDFsharp.
We use the RichEdit control to "parse" RTF in one of our projects. If you select a single character then you can query information about it (font, style, size, color, ...). The code is not (yet?) included in PDFsharp.
Put your RTF string into an invisible RichEdit and let the selection walk from the first to the last character and query the information you want ...