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 ...
_________________ Regards Thomas Hoevel PDFsharp Team
|