Preview parameters

In this section you can find the most common configuration parameters related to preview. Some of these commands are included in OpenKM by default, like pdf2swf or ffmpeg (binaries compiled for Linux and Windows) but others need to be installed by the system administrator.

Linux

Field / PropertyTypeDescription

system.imagemagick.convert

String

Path to ImageMagick convert tool.

/usr/bin/convert

system.ocr

String

Path to the OCR text extraction engine.

/usr/bin/tesseract ${fileIn} ${fileOut}

system.ffmpeg

 String

Path to FFmpeg audio and video conversion tool.

/home/openkm/tomcat-7.0.27/bin/ffmpeg

system.html2pdf

 String

Path to html2pdf conversion tool. You can download this utility from http://phantomjs.org.

/home/openkm/phantomjs /home/openkm/rasterize.js ${urlIn} ${fileOut} A4

Other tools:

ToolDescription

cutycapt

 

Sometimes we have obtained better results using http://cutycapt.sourceforge.net/, which seems more configurable. This utility requires an X server, so if you are running from a non-graphical environment you may need to install a virtual X server like xvfb:

/usr/bin/xvfb-run /usr/bin/cutycapt --url=${urlIn} --out=${fileOut}

wkhtmltopdf

/usr/bin/wkhtmltopdf ${urlIn} ${fileOut}

system.office2pdf

String

Command line used to make conversion from Office documents to PDF, especially in OfficeUnoToPdfConversion. If you are using this converter, LibreOffice is not required to start as a service, so you can avoid it by setting the system.openoffice.path configuration property to an empty value.

/usr/bin/unoconv -o ${fileOut} ${fileIn}

system.pdfimages

String

 Path to the pdfimages extractor tool.

/usr/bin/pdfimages -j -f ${firstPage} -l ${lastPage} ${fileIn} ${imageRoot}

system.openoffice.path

 String

Path to the OpenOffice or LibreOffice installation.

/usr/lib/libreoffice

system.openoffice.program

String

Path to OpenOffice or LibreOffice executable. Used in OfficeDirectToPdfConversion. If you are using this converter, LibreOffice is not required to start as a service, so you can avoid it by setting the system.openoffice.path configuration property to an empty value and setting system.openoffice.server to "local".

/usr/bin/soffice

system.ghostscript

String

Path to the Ghostscript conversion tool.

/usr/bin/gs

Windows

Field / PropertyTypeDescription

system.imagemagick.convert

String

Path to the ImageMagick convert tool.

C:\openkm\bin\convert.exe

system.ocr

String

Path to the OCR text extraction engine.

C:\openkm\tools\Tesseract-OCR\tesseract.exe ${fileIn} ${fileOut} 

system.ffmpeg

 String

Path to the FFmpeg audio and video converter tool. 

C:\openkm\bin\ffmpeg.exe

 system.html2pdf

 String

Path to html2pdf conversion tool. You can download this utility from http://phantomjs.org.

C:\openkm\tools\phantomjs C:\openkm\tools\rasterize.js ${urlIn} ${fileOut} A4

system.pdfimages

String

Path to the pdfimages extractor tool.

C:\openkm\tools\pdfimages -j -f ${firstPage} -l ${lastPage} ${fileIn} ${imageRoot}

system.openoffice.path

String

Path to the OpenOffice or LibreOffice installation.

C:\Program Files\LibreOffice

system.openoffice.program

String Path to OpenOffice or LibreOffice executable. Used in OfficeDirectToPdfConversion. If you are using this converter, LibreOffice is not required to start as a service, so you can avoid it by setting the system.openoffice.path configuration property to an empty value and setting system.openoffice.server to "local".

C:\Program Files\LibreOffice\program\soffice.exe

system.ghostscript

String

Path to the Ghostscript conversion tool.

C:\openkm\bin\gswin32c.exe

 

Table of contents [ Hide Show ]