Win a copy of Bad Programming Practices 101 (e-book) this week in the Beginning Java forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

convert xhtml to rtf  RSS feed

Ranch Hand
Posts: 55
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,
I am trying to convert xhtml to rtf and there are few strategies possible:
1. Convert xhtml to xsl:fo using xhtml2fo.xsl stylesheet and then convert the fo to rtf using a library(like by mindspan)
THE ISSUE I have is that the xsl(part of antennahouse documentation) is still for a small subset of xhtml and the conversion to fo leaves a lot to be desired( font sizes, style, etc). Secondly the xsl implementation has performance impact.
2. Use a api (such as itext) to convert xhtml to rtf. The api is also incomplete.
3. Use a SAX parser to convert the xhtml to fo, which can be quite cumbersome.
I don't see a real clean solution. If you have worked on conversions of xhtml to rtf and pdf, please share your thoughts.
[ August 11, 2003: Message edited by: Avianu Sud ]
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!