PDFsharp & MigraDoc Foundation https://forum.pdfsharp.net/ |
|
HTML Text to Migradoc https://forum.pdfsharp.net/viewtopic.php?f=2&t=1878 |
Page 1 of 1 |
Author: | dannyc [ Wed Jan 04, 2012 9:22 am ] |
Post subject: | HTML Text to Migradoc |
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 |
Author: | () => true [ Wed Jan 04, 2012 8:33 pm ] |
Post subject: | Re: HTML Text to Migradoc |
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. |
Page 1 of 1 | All times are UTC |
Powered by phpBB® Forum Software © phpBB Group https://www.phpbb.com/ |