opensourceger

OpenOffice.org als Konvertierungstool

abgelegt im Archiv Software am 10.05.07

OpenOffice.org als Konvertierungstool
Beim Stöbern im Netz habe ich einen interessanten Artikel zu OpenOffice.org aufgelesen.
Unter http://www.linux.com/article.pl?sid=07/04/27/2031208 berichtet dmitri Popov von der weniger bekannten Eigenschaft von Open Office.org als Service - also ohne GUI - laufen zu können. Das eröffnet ein ganz neues Anwendungsspektrum das ich, ehrlich gesagt, schon faszinierend finde. Als Beispiel führt er an, dass Open Office.org damit als webbasiertes Konvertierungstool für unterschiedliche Dokumentformate dienen kann. Denkbar ist auch eine Verwendung über die Kommandozeile. Um OpenOffice.org als Service zu starten, muss man unter Linux:

soffice -headless -accept="socket,port=8100;urp;"


und auf einem Windows-Rechner:

\OpenOffice.org 2.2\program\soffice" -accept="socket,port=8100;urp;"


an der Kommandozeile eingeben. Zum Einsatz kommt in er Beschreibung auch noch der JODConverter. Diese Meldung zeigt wieder einmal wie vielfältig Open-Source-Software sein kann.

Das ganze detailliert im Original:



Extending OpenOffice.org: Turning OpenOffice.org into a document conversion tool

Wednesday May 09, 2007 (02:01 PM GMT)
By: Dmitri Popov

One of the less well-known features of OpenOffice.org is its ability to run as a service. You can put that ability to some clever use. For example, you can turn OpenOffice.og into a conversion engine and use it to convert documents from one format to another via a Web-based interface or a command-line tool. JODConverter can help you to unleash OpenOffice.org's file conversion capabilities.

To be able to use OpenOffice.org as a conversion engine, you have to start it as a service. This means launching it without its GUI and making it listen for incoming connections on a particular port. To do this, launch OpenOffice.org using the following command on Linux:

soffice -headless -accept="socket,port=8100;urp;"


On Windows, use this command:

"C:\Program Files\OpenOffice.org 2.2\program\soffice" -accept="socket,port=8100;urp;"


Since JODConverter is Java-based, you have to make sure that the Java runtime environment version 1.4 or higher is installed on your machine. Download the latest version of the jodconverter-tomcat-x.x.x.zip package and extract it into your home directory. You can then launch the JODConverter using the start.sh script (start.bat on Windows) in the bin directory:

sh jodconverter-tomcat-2.1.1/bin/startup.sh


On Ubuntu, you may get an error message telling you that the JAVA_HOME variable is not set. To fix this problem, locate your Java Runtime Environment using the locate /rt.jar command, and then set the variable as follows (using the directory the locate command reports):

export JAVA_HOME=/usr/lib/jvm/java-1.5.0-sun-1.5.0.11


To avoid doing this manually every time you run JODConverter, add the above command to your /home/user/.bashrc file, or to the /etc/bash.bashrc file, if you want to add it for all users.
Now, point your browser to

http://localhost:8080/converter


and you should see a simple Web interface. Pick the file you want to convert, select the target format, and press the "Convert!" button.

The above description assumes that you are running OpenOffice.org and JODConverter on the same machine. However, it's possible to configure JODConverter to connect to OpenOffice.org running as a service on another machine. The Art of Solving Web site provides a description of how to go about it.

Converting documents from the command line is equally easy. Download the latest jodconverter-x.x.x.zip package and extract it into your home directory. Make sure that OpenOffice.org is running as a service, and use the java -jar lib/jodconverter-2.1.1.jar command to convert documents.
For example:

java -jar jodconverter-2.1.1/lib/jodconverter-2.1.1.jar loremipsum.odt loremipsum.pdf


That's all there is to it. The created document conversion tool is ideal for converting files that come from any computer without OpenOffice.org running on it.
Dmitri Popov is a freelance writer whose articles have appeared in Russian, British, US, German, and Danish computer magazines

Permalink: OpenOffice.org als Konvertierungstool

Tags: ooo  Open  Office  Konverter  konvertierung  Umwandeln  JODConverter 

Stimmen Sie ab für OpenOffice.org als Konvertierungstool:

  • Currently 8.50/10
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
Dieser Eintrag wurde mit: 8.50 Punkten (von 2 Stimme(n) insg.) bewertet.
 
Share It
RSS rss
Google google
Yahoo! yahoo
Bloglines Bloglines
TwitterFollowen Sie uns bei Twitter!
Most Popular   Aktuelles   Best of   Buecher   eBook & pdf   Finanzierung   Free Burma   Fundstellen   Glosse   Green-IT   Hardware   Hintergrund   Informationen über   Internet-Kriminalitaet   IT-Strategie   JavaScript   Kommentare   Kommunikation   kurz gemeldet   Kurz vorgestellt   Linktipp