On Tue, 14 Feb 2012, Christian Engwer wrote:
while libreoffice support the docx and the fodt format, unoconv is not
able to call libreoffice with the appropriate options.
The attached minimal patch adds support for these formats.
A list of filters can be found at
http://wiki.services.openoffice.org/wiki/Framework/Article/Filter/FilterList_OOo_3_0
I'm not sure where to find the corresponding list for libreoffice, but
the OOo list did the trick.
I'd be happy if these small updates get incorporated...
Have you checked the version from Github ?
I have a script (attached) that pulls the information from LibreOffice (so
it's the most current information). The aim is to have unoconv use this
information, rather than a static database, however currently we have no
way to get the extension information per filter from LibreOffice yet.
https://github.com/dagwieers/unoconv/issues/20
Feel free to help us with that ;-)
Development takes place on Github at:
http://github.com/dagwieers/unoconv
not on Red Hat bugzilla, Ubuntu Launchpad, Debian Dbt... And we expect
issues to be reported on Github. I am not very fond of segregating
problems and fragmenting communities :-/
Kind regards,
--
-- dag wieers, d...@wieers.com, http://dag.wieers.com/
-- dagit linux solutions, i...@dagit.net, http://dagit.net/
[Any errors in spelling, tact or fact are transmission errors]
#!/opt/libreoffice3.4/program/python
import uno
from com.sun.star.beans import PropertyValue
from com.sun.star.connection import NoConnectException
from com.sun.star.document.UpdateDocMode import QUIET_UPDATE
from com.sun.star.lang import DisposedException, IllegalArgumentException
from com.sun.star.io import IOException, XOutputStream
from com.sun.star.script import CannotConvertException
from com.sun.star.uno import Exception as UnoException
from com.sun.star.uno import RuntimeException
context = uno.getComponentContext()
smgr = context.ServiceManager
resolver = smgr.createInstanceWithContext("com.sun.star.bridge.UnoUrlResolver",
context )
ctx = resolver.resolve(
"uno:socket,host=localhost,port=2002;urp;StarOffice.ComponentContext" )
filterfactory = smgr.createInstanceWithContext(
"com.sun.star.document.FilterFactory", ctx)
print filterfactory
filternames = filterfactory.getElementNames()
for filtername in filternames:
filterprops = filterfactory.getByName(filtername)
print filtername
for prop in filterprops:
print "\t%s -> %s" % (prop.Name, prop.Value)
if prop.Name == 'FilterService':
service = prop.Value
print dir(service)