Use Soffice to convert from doc to png images

(Linux (Ubuntu) 18, Soffice 6.0.7.3)

I would like to use the soffice command to convert from .doc files to pages images. Is it possible to do with soffice?

I tested with the following command : soffice --convert-to png test.doc --outdir .

But it only converts the first page and ignores the rest.

Thanks.

PS: I can’t use the interface to make such conversion, it need to be made via command line arguments.

A bit OT, because the idea introduces a redirection via extra software, but as I see you are on Linux and you are bound on command line - the following works for me (Create a PDF using libreoffice and convert the resulting PDF to png files)

ibreoffice6.2 --convert-to pdf Test.odt && convert -density 288x288 -units pixelsperinch Test.pdf -background white -alpha background -alpha off  -quality 100 -resize 25% Test.png

The tool convert is part of ImageMagick and thus available on Ubuntu. Though there is only 1 Test.png in the command line, convert will create a Test-<#>.png for each page of the pdf.

Please consider the command just as an outline of how it works. If you decide to go this way, I want you direct to the importance of file policy.xml in /etc/ImageMagick-<whatever>/ directory, which determines the permissions on various actions to be performed by ImageMagick tools.

Not OT, but actually a correct answer.

Agreed with @mikekaganski…Mr @anon73440385, a very nice answer.

No, only first page is exported to raster image formats.

We’ve been using the TotalDocConverter for a few years and just purchased the upgrade to X. It has been working very well for us and we are very satisfied with the product. We use it to convert our documents to PDF, DOCX, XLS, JPEG, PNG, TIFF, HTML, XHTML, RTF, DOC, TXT in batch. I will need to look through the documentation to see if there is anything else we could utilize it for. It is product of coolutils.

This “answer” smells of advertisement, and your converter doesn’t appear to run on Linux, which @PauloMAnn specified is his OS.