Login

Username

Password





Register   Reset password

This is a read-only archive of the forum.

# martijnb 5/20/2005 9:32 AM
Hi all

Currently I'm working on a documents/downloads module. So far it's nothing very special, but it could have one killer feature: indexing the contents of documents that are uploaded.
Cuyahoga uses DotLucene to index the contents and Dotlucene only indexes plain text content.

Now my question: does anybody know of a working text-extracting library for .NET? It should be able to at least extract the text from PDF files but other types (Office documents) would be great also.

I looked at some samples that utilize the IFilter interface but they have two drawbacks:
- Very complex and not guaranteed to be stable;
- Uses COM interop so it will only work on Windows.

Thanks,

Martijn
# Alberto 6/16/2005 10:01 AM
http://www.codeproject.com/Purgatory/DotNetPDF.asp

that what you need dude :D

Im expert search software code :p
# martijnb 6/16/2005 12:05 PM
This one has one major drawback: it uses a win32 C dll underneath, so I highly doubt it will work on Mono.
# mgaerber 7/22/2005 12:44 AM

I have posted on the iTextSharp forums for this question but as far as I know the best free library for dealing with ps and pdf files is ghostscript.

There is an addition to it

(pstotext, http://www.research.compaq.com/SRC/virtualpaper/manpages/pstotext.1.html)

but it is a C library, nothing in pure .NET ;-(
# madtom1999 10/10/2005 7:28 AM
I'm fairly fresh to cuyahoga but I can write an html (xml?) document searcher (or rather simply parse the html into a text string that can then be searched) using the ms plugin for explorer and I think the same thing may work with the mozilla plugin on linux systems but havent tried that yet. How would that fit into cuyuhoga? Ok I'll read the modules documentation.....

This suggests a search module that uses different search engines for different document types...
# martijnb 10/10/2005 9:08 AM
I'm not sure I understand completely what you mean with this.

The problem we're facing is extracting text from binary formats. Extracting text from non-binary formats as html or xml is pretty easy.
# madtom1999 10/11/2005 12:54 AM
I was just thinking that if you import a lot of html that is NOT well formed ( ie from MS sources) then its quite hard to parse the text out of it. Using the IE plugin its relatively easy to extract the visible text - for indexing.