Location: PHPKode > projects > Limbas > openlimbas/dependent/EXTENSIONS/ocr/ext_explorer.inc
Copyright notice
(c) 1998-2010 Axel Westhagen (hide@address.com)
All rights reserved
This script is part of the LIMBAS project. The LIMBAS project is free software; you can redistribute it and/or modify it on 2 Ways:
Under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
In a Propritary Software Licence http://limbas.org
The GNU General Public License can be found at http://www.gnu.org/copyleft/gpl.html.
A copy is found in the textfile GPL.txt and important notices to the license from the author is found in LICENSE.txt distributed with these scripts.
This script is distributed WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
This copyright notice MUST APPEAR in all copies of the script!
/* --- Beschr.: OCR Extension ---------------------------------------- */

$umgvar["ocr_enable"] = 1;													# activate OCR
$umgvar["ocr_filetypes"] = "pdf;tiff";										# gif/jpg/pbm/pdf/png/ppm/eps/ras/rgb/sgi/iris/tiff/xwd/xpm
$umgvar["ocr_format"] = "pdfi";												# default output format (pdf/pdfi/text/html)
$umgvar["ocr_formatlist"] = "pdf,pdfi,text,html";							# possible output formats (pdf/pdfi/text/html)
$umgvar["ocr_destination"] = "overwrite";									# (rename/overwrite/versioning)
$umgvar["ocr_language"] = "english,german,french"; 							# language list 
$umgvar["ocr_depth"] = 24; 													# output depth 
$umgvar["ocr_black_threshold"] = 30;										# black white contrast 
$umgvar["ocr_timeout"] = 30;												# Limits the maximum execution time in minutes 
$umgvar["ocr_validate_pdf"] = 100;											# minimum count of words in pdf for starting ocr process 
$umgvar["ocr_save_copy"] = "/usr/local/limbas/httpd/limbas/UPLOAD/ocrsave";	# save copy of originalfile before ocr (path)

function LmEntExecute_ocr_xx($path,$ocr_destination=null,$ocr_format=null){

	global $umgvar;
	global $session;

	return false; #path to file

Return current item: Limbas