PDFsharp & MigraDoc Foundation
https://forum.pdfsharp.net/

RTFRendering
https://forum.pdfsharp.net/viewtopic.php?f=2&t=234
Page 1 of 1

Author:  Charlie_Lee [ Tue Oct 02, 2007 1:36 pm ]
Post subject:  RTFRendering

Are there any code samples for using the rtfrendering classes?

I would like to read in an rtf string and then render this out to pdf.

Author:  Thomas Hoevel [ 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 ...

Page 1 of 1 All times are UTC
Powered by phpBB® Forum Software © phpBB Group
https://www.phpbb.com/