1 Replies - 236 Views - Last Post: 21 January 2013 - 02:25 AM Rate Topic: -----

#1 notice88  Icon User is offline

  • D.I.C Head

Reputation: 1
  • View blog
  • Posts: 87
  • Joined: 21-December 11

Is there anything I cn use to search pdf documents in my apache servr?

Posted 21 January 2013 - 02:09 AM

I need something which can be use in php to search inside my public apache folder so that i can display the searched document which the text query is writting inside the document. What I did temporarily is by tagging.. some info about the documents is saved in the database with its ID and thats where Im searching the documents.
Is This A Good Question/Topic? 0
  • +

Replies To: Is there anything I cn use to search pdf documents in my apache servr?

#2 Atli  Icon User is offline

  • D.I.C Lover
  • member icon

Reputation: 3712
  • View blog
  • Posts: 5,964
  • Joined: 08-June 10

Re: Is there anything I cn use to search pdf documents in my apache servr?

Posted 21 January 2013 - 02:25 AM

There is no doubt plenty of code out there that will let you open the PDF as text in PHP, you just need to look for it. A quick Google search lead me to this article. I'd say that's worth a try.

Then there are also non-PHP tools you can use, like the Linux pdftotext command. That could be used on Linux based servers to extract the text from the PDF.

You could then store that in a database and use it's search capabilities on it, rather than invent your own inside of PHP. For instance, if you store the text in a MySQL MyISAM table, you could easily set up a Full-Text search index on it.
Was This Post Helpful? 2
  • +
  • -

Page 1 of 1