Package: unoconv
Version: 0.3-3
I have a problem converting some ODT files into PDF.
$ unoconv -f pdf foo.odt
works fine as user joey who has logged in via X.
However, running this as user www-data results in the following error message:
sh-3.2$ unoconv -v -f pdf foo.odt
Input file: foo.odt
Selected output format: Portable Document Format [.pdf]
Selected ooffice filter: writer_pdf_Export
Used doctype: document
unoconv: UnoException during conversion:
The provided document cannot be converted to the desired format.
sh-3.2$
The last line of strace are:
futex(0x8370b44, FUTEX_WAIT_PRIVATE, 1, NULL) = 0
futex(0x8370b70, FUTEX_WAKE_PRIVATE, 1) = 0
write(2, "unoconv: UnoException during conv"..., 41unoconv: UnoException during
conversion: ) = 41
write(2, "\n"..., 1
) = 1
write(2, "The provided document cannot be c"..., 64The provided document cannot
be converted to the desired format.) = 64
write(2, "\n"..., 1
) = 1
futex(0x82b418c, FUTEX_CMP_REQUEUE_PRIVATE, 1, 2147483647, 0x82b41b8, 10) = 1
futex(0x82b41b8, FUTEX_WAKE_PRIVATE, 1) = 1
rt_sigaction(SIGINT, {SIG_DFL}, {0x80fb6a0, [], 0}, 8) = 0
+++ killed by SIGSEGV +++
I first thought that this is a problem with connecting to the X server
(permission granted) or with not being able to start OpenOffice.org in
the background. However, I have started oowriter as the very same
user for testing purpose as well, and it works.
Inspired by Bug#491456 I have started OpenOffice.org as
$ soffice "-accept=socket,host=localhost,port=2002;urp;"
and have been calling unoconv like:
$ unoconv -v -c
"socket,host=localhost,port=2002;urp;StarOffice.ComponentContext" -f pdf foo.odt
with the same results.
Omitting the StarOffice component the error message looks even less promising:
sh-3.2$ unoconv -v -c "socket,host=localhost,port=2002;urp;" -f pdf foo.odt
Error: Unable to connect or start own listener. Aborting.
Regards,
Joey
--
Unix is user friendly ... It's just picky about its friends.
Please always Cc to me when replying to me on the lists.
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]