PDFsharp & MigraDoc Foundation

PDFsharp - A .NET library for processing PDF & MigraDoc Foundation - Creating documents on the fly
It is currently Thu Jul 18, 2024 12:17 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: HTML Text to Migradoc
PostPosted: Wed Jan 04, 2012 9:22 am 
Offline

Joined: Tue Jan 03, 2012 6:56 pm
Posts: 1
Hi,

I'm developing a Flex app that allows the user to export a pdf report of their work (images, text, tables etc.). At the moment we only allow one one font style, but I am currently developing the capability for rich text to be used.

I think this may be a long shot, but I am wondering if there is any support in Migradoc for translating the rich text I get from the flex component (which is exported as html) into Migradoc text with all of the formatting?

I've searched this forum and cant see any obvious solution, and I'm starting to think I need to parse this myself. If this is the case, I'd be grateful for any advice as how best to achieve this?

Thanks


Top
 Profile  
Reply with quote  
PostPosted: Wed Jan 04, 2012 8:33 pm 
Offline
PDFsharp Expert
User avatar

Joined: Wed Dec 09, 2009 8:59 am
Posts: 343
We wrote some code that imports some formatting from RTF.
We paste the text into a RichEdit control, then we select the text character by character and query the style information of the selected text. Works OK.

We had the idea to use a similar approach for HTML, letting the .NET components or the Internet Explorer do the parsing and querying the style of the text character by character.

_________________
Öhmesh Volta ("() => true")
PDFsharp Team Holiday Substitute


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: Google [Bot] and 25 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