Hi all,

 

Iâm trying to make a Java application that duplicates a file, and set some 
user defined properties on the duplicated file.

 

Iâve taken a look to the samples and found  

 

org.apache.poi.hpsf.examples.ReadCustomPropertySets

 

This was OK to read my document user defined properties.

 

Iâve take a look also to:

 

org.apache.poi.hpsf.examples.WriteAuthorAndTitle

 

to try to modify Author and Title Word document property, but it doesnât work 
for me,

I call it using this parameters:

 

WriteAuthorAndTitle D:\\sample.doc D:\\sampleOut.doc

 

But it isnât working (Itâs creating me the new document sampleOut.doc, but 
it isnât readable).

 

What am I doing wrong?

Does anyone has a sample code to modify a Word Document user defined property?

 

Regards,

Pablo

 

 

Reply via email to