MSB <markbrdsly <at> tiscali.co.uk> writes: > > > In HWPF's defence,
No need. I am truly appreciative that what works works. I am fully cognizant that the underlying file is undocumented and crazy. It is a bit frustrating that the code is in some places as poor as it is, outside of the refactoring you mentioned seeing all these unused variables, and this is a pattern that repeats makes the code scarier and hard to follow. All of which is unfortunate since it mostly works and that Ryan dude certainly put a bunch of work in to get it to that stage but I think when he left the project he took some important stuff that resided only his head with him. I did look into OpenOffice but it really doesn't seem a good solution for what my goal is. I want a pure Java library, that I can use in Tomcat, so that when users upload Word docs I can (a) extract content (which is done) and (b) render the docs into PDFs for later viewing. And it is the latter goal which I am working on currently. So all in all I'd rather not install other applications or have to use automation of some variety. It (my work) actually is working pretty well (mostly) with POI and iText except for these issues, the table one is unfortunate because where a table with no drawn borders has been used for formatting currently it ends up with a border around it. I think I may have found something of use in TableDescriptor though now. I'm still experimenting but the "unused" field seems to have some bearing on styles and borders. For what it's worth when I am done I am going to make a free open-source project of my library because I think it would be useful (creating PDFs from Word without any automation seems a good thing at least to me). And I think I am going to work on some of this HWPF stuff as I can as well. --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
