PhpDig.net

Go Back   PhpDig.net > PhpDig Forums > External Binaries

Reply
 
Thread Tools
Old 02-15-2005, 06:26 PM   #1
mynamesucks
Green Mole
 
Join Date: Feb 2005
Posts: 8
Question A question about pdftotext installation , thanks m(_ _)m

Hi,

I am not very sure about installing pdftotext on a linux server.
I have downloaded xpdf-3.00.tar.gz and unzip it.
Must I ask ISP to make/make install it on server?
Or I just need to upload the pdftotext.cc to server?
Thanks indeed.
m (_ _) m
mynamesucks is offline   Reply With Quote
Old 02-15-2005, 08:07 PM   #2
mynamesucks
Green Mole
 
Join Date: Feb 2005
Posts: 8
Well, now I have put pdftotext to server.
and
define('PHPDIG_INDEX_PDF',true);
define('PHPDIG_PARSE_PDF','/path/cgi-bin/pdftotext');
define('PHPDIG_OPTION_PDF','');

define('PHPDIG_PDF_EXTENSION','.txt');

Then I set the dig URL "http://www.domain.com/1.pdf
and depth=1, link=1, then dig.
But spider.php write nothing into database.

Can anyone help me?
Thanks
Waiting...
mynamesucks is offline   Reply With Quote
Old 02-15-2005, 10:31 PM   #3
mynamesucks
Green Mole
 
Join Date: Feb 2005
Posts: 8
Hello, everyone

Now I can convert pdf file to txt file by command line.
But I can not index pdf file by phpdig.

The config is:
define('PHPDIG_INDEX_PDF',true);
define('PHPDIG_PARSE_PDF','/path/cgi-bin/pdftotext');
define('PHPDIG_OPTION_PDF','');

define('PHPDIG_PDF_EXTENSION','.txt');

Can anyone tell me what should I do???
m (_ _) m Thanks
mynamesucks is offline   Reply With Quote
Old 02-16-2005, 12:42 AM   #4
mynamesucks
Green Mole
 
Join Date: Feb 2005
Posts: 8
I modify the code and then display following:

Is result test http an array: 1
What is result test http status: PDF

Is result test an array: 1
What is result test status: PDF
Use is executable is set to: 1
Index the pdf is set to: 1
Parse the pdf is set to: /var/www/cgi-bin/xpdf/pdftotext
Does parse pdf exist:
Is parse pdf executable:
1:http://www.mizuno-solution.com/1.pdf
(time : 00:00:05)
No link in temporary table

What's mean of this?
mynamesucks is offline   Reply With Quote
Old 02-17-2005, 05:20 AM   #5
Charter
Head Mole
 
Charter's Avatar
 
Join Date: May 2003
Posts: 2,539
It means that PHP thinks the file doesn't exist so isn't executable. Make sure you FTP the binary pdftotext file and set 755 permissions on the directories to pdftotext and on pdftotext itself.
__________________
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 02-22-2005, 10:00 PM   #6
mynamesucks
Green Mole
 
Join Date: Feb 2005
Posts: 8
I picked up the issue.
Thanks
m (_ _) m
mynamesucks is offline   Reply With Quote
Reply

Thread Tools

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
pdftotext issue JonnyNoog External Binaries 6 07-14-2006 11:40 PM
pdftotext no solution Art External Binaries 7 04-11-2005 04:39 AM
question about the installation west Script Installation 1 02-01-2005 10:52 AM
problem with pdftotext freak External Binaries 1 06-02-2004 06:20 AM
not indexing with pdftotext davideyre External Binaries 2 03-30-2004 12:55 PM


All times are GMT -8. The time now is 09:06 AM.


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