English 中文(简体)
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).

最佳回答

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)

问题回答

Ok, I ll have another go at an answer ;-)

What about using unaconv

It can convert any document OpenOffice can read to any document OpenOffice can write. You should be able to use that to convert both to/from MS-Word documents (providing they re not overly complicated which I ve found open office can t handle very well).

The only caveat is that you need to have an instance of OpenOffice running on the linux server for unoconv to interact with.

Mono has recently acquired support for the system.io.packaging .net class, which allows some degree of manipulation of docx files. If the kind of thing you want to do is add/remove resources and recurse over the text, it s probably the right thing.





相关问题
Signed executables under Linux

For security reasons, it is desirable to check the integrity of code before execution, avoiding tampered software by an attacker. So, my question is How to sign executable code and run only trusted ...

encoding of file shell script

How can I check the file encoding in a shell script? I need to know if a file is encoded in utf-8 or iso-8859-1. Thanks

How to write a Remote DataModule to run on a linux server?

i would like to know if there are any solution to do this. Does anyone? The big picture: I want to access data over the web, using my delphi thin clients. But i´would like to keep my server/service ...

How can I use exit codes to run shell scripts sequentially?

Since cruise control is full of bugs that have wasted my entire week, I have decided the existing shell scripts I have are simpler and thus better. Here is what I have so far svn update /var/www/...

Good, free, easy-to-use C graphics libraries? [closed]

I was wondering if there were any good free graphics libraries for C that are easy to use? It s for plotting 2d and 3d graphs and then saving to a file. It s on a Linux system and there s no gnuplot ...

热门标签