View Single Post
Old 04-09-2004, 06:04 AM   #1
DoWn
Green Mole
 
Join Date: Apr 2004
Location: Bordeaux, France
Posts: 3
Unhappy pstotext problem.

Hi. Again a problem trying to index pdf files.

First : the environment

Debian linux running Apache 1.3.26 . PHP 4.1.2.

PHP dig 1.8.0

Succesfully installed pstotext.

In console mode, pstotext runs very well :

The command 'pstotext file.pdf ' display the text contained in the pdf on the screen.


I also tried to redirect output of pstotext in a text file successfully.

phpdig config :

define('PHPDIG_INDEX_PDF',true);
define('PHPDIG_PARSE_PDF','/usr/bin/pstotext');
define('PHPDIG_OPTION_PDF','-cork');

verified (twice) that pstotext is in /usr/bin/ directory

The trouble is the following :

phpdig seems to read correctly pdf files but doensn't index them at all.

help me please.
__________________
Even though he's free, can't fly with these heavy chains
DoWn is offline   Reply With Quote