LibreOffice configuration
After changing system.openoffice.path parameter is required to restart application.
Linux
Debian & Ubuntu
OpenKM has been roughly tested with recent build of OpenOffice and LibreOffice, but in recent Linux distros only LibreOffice is available to install. Anyway it works pretty well.
Install application:
$ apt-get install libreoffice
Install languages:
$ apt-get install libreoffice-l10n-en-gb
Go 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
Install the application:
$ yum install libreoffice
Install languages:
$ yum install libreoffice-langpack-en
By default, OpenOffice or LibreOffice is not present on Red Hat repository. If you're using this OS then you should try to install manually.
Download and install one of them from:
- LibreOffice: http://www.libreoffice.org
- OpenOffice: http://www.openoffice.org
Check if you've installed all needed packages:
$ rpm -qa | grep openoffice
These 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 )
The name of the packages can change depending your OpenOffice version. Take these as reference for your check.
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
Download and install one of them:
- LibreOffice: http://www.libreoffice.org
- OpenOffice: http://www.openoffice.org
Our suggestion is to use OpenOffice in Windows OS. In some Windows OS we've found unexpected problems that are automatically solved changing LibreOffice to OpenOffice. Take it only as a suggestion.
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
- 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/libreoffice
2015-03-17 17:10:45,813 [pool-2-thread-1] INFO com.openkm.util.DocConverter - system.openoffice.tasks=200
2015-03-17 17:10:45,813 [pool-2-thread-1] INFO com.openkm.util.DocConverter - system.openoffice.port=2002
2015-03-17 17:10:45,866 [pool-2-thread-1] INFO org.artofsolving.jodconverter.office.ProcessPoolOfficeManager - ProcessManager implementation is SigarProcessManager
2015-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; deleting
2015-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 = 22097
2015-03-17 17:10:48,818 [OfficeProcessThread-0] WARN org.artofsolving.jodconverter.office.ManagedOfficeProcess - office process died with exit code 81; restarting it
2015-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
Read OpenOffice LibreOffice configuration parameters to get more information about all available OpenOffice & LibreOffice configuration parameters.