i developed a website in php
i did it 90% but the problem is that if i have 4 PDF files in website and via search box i enter a text and then it finds that text for me in all 4 odf files or display a message that "No text found"

Recommended Answers

All 4 Replies

Member Avatar for LastMitch

@HunainHafeez

i did it 90% but the problem is that if i have 4 PDF files in website and via search box i enter a text and then it finds that text for me in all 4 odf files or display a message that "No text found"

I'm not sure what you are asking. You just want to extract a text from the pdf so you can find that text in the search box?

Read this:

http://www.phpclasses.org/package/6155-PHP-Extract-text-from-PDF-files.html

Down the code here:

http://www.phpclasses.org/browse/file/31030.html

This code will extract text from the pdf file.

i have 4 pdf files and want to extract files from that ,
just put the text in website's search box and extract matching text

Member Avatar for diafol

XPDF package on Linux is the only one I've heard of that works. It makes use of shell/system commands, so unsure if it works on shared hosting.

Hey i dont really get what you are asking either, sorry ^^
but im looking for a pdf extractor, as in something that will give me a text file from a pdf... the ones above are quite nice, also found one called http://pdftoword.pro/ but they all seem to jumble the text up

any clues?
thanks

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.