PhpDig.net

Go Back   PhpDig.net > PhpDig Forums > External Binaries

Reply
 
Thread Tools
Old 03-12-2004, 09:18 AM   #1
mario
Green Mole
 
Join Date: Oct 2003
Posts: 8
Angry 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
mario is offline   Reply With Quote
Old 03-12-2004, 09:50 AM   #2
Charter
Head Mole
 
Charter's Avatar
 
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.
Charter is offline   Reply With Quote
Old 03-12-2004, 10:38 AM   #3
mario
Green Mole
 
Join Date: Oct 2003
Posts: 8
the pstotext run very well in shell
mario is offline   Reply With Quote
Old 03-12-2004, 10:52 AM   #4
Charter
Head Mole
 
Charter's Avatar
 
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:
define('PHPDIG_INDEX_PDF',false);
define('PHPDIG_PARSE_PDF','/usr/local/bin/pstotext');
define('PHPDIG_OPTION_PDF','-cork'); 
__________________
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.
Charter is offline   Reply With Quote
Old 03-12-2004, 11:05 AM   #5
mario
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');
mario is offline   Reply With Quote
Old 03-12-2004, 11:17 AM   #6
Charter
Head Mole
 
Charter's Avatar
 
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.
Charter is offline   Reply With Quote
Old 03-12-2004, 11:26 AM   #7
mario
Green Mole
 
Join Date: Oct 2003
Posts: 8
yes i show the text result my php version is 4.2.2
mario is offline   Reply With Quote
Old 03-12-2004, 11:32 AM   #8
Charter
Head Mole
 
Charter's Avatar
 
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.
Charter is offline   Reply With Quote
Old 03-12-2004, 12:59 PM   #9
mario
Green Mole
 
Join Date: Oct 2003
Posts: 8
ups!! dont work!!!
mario is offline   Reply With Quote
Old 03-12-2004, 03:01 PM   #10
Charter
Head Mole
 
Charter's Avatar
 
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.
Charter is offline   Reply With Quote
Old 03-15-2004, 05:37 AM   #11
mario
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
mario is offline   Reply With Quote
Old 03-15-2004, 12:17 PM   #12
Charter
Head Mole
 
Charter's Avatar
 
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.
Charter is offline   Reply With Quote
Old 03-15-2004, 01:38 PM   #13
mario
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.
mario is offline   Reply With Quote
Old 03-23-2004, 06:50 AM   #14
Charter
Head Mole
 
Charter's Avatar
 
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.
Charter is offline   Reply With Quote
Old 03-24-2004, 04:16 AM   #15
Hoek
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).
Hoek is offline   Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
problems with pstotext - path-problem? jmeyerdo External Binaries 1 01-26-2006 12:30 PM
How do you install pstotext krugar External Binaries 2 12-08-2004 12:53 PM
problem with pstotext loicoco External Binaries 2 07-16-2004 03:17 AM
pstotext issue killer27 External Binaries 7 05-12-2004 02:28 PM
pstotext problem. DoWn External Binaries 5 04-13-2004 07:32 PM


All times are GMT -8. The time now is 11:26 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright © 2001 - 2005, ThinkDing LLC. All Rights Reserved.