LibreOffice configuration
Debian & Ubuntu
Section titled “Debian & Ubuntu”Install application:
$ apt-get install libreofficeInstall languages:
$ apt-get install libreoffice-l10n-en-gbGo to Administration > Configuration parameters:
| Field / Property | Type | Description |
|---|---|---|
| system.openoffice.path | String | The path may change depending your OS version. To verify that your path is correct, take a look into your chosen path and it should be a folder named program, otherwise the path is not correct. /usr/bin/libreoffice |
CentOS
Section titled “CentOS”Install the application:
$ yum install libreofficeInstall languages:
$ yum install libreoffice-langpack-enCheck if you’ve installed all needed packages:
$ rpm -qa | grep openofficeThese packages are mandatory:
- openoffice.org-ure-3.1.1-19.5.el5_5.6 ( ure )
- openoffice.org-headless-3.1.1-19.5.el5_5.6 ( headless )
- openoffice.org-pyuno-3.1.1-19.5.el5_5.6 ( pyuno )
Go to Administration > Configuration parameters:
| Field / Property | Type | Description |
|---|---|---|
| system.openoffice.path | String | The path can change depending your OS version. To verify your path is correct, into your chosen path should be a folder named program, otherwise the path is not correct. /usr/bin/libreoffice |
Windows
Section titled “Windows”Download and install one of them:
- LibreOffice: http://www.libreoffice.org
- OpenOffice: http://www.openoffice.org
Go to Administration > Configuration parameters:
| Field / Property | Type | Description |
|---|---|---|
| system.openoffice.path | String | The path can change depending your OS version. To verify your path is correct, into your chosen path should be a folder named program, otherwise the path is not correct. c:\Program files\OpenOffice 4 |
Check configuration
Section titled “Check configuration”- Go to Administration > Configuration parameters and click on check icon
. If all is right you should see under system.openoffice.path parameter an OK status. - After application starts you should see a process called soffice.bin.
- Upload a MS Office or OpenOffice file. Select the document and from toolbar choose the option Download as PDF
. - Take a look at $TOMCAT_HOME/logs/catalina.log file. At the end of the startup process you should see something like this:
2015-03-17 17:10:45,792 [pool-2-thread-1] INFO com.openkm.servlet.RepositoryStartupServlet - *** Start OpenOffice manager ***2015-03-17 17:10:45,813 [pool-2-thread-1] INFO com.openkm.util.DocConverter - *** Build Office Manager ***2015-03-17 17:10:45,813 [pool-2-thread-1] INFO com.openkm.util.DocConverter - system.openoffice.path=/usr/lib/libreoffice2015-03-17 17:10:45,813 [pool-2-thread-1] INFO com.openkm.util.DocConverter - system.openoffice.tasks=2002015-03-17 17:10:45,813 [pool-2-thread-1] INFO com.openkm.util.DocConverter - system.openoffice.port=20022015-03-17 17:10:45,866 [pool-2-thread-1] INFO org.artofsolving.jodconverter.office.ProcessPoolOfficeManager - ProcessManager implementation is SigarProcessManager2015-03-17 17:10:45,915 [OfficeProcessThread-0] WARN org.artofsolving.jodconverter.office.OfficeProcess - profile dir '/tmp/.jodconverter_socket_host-127.0.0.1_port-2002' already exists; deleting2015-03-17 17:10:45,934 [OfficeProcessThread-0] INFO org.artofsolving.jodconverter.office.OfficeProcess - starting process with acceptString 'socket,host=127.0.0.1,port=2002,tcpNoDelay=1' and profileDir '/tmp/.jodconverter_socket_host-127.0.0.1_port-2002'2015-03-17 17:10:45,956 [OfficeProcessThread-0] INFO org.artofsolving.jodconverter.office.OfficeProcess - started process; pid = 220972015-03-17 17:10:48,818 [OfficeProcessThread-0] WARN org.artofsolving.jodconverter.office.ManagedOfficeProcess - office process died with exit code 81; restarting it2015-03-17 17:10:48,825 [OfficeProcessThread-0] INFO org.artofsolving.jodconverter.office.OfficeProcess - starting process with acceptString 'socket,host=127.0.0.1,port=2002,tcpNoDelay=1' and profileDir '/tmp/.jodconverter_socket_host-127.0.0.1_port-2002'2015-03-17 17:10:48,832 [OfficeProcessThread-0] INFO org.artofsolving.jodconverter.office.OfficeProcess - started process; pid = 22137