Chris Woods wrote:
My appologies if this is not the right forum. I'm looking for some initial help to understand if Gecko's HTML parsing and layout functionality could be used as a base to render documents to other document formats such RTF or it is specificially tied to a window?

If so, any pointers or help to get me started down the right path would be greatly appreciated!

I have need to render HTML to RTF (in a customizable layout). Starting from scratch is an option but there's a lot of territory that I'd have to cover that is already covered by modern browsers (parsing, CSS/Style, layout, etc...). Obviously, if I can leverage that functionality, I could save a lot of energy.

In the end, I'd like to wrap this up neatly into a COM object for Win32.

You could use Gecko to turn garbage HTML into a proper DOM document with CSS styles assigned to each element, then convert that into RTF. I don't think Gecko layout is going to help you.


Rob
_______________________________________________
mozilla-layout mailing list
[email protected]
http://mail.mozilla.org/listinfo/mozilla-layout

Reply via email to