How to save word document in linux?

Posted:
Sun Mar 16, 2014 1:11 am
by cninfoer
Now I want to save a word document in Linux and transform to file outputstream in order to download from server, can docx4j make this?
Re: How to save word document in linux?

Posted:
Sun Mar 16, 2014 7:33 pm
by jason
Use the save method in Docx4J facade or use org.docx4j.openpackaging.io3.Save
These operate on docx4j's representation of a docx, which is WordprocessingMLPackage
Re: How to save word document in linux?

Posted:
Mon Mar 17, 2014 5:32 pm
by cninfoer
hi jason,
how to get file outstream in docx4j? Are there some APIs in docx4j?
Re: How to save word document in linux?

Posted:
Mon Mar 17, 2014 6:50 pm
by jason
You provide the output stream.
In a servlet environment for example, see
http://docs.oracle.com/javaee/5/api/jav ... tream.html