PDFsharp & MigraDoc Foundation

PDFsharp - A .NET library for processing PDF & MigraDoc Foundation - Creating documents on the fly
It is currently Thu Mar 28, 2024 9:53 pm

All times are UTC


Forum rules


Please read this before posting on this forum: Forum Rules



Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: RTFRendering
PostPosted: Tue Oct 02, 2007 1:36 pm 
Offline

Joined: Wed Sep 19, 2007 10:07 am
Posts: 4
Location: Birmingham, UK
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.

_________________
=====================
Charles Lee
Software Developer


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Tue Oct 02, 2007 4:17 pm 
Offline
PDFsharp Guru
User avatar

Joined: Mon Oct 16, 2006 8:16 am
Posts: 3095
Location: Cologne, Germany
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


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 108 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Privacy Policy, Data Protection Declaration, Impressum
Powered by phpBB® Forum Software © phpBB Group