Looking for a code portion: import/export document formats
Bjoern Michaelsen
bjoern.michaelsen at canonical.com
Mon Aug 13 04:38:14 PDT 2012
Hi,
On Mon, Aug 13, 2012 at 11:37:24AM +0100, Michael Meeks wrote:
>
> On Mon, 2012-08-13 at 11:52 +0200, Michael Stahl wrote:
> > the best option of using LibreOffice for your purpose is to install it
> > and connect to it via UNO; read the OOo Dev Guide for details:
>
> Or to run it from the command-line with:
>
> --headless --convert-to pdf foo.doc
>
> The UNO / remote automation stuff has always seemed a horrible way of
> doing the simpler conversion cases, and now we have the commandline
> sorted out - I'd love to encourage people to spawn that directly.
Note however that for batch conversion, there are limits due to commandline
length and starting an new instance again and again wouldnt improve performance
either. Your best bet for large batch conversions is using the unoconv wrapper
and which can reuse one instance of LibreOffice and remotely trigger the
conversion via UNO(*) without having to restart an instance again and again.
http://askubuntu.com/questions/171243/error-converting-thousands-of-documents-with-libreoffice/171249#171249
Best,
Bjoern
(*) Despite Michaels anti-UNO rants, which you should ignore in this case. I
suspect Michael has an "I hate UNO" sticker on his bumper and is the president
of the UNO hater club.
More information about the LibreOffice
mailing list