ProgrammingThis forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Sorry but I think I didn't explain the whole question. In fact I need convert DOC and RTF files automatcly. I suposed I should use the OpenOffice's API. I've already visited www.openoffice.org, but I haven't found any information about it. The real question is how can I use that API in order to apply your sugestion.
I do this on a FreeBSD/Apache production web server. Several users responsible for document creation use Word then save as RTF. They use predetermined strings to identify dynamic text.
This is then parsed in a custom parsing class to basically str_replace each of the variables. From there the finished RTF is passed through rtf2pdf.sh (I use exec() from within my PHP script). I then either pass a link back to the user or fopen and stream the PDF to the user. It works well.
I recommend users use Wordpad since the RTF is simpler and well supported by Ted. As for .doc...I haven't researched that since rtf solved my problem.
The first reply is not an error. Open office can be automated with various scripting languages by using the UNO interface.
The level of automation possible is very general: We have python scripts that load a document, find some tables by searching for given formatting, create blank rows in those tables, fetch contents for the new rows from a database and save the result as PDF with a formatted schedule of values matching an industry standard form.
That said, OOo is a big, heavy server component, and I would like to play with something that runs nicely from the command line. I have a Linux environment in mind for final deployment, but my current test data is on Windows box. Is there a version of Ted compiled for Windows anywhere?