You are not logged in.
Hey all,
One of my professor hands out all the documents as .doc files. I used to use unoconv to convert these to pdf files using:
unoconv -f pdf <file>.docSome days ago, I reinstalled Arch and now this fails:
┌─jente @ opdracht4 18:34:02
└─╼ unoconv -vvvv Opdracht4.doc
Verbosity set to level 4
Using office base path: /usr/lib/libreoffice
Using office binary path: /usr/lib/libreoffice/program
DEBUG: Connection type: socket,host=127.0.0.1,port=2002;urp;StarOffice.ComponentContext
DEBUG: Existing listener not found.
DEBUG: Launching our own listener using /usr/lib/libreoffice/program/soffice.bin.
LibreOffice listener successfully started. (pid=6029)
Input file: Opdracht4.doc
unoconv: UnoException during import phase:
The document 'file:///home/jente/documenten/tudelft/algoritmen%20en%20datastructuren/practicum/opdracht4/Opdracht4.doc' could not be opened.
DEBUG: Terminating LibreOffice instance.
DEBUG: Waiting for LibreOffice instance to exit.I have all the necessary packages installed:
┌─jente @ opdracht4 18:34:10
└─╼ pacman -Qs libreoffice
local/libreoffice-base 4.2.2-2 (libreoffice)
GUI database front-end for LibreOffice. Allows creation and management of databases through a GUI.
local/libreoffice-common 4.2.2-2 (libreoffice)
common files for LibreOffice - a productivity suite that is compatible with other major office suites
local/libreoffice-nl 4.2.2-1
Dutch language pack for LibreOffice
local/unoconv 0.6-3
Libreoffice-based document converterSome searches on Google have not provided me with a solution just yet. Can somebody here point me in a direction?
EDIT: Forgot to add, it is not just this file that fails.
Last edited by Unia (2014-03-23 17:40:31)
If you can't sit by a cozy fire with your code in hand enjoying its simplicity and clarity, it needs more work. --Carlos Torres
Offline
it works here with this example snee.com/xml/xslt/sample.doc.
have you tried to open the file itself it is a doc and liboffice does pretty well with those or you could try googles doc viewer to see if it is corrupted or something.
Offline
I did try a few docs I found on the internet, snee.com/xml/xslt/sample.doc.included, and got the same error as OP or
$ unoconv -f pdf s.doc
unoconv: UnoException during import phase:
The document 'file:///home/karol/test/sample.doc' could not be opened.I just run 'pacman -S unoconv' and it wasn't untill I installed libreoffice-writer that it worked.
Opening the doc in lowriter and exporting it to a pdf from the menu works too.
Offline