Platon Technologies
not logged in Login Registration
open source software development celebrating 10 years of open source development! Monday, December 6, 2021
About Us
Open Source
Index  »  Dev Resources  »  Converting files from command line

How to convert files from OOo formats to other formats via the command line

Author: Michal P. | Section: Dev Resources | Date: 2006-04-18

When publishing to website, it is sometimes desired to have these files published in different formats, eg sxw and pdf format. We will show you how to do this from command line using openoffice and oooconv library.

Neccessary elements:

  1. set up and running
  2. macro from oooconv website installed in main part (not only in file) in Standard.Module2
  3. script installed

usage is then easy: PDF test.sxw or PDF *.sxw script:


# # # # Developed by Michal Palenik # Copyright (c) 2006 Platon Group, # 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 # 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

Article discussion
sara jain 2019-12-13 09:51
laurawells     RE: 2019-12-14 13:34
Nicole Smith         RE: 2020-05-08 01:14
Johns 2020-05-21 21:00
College application writing services College application writing services 2020-12-22 10:29
Mansh Pasht Great Platform 2021-03-02 12:19
Corey Ali AWESOME SERVICES 2021-04-13 12:47
temple run thank you 2021-06-25 05:58
temple run thank you 2021-06-25 05:58
roofing supplies Utah Love dIT 2021-09-20 23:00
videography ayrshire Loved It 2021-09-21 10:45


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