Closed xverges closed 6 years ago
Looks like it is not related to this project
If I jump into the container's bash,
root@1352d2fb4cf2:/unoconvservice# unoconv --output=/adv5.png /adv5.docx
Traceback (most recent call last):
File "/usr/bin/unoconv", line 1030, in convert
document.storeToURL(outputurl, tuple(outputprops) )
uno.IOException: SfxBaseModel::impl_store <file:///adv5.png> failed: 0xc10
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/bin/unoconv", line 1275, in <module>
main()
File "/usr/bin/unoconv", line 1191, in main
convertor.convert(inputfn)
File "/usr/bin/unoconv", line 1032, in convert
raise UnoException("Unable to store document to %s (ErrCode %d)\n\nProperties: %s" % (outputurl, e.ErrCode, outputprops), None)
File "/usr/lib/python3/dist-packages/uno.py", line 397, in _uno_struct__getattr__
return __builtin__.getattr(self.__dict__["value"],name)
AttributeError: ErrCode
I don't think you can convert from a document format to an image format.
This project is just a convenience wrapper/service around unoconv and it says "Not all formats that can be imported can be exported and vice versa" on the label :-)
https://github.com/dagwieers/unoconv/issues/167 seems to indicate that it should be possible: the project owner says that it used to work. And also that the problem is clearly not caused by this project's wrapping. My apologies for the noise :-)
@xverges activity is not noise :-)
If it "used to work" and you know how to build your own images you could try to create another base image with older versions of libreOffice and/or unoconv.
If it "used to work" and you know how to build your own images you could try to create another base image with older versions of libreOffice and/or unoconv.
Might try, thanks. This is getting into a serious case of yak shaving :-)
btw this works from the terminal (if you have Libre Office installed) soffice --convert-to png myfile.pdf --headless
Hi. First time user of
unvconv
and of this docker image (that I pulled rather than building).docx
topdf
worked like a charm.docx
totiff/png/jpg
failed with the error belowIs this a bug, or am I misunderstanding
unoconv
capabilities