PDA

View Full Version : ps2ascii


wessam
08-28-2004, 06:23 AM
hi we are using ps2ascii to index PDF file and it's work perfect on our Solaris machine, we try to install the same PhpDig on another Solaris machine but you can’t index PDF files for any reason, when we try to test the ps2ascii from shell it’s work and give us the output but when we try index PDF file through PhpDig nothing added.

This Config. Php file code:


define('USE_RENICE_COMMAND','1'); //use renice for process priority



//---------EXTERNAL TOOLS SETUP

// if set to true is_executable used - set to '0' if is_executable is undefined

define('USE_IS_EXECUTABLE_COMMAND','1'); //use is_executable for external binaries



// if set to true, full path to external binary required

define('PHPDIG_INDEX_MSWORD',true);

define('PHPDIG_PARSE_MSWORD','/usr/local/bin/catdoc');

define('PHPDIG_OPTION_MSWORD','-s cp1256 -d cp1256');



define('PHPDIG_INDEX_PDF',true);

define('PHPDIG_PARSE_PDF','/usr/local/bin/ps2ascii');

define('PHPDIG_OPTION_PDF','');



define('PHPDIG_INDEX_MSEXCEL',true);

define('PHPDIG_PARSE_MSEXCEL','/usr/local/bin/xls2csv');

define('PHPDIG_OPTION_MSEXCEL','-s cp1256 -d cp1256');




define('PHPDIG_INDEX_MSPOWERPOINT',true);

define('PHPDIG_PARSE_MSPOWERPOINT','/usr/local/bin/ppthtml');

define('PHPDIG_OPTION_MSPOWERPOINT','');




//---------EXTERNAL TOOLS EXTENSIONS

// if external binary is not STDOUT or different extension is needed

// for example, use '.txt' if external binary writes to filename.txt

define('PHPDIG_PDF_EXTENSION','');

define('PHPDIG_MSWORD_EXTENSION','');

define('PHPDIG_MSEXCEL_EXTENSION','');

define('PHPDIG_MSPOWERPOINT_EXTENSION','');

//---------FTP SETTINGS