Date: Thu, 03 Jan 2013 18:57:19 -0600
From: Tom Marble <tmarble@info9.net>
To: "Bradley M. Kuhn" <bkuhn@sfconservancy.org>
Subject: ods2xlsx.py
Tom did not indicate the license of this file or ssconv.py, so I'm
waiting for him to clarify.
Tom mentioned this usage information in the email:
You will need:
These examples are adapted from:
http://www.linuxjournal.com/node/1007788http://www.linuxjournal.com/node/1007797
^ I saved as ssconv.py and can share with you if you like
NOTE: you MUST save and exit LibreOffice first!
NOTE: you must save both *.py in the same directory.
I could not figure out the filter for XLSX as for XLS:
http://wiki.openoffice.org/wiki/Documentation/DevGuide/Spreadsheets/Filter_Options
Usage:
$ ./ods2xlsx.py ~/Documents/sample.ods ~/Documents/sample2.ods
/home/tmarble/Documents/sample.ods => /home/tmarble/Documents/sample.xls
Warning: -accept=socket,host=localhost,port=8100;urp;StarOffice.ServiceManager is deprecated. Use --accept=socket,host=localhost,port=8100;urp;StarOffice.ServiceManager instead.
Warning: -norestore is deprecated. Use --norestore instead.
Warning: -nofirststartwizard is deprecated. Use --nofirststartwizard instead.
Warning: -nologo is deprecated. Use --nologo instead.
Warning: -headless is deprecated. Use --headless instead.
/home/tmarble/Documents/sample2.ods => /home/tmarble/Documents/sample2.xls
$