I suppose one way of doing it would be to read in the original Word document (HWPF), and export it as an XML Word document (XWPF). You'd then open the resulting XWPF (basically a zip file with some XML in it) and transform it with an XSLT into XSL-FO. There's some documentation on MSDN that should help with the transform: http://msdn.microsoft.com/en-us/library/aa537167%28office.11%29.aspx
Hope this helps, Mark On Sat, Feb 20, 2010 at 4:10 AM, <[email protected]> wrote: > Hello, > > can I easily use POI-HSSF, POI-HWPF etc. to transform Microsoft documents > to XSL-FO? Since FOP is another great Apache project, it seems obvious > that there is a connection between these two worlds. However, all I have > found for this purpose was a class > org.apache.poi.hdf.extractor.WordDocument in the scratchpad, which does > not work very well. > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] > > -- Mark Fortner blog: http://feeds.feedburner.com/jroller/ideafactory
