Skip to content Skip to sidebar Skip to footer

Unoconv Export .xlsx File Into Image Like Png

I have successfully installed unoconv in my ubuntu 14.04 64 bit. I want to export the first sheet of an .xlsx file into image like png or jpg. I tried unoconv -l & 9998 ## thi

Solution 1:

This seems to be an unfortunate bug in Unoconv. In the meantime, I seem to have found a workaround:

unoconv Test_Data.xlsx # converts to PDF bydefault
unoconv -f png Test_Data.pdf # *then* converts to PNG

From what I can tell from a quick Google search, this seems to be an issue with either LibreOffice or Python versions. If my workaround isn't viable for you, it's worth a try playing around with versions.

Solution 2:

I was little bit unfortunate while using Ubunutu 12.x server. It has builtin libreoffice. I tried to install openoffice through debian installer from open office site. But it wasn't able to convert any type of file.

So I removed everything by executing following commands.

sudo apt-getremove --purge libreoffice* libexttextcat-data* && sudo apt-get autoremove
sudo apt-get purge openoffice*.* && sudo apt-get autoremove
sudo apt-getremove --purge unoconv

Then Add libreoffice repository

sudo add-apt-repository ppa:libreoffice/libreoffice-4-2
sudo apt-getupdate
sudo apt-get dist-upgrade

Then install libreoffice and unoconv (apt-get version wasn't executing so I used git clone)

sudo apt-get install libreoffice
git clone https://github.com/dagwieers/unoconv
cd unoconv && sudo make install

These steps resolve my issues but I am still not able to convert docx or and xlsx to image :(. Where as from xlsx to pdf to image is working.

Solution 3:

Yes. Convert xlsx to html triggers this error. But xlsx to pdf doesn't

Post a Comment for "Unoconv Export .xlsx File Into Image Like Png"