Openoffice headless on CentOS 7 / 8

Solution 1:

Isn't LIbreOffice the current and more actively developed version of OpenOffice that you should be migrating to? At least that is the office suite that is included and supported by default. And doing the standard thing is usually easiest to maintain as well, easier than keeping RPM's up2date that you manually downloaded...

"yum group list hidden" and yum group info "Office Suite and Productivity" possibly followed by yum group install "Office Suite and Productivity" should give you most of what you need.

Then further fine tuning in your scripts by using the libreoffice --headless mode

soffice --headless --convert-to pdf my-report.docx