Convert doc or txt to jpg under linux cli

Convert doc or txt to jpg under linux cli

I just realized that you can convert doc and txt file under console in Linux.

I did not know this is possible :D

Under cli just type:

soffice --convert-to jpg "file.doc"
OR
soffice --convert-to jpg "file.txt"

Enjoy!