![]() |
|
![]() |
#1 |
Green Mole
Join Date: Oct 2003
Posts: 8
|
![]()
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 |
![]() |
![]() |
![]() |
#2 |
Head Mole
Join Date: May 2003
Posts: 2,539
|
Hi. Do you have Ghostscript installed? What do you get when you try to run pstotext on a PDF from the command line?
__________________
Responses are offered on a voluntary if/as time is available basis, no guarantees. Double posting or bumping threads will not get your question answered any faster. No support via PM or email, responses not guaranteed. Thank you for your comprehension. |
![]() |
![]() |
![]() |
#3 |
Green Mole
Join Date: Oct 2003
Posts: 8
|
the pstotext run very well in shell
|
![]() |
![]() |
![]() |
#4 |
Head Mole
Join Date: May 2003
Posts: 2,539
|
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:
__________________
Responses are offered on a voluntary if/as time is available basis, no guarantees. Double posting or bumping threads will not get your question answered any faster. No support via PM or email, responses not guaranteed. Thank you for your comprehension. |
![]() |
![]() |
![]() |
#5 |
Green Mole
Join Date: Oct 2003
Posts: 8
|
define('PHPDIG_INDEX_PDF',true); -> for activate the module
define('PHPDIG_PARSE_PDF','/usr/local/bin/pstotext'); define('PHPDIG_OPTION_PDF','-cork'); |
![]() |
![]() |
![]() |
#6 |
Head Mole
Join Date: May 2003
Posts: 2,539
|
Hi. What version of PHP are you running? When you run pstotext does the text show in the command window?
__________________
Responses are offered on a voluntary if/as time is available basis, no guarantees. Double posting or bumping threads will not get your question answered any faster. No support via PM or email, responses not guaranteed. Thank you for your comprehension. |
![]() |
![]() |
![]() |
#7 |
Green Mole
Join Date: Oct 2003
Posts: 8
|
yes i show the text result my php version is 4.2.2
|
![]() |
![]() |
![]() |
#8 |
Head Mole
Join Date: May 2003
Posts: 2,539
|
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.
__________________
Responses are offered on a voluntary if/as time is available basis, no guarantees. Double posting or bumping threads will not get your question answered any faster. No support via PM or email, responses not guaranteed. Thank you for your comprehension. |
![]() |
![]() |
![]() |
#9 |
Green Mole
Join Date: Oct 2003
Posts: 8
|
ups!! dont work!!!
|
![]() |
![]() |
![]() |
#10 |
Head Mole
Join Date: May 2003
Posts: 2,539
|
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
__________________
Responses are offered on a voluntary if/as time is available basis, no guarantees. Double posting or bumping threads will not get your question answered any faster. No support via PM or email, responses not guaranteed. Thank you for your comprehension. |
![]() |
![]() |
![]() |
#11 |
Green Mole
Join Date: Oct 2003
Posts: 8
|
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 |
![]() |
![]() |
![]() |
#12 |
Head Mole
Join Date: May 2003
Posts: 2,539
|
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?
__________________
Responses are offered on a voluntary if/as time is available basis, no guarantees. Double posting or bumping threads will not get your question answered any faster. No support via PM or email, responses not guaranteed. Thank you for your comprehension. |
![]() |
![]() |
![]() |
#13 |
Green Mole
Join Date: Oct 2003
Posts: 8
|
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.
|
![]() |
![]() |
![]() |
#14 |
Head Mole
Join Date: May 2003
Posts: 2,539
|
Hi. Did you happen to echo stuff as in this thread? If so, what did you get?
__________________
Responses are offered on a voluntary if/as time is available basis, no guarantees. Double posting or bumping threads will not get your question answered any faster. No support via PM or email, responses not guaranteed. Thank you for your comprehension. |
![]() |
![]() |
![]() |
#15 |
Green Mole
Join Date: Feb 2004
Posts: 17
|
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).
|
![]() |
![]() |
![]() |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
problems with pstotext - path-problem? | jmeyerdo | External Binaries | 1 | 01-26-2006 11:30 AM |
How do you install pstotext | krugar | External Binaries | 2 | 12-08-2004 11:53 AM |
problem with pstotext | loicoco | External Binaries | 2 | 07-16-2004 02:17 AM |
pstotext issue | killer27 | External Binaries | 7 | 05-12-2004 01:28 PM |
pstotext problem. | DoWn | External Binaries | 5 | 04-13-2004 06:32 PM |