Artificial intelligent assistant

libreoffice headless interprets source image as text I am trying to use libreoffice to convert different source formats to pdf. This works with most formats but image formats are always interpreted as text: libreoffice --headless --convert-to pdf:writer_pdf_Export hdr1.jpeg // console output: convert /home/dev/hdr1.jpeg -> /home/dev/hdr1.pdf using filter : writer_pdf_Export The following libreoffice verison is installed (Ubuntu 20.04): libreoffice --version LibreOffice 6.4.7.2 40(Build:2) The resulting file `hdr1.pdf` does not contain the image but its binary data interpreted as text. I also tried the same with `unoconv` which results in the same problem. Is there a special flag required to make libreoffice interpret images as images and not as text? Regards,

`libreoffice` is a suite of applications. When executed with a file as a parameter, it will try to guess the type of file and open the corresponding application:


lobase
localc
lodraw
lofromtemplate
loimpress
lomath
loweb
lowriter


If the application is not there, then it might default to `lowriter`.

Check if you have the libre-office application you want to use and install it if you do not.


$ lodraw


or


$ libreoffice --draw


if it is not found you can do the following in Debian/Ubuntu:


$ sudo apt-get install libreoffice-draw

xcX3v84RxoQ-4GxG32940ukFUIEgYdPy 3533f2a260fb93dcb653cad11320221e