Platon Technologies
not logged in Login Registration
EnglishSlovak
open source software development celebrating 10 years of open source development! Sunday, July 22, 2018
About Us
Magazine
Open Source
CVS
Services
Index  »  Vývojárske zdroje  »  Konvertovanie súborov cez príkazový riadok

Ako konvertovať súbory z formátu OOo cez príkazový riadok

Author: Michal P. | Section: Vývojárske zdroje | Date: 2006-04-18

Ked chcete publikovať na webovej stránke, niekedy je žiadúce publikovať tieto súbory vo viacerých formátoch (napríklad sxw a pdf). Ukážeme si ako toto urobiť cez príkazový riadok používajúch openoffice.org a knižnicu oooconv.

Podmienky:

  1. openoffice.org nainštalovaný a bežiaci
  2. makro z stránky oooconv nainštalované v hlavnej časti (nie iba v súbore) v Standard.Module2
  3. nainštalovaný skript convert.sh

použitie je potom ľahké: convert.sh PDF test.sxw alebo convert.sh PDF *.sxw

convert.sh skript:

#!/bin/sh

# # convert.sh # # Developed by Michal Palenik # Copyright (c) 2006 Platon Group, http://platon.sk/ # Licensed under terms of GNU General Public License. # All rights reserved. # # Changelog: # 2006-04-18 - created #

# $Platon$ # readme # usage basename to_what(PDF,MSXP,...) what(file) # download macro from http://oooconv.free.fr/oooconv/oooconv_en.html # and save it as Standard.Module2 (global) under user you will convert it under # beware: it is _very_ time consuming operation # # todo: switch to OOo2, more cpu effectivenes, less display

to=$1; eval "unset $1;"; for i in $* do if [ "$i" != "$to" ] then echo "converting $i"; ooffice -minimized -headless "macro:///Standard.Module2.Exporte("$PWD/$i","$to","")" else echo "not converting $i" fi; done;

What is Platon?
Plato was a very important classical Greek philosopher, student of Socrates and teacher of Aristotle. learn more...

Platon Group is Slovak open source software development group. We are developing, maintaining, documenting some successful open-source projects.

Platon Technologies, Ltd. is young dynamically developed enterprise, which goal is to bring open technologies into the commercial sphere.

Support Us

Powerful Web-Hosting
and Multihosting

Platon Webhosting

Super Fast Servers
& Professional Administration

Virtual, Dedicated and Managed Servers

Development
Article discussion

   

 
Copyright © 2002-2006 Platon Group
Site powered by Metafox CMS
Go to Top · Feedback form · Application form
Report bug on PLATON.SK website · Terms of use · Privacy policy