0

Currently using libreoffice to convert doc to docx, using it in conjunction with unoconv.

subprocess.call(["unoconv", "-d", "document", "--format=docx", filename])

It works on testing environment where the CentOS server has GNOME, but the production server does not.

It is suggested from my coworker that it is best to not install any GUI on the production server.

Is there any way to run the libreoffice without install GNOME?

Can I get some suggestion please?

Jace Yang
  • 31
  • 1
  • 5
  • Please read [**these instructions**](https://stackoverflow.com/a/30465397). Yes, @KurtPfeifle wrote all this in relation to PDF, but the same instructions can be used for any conversion of files from the command line (of course, if the source file is not damaged - otherwise, no converter can help). His answer deservedly received a lot of likes - if these instructions help you, you can vote for that answer too. – JohnSUN Jan 31 '23 at 07:48

0 Answers0