Marcus Redeker wrote:
All,

Is it possible to use POI to modify the document summary info section from
an office document. I would like to add some custom properties to Excel,
Word and Powerpoint files.
I tried a word file but when I write the document with poi the summary
information is not in the new document and even some entries from the
original document like "comment" are missing.

Hi,

don't start with a Word file on that :-)
If you do not have to modify any "actual content", I suggest to use POIFS only (plus the code which deals with such properties). Just treat the Word data as byte streams and save them unchanged.

You might start by looking at org.apache.poi.POIDocument which is an abstract class. Then I'd look at the HSSFWorkbook's constructors and the write method. Probably creating a subclass of POIDocument which provides access to the Document Summary Information and otherwise just copies the data over to the new file should do well.

(Would it be interesting to have a - say - GenericPOIDocument class in POI which just does that?)

[...]
If this is not possible with POI yet maybe somebody knows another
API/Product to modify summary information with java?

Currently I'm not aware of other libraries, but maybe someone knows more :-)

best wishes, Rainer
--

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to