cancel
Showing results for 
Search instead for 
Did you mean: 

Javascript Edit Word Documents

mechaviper
Champ in-the-making
Champ in-the-making
Is there a way I can edit MS Word documents using the repository Javascript API?
Document.content corrupts the MS Document for some reason.
1 ACCEPTED ANSWER

jpotts
World-Class Innovator
World-Class Innovator
Document.content writes plain-text to a node's content. MS Word documents are binary files.

If you want to change a Word document using code, consider the <a href="http://poi.apache.org/">Apache POI</a> project. It's a Java API for Microsoft Office documents. You could use it from Alfresco actions, behaviors, Java-backed web scripts, etc.

Jeff

View answer in original post

1 REPLY 1

jpotts
World-Class Innovator
World-Class Innovator
Document.content writes plain-text to a node's content. MS Word documents are binary files.

If you want to change a Word document using code, consider the <a href="http://poi.apache.org/">Apache POI</a> project. It's a Java API for Microsoft Office documents. You could use it from Alfresco actions, behaviors, Java-backed web scripts, etc.

Jeff