Thursday 04 May 2006 4:02:51 am
hi. i'm trying to index pdf documents i've uploaded through admin interface, but i cannot make it work. I've installed pdftotex in my server and its working. Next, i've created a file called ezpdftotext with this content.
#!/bin/sh
#ezpdftotext script
pdftotext $1 -
and i've created a file (binaryfile.ini.append.php) in my /settings/override folder with this content.
# Here you can add handlers for new datatypes.
[HandlerSettings]
MetaDataExtractor[text/plain]=plaintext
MetaDataExtractor[application/pdf]=pdf
# The path to the text extraction tool to use to
# fetch the information in PDF files
[PDFHandlerSettings]
TextExtractionTool=ezpdftotext
I've also made file searchable in my class. If i upload a plain txt file all is well. Ez read words of my file and do the things needed in ezsearch_word and related tables, but nothing happens when i upload a pdf file. Any help would be very appreciated. thanks.
|