Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Creating & Editing MS-Word documents on a linux server?

Looking to develop server-side application that will process documents. The source documents are mostly MS-Word 2003, 2007, i.e. the MS version of Docx. Want the server application to be able to run on both linux or windows. Wanting to know what is the best tool or library for reading and writing MS-Word files under linux. Compatibility is the most important consideration. Must preserve source document formatting including tables.

I have seen a kind of similar post here but it was specific to python. I don't care what language or libraries are used as long as they are available for windows and linux.
Must not require MS-Word to read the Word files.
I am aware of Open Office but am looking for a solution which has a high degree of compatibility with MS-Word files. Also just came across this solution which looks promising. aspose.com Anyone had any experience using Aspose.Words for Java or similar 3rd party packages? It looks promising but it's pricey at over $2K for an OEM subscription. That said if it delivers as advertised it may still be the best solution out there.

thanks There have been a couple of suggestions but nothing so far which would fits the bill (or the budget).

like image 517
10ToedSloth Avatar asked Oct 15 '22 12:10

10ToedSloth


1 Answers

Have you considered using b2xtranslator to convert binary .doc to .docx. (On Linux, you'd have to run it in Mono)

You could then use POI or docx4j to manipulate the docx. Not a solution if you need to save as .doc though (unless you use OO for that bit)

like image 66
JasonPlutext Avatar answered Oct 17 '22 13:10

JasonPlutext