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 compiles 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 OCR text extractor 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 detected 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 convertion from Office documents to PDF, in special in OfficeUnoToPdfConversion. If you are using this conversor, 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 pdfimages extractor tool.

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

system.openoffice.path

 String

Path to OpenOffice or LibreOffice installation path.

/usr/lib/libreoffice

system.openoffice.program

String

Path to OpenOffice or LibreOffice executable. Used in OfficeDirectToPdfConversion. If you are using this conversor, 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 set system.openoffice.server to "local".

/usr/bin/soffice

system.ghostscript

String

Path tot the ghosscript conversion tool.

/usr/bin/gs

Windows

Field / PropertyTypeDescription

system.imagemagick.convert

String

Path to image magick convert tool.

C:\openkm\bin\convert.exe

system.ocr

String

Path to ocr text extractor engine.

C:\openkm\tools\Tesseract-OCR\tesseractexe ${fileIn} ${fileOut} 

system.ffmpeg

 String

Path to ffmpeg audio and video converter tool. 

C:\openkm\bin\ffmpeg.exe

 system.html2pdf

 String

Path to html2pdf convert 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 pdfimages extractor tool.

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

system.openoffice.path

String

Path to Open Office or Libre Office installation path.

C:\Program Files\LibreOffice

system.openoffice.program

String Path to OpenOffice or LibreOffice executable. Used in OfficeDirectToPdfConversion. If you are using this conversor, 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 set system.openoffice.server to "local".

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

system.ghostscript

String

Path to the ghosscript conversion tool.

C:\openkm\bin\gswin32c.exe