I'm trying to get unoconv up and running on a shell only Debian system. Do I need to install LibreOffice separately?
I've managed to install it using simple apt-get install unoconc, but when I try and run a command to convert a ppt to jpgs, I'm getting some "Format not supported" complaint. Example below:
:~/ppt-test# unoconv -f jpg my-file.ppt
unoconv: UnoException during conversion: URL seems to be an unsupported one.
The provided document cannot be converted to the desired format.
Maybe the basic command structure is simple wrong?
What version of unoconv is this ? Could you try using v0.5 ?
Also you need LibreOffice installed, as well as the packages that are needed for what you like to do. In your case, you may need libreoffice-draw or any other related LibreOffice package. (I am sorry, I don't know what sub-packages are required for Debian. Easiest is to install all of them).
THanks for the fast response. I installed with with a simple apt-get install unoconv, so I'm guessing it's the latest version. I noticed that it installed Open Office as a dependency. When I tried to installed LIbreOffice I got a page full of unmet dependencies which it then refused to install.
It's an AWS vitutal instance, so it's easy to kill and start again.
Is the a repository for unoconv I should wire up?
Ok, it's version 0.3, not 0.5.
Right, how do I install version 0.5, rather than 0.3? Is there a respository I can point to?
Sorry - meant to add a massive thanks too!
Installation of unoconv is simple, you can take the unoconv python script from the latest release (or the master branch) and then run it with python. It is likely your problem is caused by v0.3 not supporting LibreOffice (yet). If this works, I would like you to report this to the upstream project (Debian) to update their unoconv package to v0.5. Please let me know if your issue is fixed with v0.5 !
BTW I updated the README on Github to reflect the installation procedure. It should provide sufficient hints to what is needed to get unoconv working. I would appreciate if you could read it and apply what you think is necessary on Debian to make sure you have a working LibreOffice (including pyuno and xsltfilter) setup.
And thanks for opening a bug for Debian to update to v0.5. Much appreciated !
@aroxo I verified on my system, and for converting graphics, you may need openoffice or libreoffice sub-packages installed named e.g. libreoffice-draw and libreoffice-graphicfilter. They may not be requirements for the Debian package, but may be suggested instead ? Your mileage may vary...
I am closing this issue. Various changes have been made to the master tree. If you still have issues making unoconv work on your distribution, please reopen this issue. Thanks in advance !
@aroxo Have you tried with the latest version from the master branch ? We have made various improvements. Should work out of the box. Testing with this version can give us a clue if we are improving for the open issues. I would like to release this ASAP as v0.6.
You can download a tarball directly from: https://github.com/dagwieers/unoconv/tarball/master or a zip file from: https://github.com/dagwieers/unoconv/zipball/master
Thanks in advance !
This is related to the filter. The PageRange option only works for the pdf-filter. I don't know the various options the jpeg filter supports :-/
One way to do what you like, is use the html output filter, which creates an image of each slide.
The LibreOffice/OpenOffice jpeg filter. I don't know what options this filter accepts as it is not documented (for UNO)...
Do you have a reference ? Might be useful to others too...
The reply makes perfect sense where the aim is to make a specific selection for the export. We have in fact another issue open (#34) for making selections (in a document-type agnostic manner). I would like to track all relevant bits there.
Another suggestion I have made is to allow plugins in unoconv, so specific manipulations (or in this case selections) can be added for specific use-cases. This would allow anyone to create their own specific manipulation. See issue #40 for an example.