When trying to convert documents using the unoserver tool from RTF to XML using the "DocBook File" output filter, LibreOffice crashes when using an XOutputStream as output. When using a file path as output, it works fine. The error that I get is: uno.com.sun.star.uno.RuntimeException: illegal object given! at /home/buildozer/aports/community/libreoffice/src/libreoffice-7.6.3.1/stoc/source/corereflection/crefl.cxx:320 Other output formats and output filters work fine when using XOutputStream so it seems like it might be something very specific. Here is the original issue on Gitlab for Unoserver: https://github.com/unoconv/unoserver/issues/117 We also tried to upgrade to the latest LibreOffice, but that also seems to have the same issue.
Thanks for the report. This works as expected: libreoffice24.2 --headless --convert-to "xml:DocBook File" infile.rtf What would be the equivalent command to get the same error with LibreOffice?
I don't think the libreoffice headless command has the ability to load files from stdin or to stdout (which wuld most likely use an XOutputStream), so I don't think you can replicate this with the normal libreoffice command.
Reasonable feature request, not sure when/if anyone will around to it, however.
It's not a feature request right? XOutputStream already works in UNO/LibreOffice, it's only not working in one very specific case. I'm not asking for XOutputStream support in the LibreOffice command.