OLE Support in Linux PolarionEdit

This install will produce thumbnails for doc/docx, xls/xlsx, ppt/pptx, pdf, possibly many more (whatever libreoffice packages support)

Install prereqsEdit

apt-get update
apt-get install imagemagick
apt-get install libreoffice-core-nogui
apt-get install libreoffice-java-common default-jre
apt-get install libreoffice-writer-nogui
apt-get install libreoffice-calc-nogui
apt-get install libreoffice-impress-nogui
apt-get install libreoffice-draw-nogui
apt-get install libreoffice-base-nogui

Follow step to fix pdf convert problem:Edit

https://arstech.net/imagemagick-error-convert-im6-q16-unable-to-open-image/

Typical cmdline run:Edit

convert Document2.docx[0] Document2.docx.png

(must use [0] which specifies convert only 1st page from multiple page documents)

setup scriptEdit

cd /somepolarionwritabledirectory (i.e. /home/polarion)
touch oleconvert.sh
chown polarion:www-data oleconvert.sh
chmod +x oleconvert.sh
nano oleconvert.sh
ContentsEdit
#!/bin/sh
convert $1"[0]" $2

Config polarionEdit

nano polarion.properties
Contents based on [1]Edit
com.polarion.oleconverter.usefiles=true
com.polarion.oleconverter.app=/somepolarionwritabledirectory/oleconvert.sh
com.polarion.oleconverter.param1=$in
com.polarion.oleconverter.param2=$out
com.polarion.oleconverter.convertedImageFormat=png

ReferencesEdit