<p>I want to write a tool that helps me search pdf/chm/djvu files in linux. Any pointers on how to go about it? </p>

<p>The major problem is reading/importing data from all these files. Can this be done with C and shell scripting? </p>

[{'answer_id': 35769, 'author': 'Pat', 'author_id': 238, 'author_profile': 'https://Stackoverflow.com/users/238', 'pm_score': 0, 'selected': False, 'text': '<p>How about a plugin for <a href="http://www.beagle-project.org/" rel="nofollow noreferrer">Beagle</a> ?</p>\n\n<p>It already searches PDFs but you can add other file types.</p>\n\n<p>Here is the relevant wikipedia page : <a href="http://en.wikipedia.org/wiki/Beagle_(software)" rel="nofollow noreferrer">http://en.wikipedia.org/wiki/Beagle_(software)</a></p>\n'}, {'answer_id': 35800, 'author': 'cdleary', 'author_id': 3594, 'author_profile': 'https://Stackoverflow.com/users/3594', 'pm_score': 1, 'selected': False, 'text': '<p><a href="https://wiki.ubuntu.com/Tracker" rel="nofollow noreferrer">Tracker</a> ships with Ubuntu 8.04 -- it was a significant switch from Beagle which users believed was too resource (CPU) intensive and didn\'t yield good enough results. It indexes both pdf and chm and according to <a href="http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=460260" rel="nofollow noreferrer">this bug report</a> it also indexes djvu.</p>\n'}, {'answer_id': 35810, 'author': 'OysterD', 'author_id': 2638, 'author_profile': 'https://Stackoverflow.com/users/2638', 'pm_score': 1, 'selected': False, 'text': "<p>Note that djvu is an image compression format (optimized to compress 'pictures of text', typically the results of scanning). As such, you won't be able to search for text, except in the metadata -this is what the link sent by cdleary refers to-, <em>or</em> if you first use OCR on the document to convert it into text.</p>\n\n<p>The same is true for PDFs which content are scanned articles/books.</p>\n"}]
['https://Stackoverflow.com/questions/35722', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/2727/']