On Thu, 1 Aug 2013, Vincent Bernat wrote:

❦  1 août 2013 11:36 CEST, Paul Elliott <pelli...@blackpatchpanel.com> :

When using the command:
unoconv --stdout -f pdf ../astrodocsrc/swisseph.doc   >  swisseph.pdf

I get the following error:
unoconv: UnoException during export phase:
Unable to store document to private:stream (ErrCode 3088)

Properties: ((com.sun.star.beans.PropertyValue){ Name =
(string)"FilterName", Handle = (long)0x0, Value = (any){
(string)"writer_pdf_Export" }, State =
(com.sun.star.beans.PropertyState)DIRECT_VALUE },
(com.sun.star.beans.PropertyValue){ Name = (string)"Overwrite", Handle
= (long)0x0, Value = (any){ (boolean)true }, State =
(com.sun.star.beans.PropertyState)DIRECT_VALUE },
(com.sun.star.beans.PropertyValue){ Name = (string)"OutputStream",
Handle = (long)0x0, Value = (any){
(com.sun.star.uno.XInterface)0x8e00084{,
supportedInterfaces={com.sun.star.io.XOutputStream,com.sun.star.lang.XTypeProvider}}
}, State = (com.sun.star.beans.PropertyState)DIRECT_VALUE })


But if I replace "--stdout" with "-o myfile.pdf"
the command works.

The above command also worked in version 0.5.

Could you guesstimate how long to fix this bug?
It is preventing libswe from building. But I can
work around if I need to.

I have checked with the version from git and the problem is also here. I
have forwarded the bug upstream:
https://github.com/dagwieers/unoconv/issues/156

Dunno if it can be fixed in a timely manner. We can wait a few days if
Dag has a fast fix.

It feels as if this is an issue related to the version of LibreOffice. On my RHEL6 system I can reproduce this with LO4.0 and LO4.1:

----
[dag@moria home-made]$ /opt/libreoffice3.4/program/python unoconv/unoconv -f pdf 
--stdout cv/curriculum-vitae-dag-wieers.fodt >/tmp/test.pdf
[dag@moria home-made]$ file /tmp/test.pdf
/tmp/test.pdf: PDF document, version 1.4
[dag@moria home-made]$ ls -lh /tmp/test.pdf
-rw-rw-r--. 1 dag dag 200K Aug  1 23:34 /tmp/test.pdf

[dag@moria home-made]$ /opt/libreoffice3.5/program/python unoconv/unoconv -f pdf 
--stdout cv/curriculum-vitae-dag-wieers.fodt >/tmp/test.pdf
[dag@moria home-made]$ file /tmp/test.pdf
/tmp/test.pdf: PDF document, version 1.4
[dag@moria home-made]$ ls -lh /tmp/test.pdf
-rw-rw-r--. 1 dag dag 199K Aug  1 23:34 /tmp/test.pdf

[dag@moria home-made]$ /opt/libreoffice3.6/program/python unoconv/unoconv -f pdf 
--stdout cv/curriculum-vitae-dag-wieers.fodt >/tmp/test.pdf
[dag@moria home-made]$ file /tmp/test.pdf
/tmp/test.pdf: PDF document, version 1.4
[dag@moria home-made]$ ls -lh /tmp/test.pdf
-rw-rw-r--. 1 dag dag 197K Aug  1 23:35 /tmp/test.pdf

[dag@moria home-made]$ /opt/libreoffice4.0/program/python unoconv/unoconv -f pdf 
--stdout cv/curriculum-vitae-dag-wieers.fodt >/tmp/test.pdf
unoconv: UnoException during export phase:
Unable to store document to private:stream (ErrCode 3088)

Properties: ((com.sun.star.beans.PropertyValue){ Name = (string)"OutputStream", Handle = (long)0x0, Value = 
(any){ (com.sun.star.uno.XInterface)0x2eea7f8{, 
supportedInterfaces={com.sun.star.io.XOutputStream,com.sun.star.lang.XTypeProvider}} }, State = 
(com.sun.star.beans.PropertyState)DIRECT_VALUE }, (com.sun.star.beans.PropertyValue){ Name = 
(string)"Overwrite", Handle = (long)0x0, Value = (any){ (boolean)true }, State = 
(com.sun.star.beans.PropertyState)DIRECT_VALUE }, (com.sun.star.beans.PropertyValue){ Name = 
(string)"FilterName", Handle = (long)0x0, Value = (any){ (string)"writer_pdf_Export" }, State = 
(com.sun.star.beans.PropertyState)DIRECT_VALUE })

[dag@moria home-made]$ /opt/libreoffice4.1/program/python unoconv/unoconv -f pdf 
--stdout cv/curriculum-vitae-dag-wieers.fodt >/tmp/test.pdf
unoconv: UnoException during export phase:
Unable to store document to private:stream (ErrCode 3088)

Properties: ((com.sun.star.beans.PropertyValue){ Name = (string)"FilterName", Handle = (long)0x0, Value = 
(any){ (string)"writer_pdf_Export" }, State = (com.sun.star.beans.PropertyState)DIRECT_VALUE }, 
(com.sun.star.beans.PropertyValue){ Name = (string)"Overwrite", Handle = (long)0x0, Value = (any){ 
(boolean)true }, State = (com.sun.star.beans.PropertyState)DIRECT_VALUE }, (com.sun.star.beans.PropertyValue){ Name = 
(string)"OutputStream", Handle = (long)0x0, Value = (any){ (com.sun.star.uno.XInterface)0x1e59948{, 
supportedInterfaces={com.sun.star.lang.XTypeProvider,com.sun.star.io.XOutputStream}} }, State = 
(com.sun.star.beans.PropertyState)DIRECT_VALUE })
----

So I am afraid the interface changed (subtly) and we either have to find an implementation that works fine in all cases, or test the version and implement it differently.

Not sure what the fix looks like though :-/ It's related to how we handle --stdout (using OutputStream instead of a filehandle).

--
-- dag wieers, d...@wieers.com, http://dag.wieers.com/
-- dagit linux solutions, cont...@dagit.net, http://dagit.net/

[Any errors in spelling, tact or fact are transmission errors]

Reply via email to