![]() |
Pstotext problem!!!!!
hello!!!
i have a several problem with the index the pdf files. i follow all instructions in external binaries thread but not find the apropiate solution, i install the phpdig follow the instructions but i dont find the error. any ideas for solution the problem?? mi machine is a redhat 9 thanks Mario |
Hi. Do you have Ghostscript installed? What do you get when you try to run pstotext on a PDF from the command line?
|
the pstotext run very well in shell
|
Hi. What version of PHP are you running? When you run pstotext does the text show in the command window? Also, how did you set the following?
PHP Code:
|
define('PHPDIG_INDEX_PDF',true); -> for activate the module
define('PHPDIG_PARSE_PDF','/usr/local/bin/pstotext'); define('PHPDIG_OPTION_PDF','-cork'); |
Hi. What version of PHP are you running? When you run pstotext does the text show in the command window?
|
yes i show the text result my php version is 4.2.2
|
Hi. PHP 4.2.2/3 seems to have problems dealing with external binaries. Upgrading your PHP should solve the problem. If you don't want to upgrade, then try the code posted in this thread.
|
ups!! dont work!!!
|
Hi. Are the directories to pstotext, and the pstotext file, all set to 755 permissions? What happens when you run the following from the command line?
Code:
/usr/local/bin/pstotext -cork filename.pdf |
yes all directories and archive that depent the pstotext have a 755 permissions, when me execute the command
pstotext -cork Reader.pdf -> this is a demo archive of acrobat reader. the content of the archive is show in the console!!! the pstotext run very well!!! thanks Mario |
Hi. What version of PhpDig are you using? Just to be sure, is /usr/local/bin/pstotext the correct path?
Also, try doing as in this thread. What onscreen output do you get? |
not my pstotext is located in /usr/bin/pstotext and on the configuration file i put this path. the output is the all contained of the archive.
|
Hi. Did you happen to echo stuff as in this thread? If so, what did you get?
|
I have had the same problem with pstotext. But when we upgraded our system from kernel 2.2.14-5.0 to 2.4.25 on a Linux system all problems with external binaries (also pdftotext) disappeared! By the way: I foud out that pdftotext is a bit faster, you do not need to install ghostscript and the recognized words are more. Just do a full install of xpdf (not only the pdftotext-file).
|
All times are GMT -8. The time now is 03:13 AM. |
Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright © 2001 - 2005, ThinkDing LLC. All Rights Reserved.