1

I've document and I want to change all template parameters like {name}, {address} to my own values. I tried to use POI HWPF Library, but I lost document formatting after saving. Even when I open my MS Word document with POI and save it (without any changes) document formatting is lost:) Formatting means centering, font size, etc (there are no any tables or pictures - just 'plain text').

What library I can use for this case? Maybe anyone have expirience with MS Word documents and java. Requirements: Open Source, Without using any Windows COM components (muliplatform), Not OOXML - Microsoft Word XP 2003.

There are similar question (about truncating document after saving) Java: parsing ms-word document using POI/HWPF

4

1 に答える 1

2

自分の経験からはわかりませんが、OOo Java APIを試したことはありますか?私が聞いて見たところによると、それらは非常に優れていて柔軟性があります。そして、それはMSWord文書だけではありません。

試してみる。

于 2009-11-02T18:02:17.453 に答える