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.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
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?