Shoot Sahan
Shoot Sahan

Reputation: 163

Searching a text in PDF file which is having more than 1000 pages

I am developing a web site. I want to search a pdf file for a search string and show the results on web site. PDF file is available and when user enter some text to search the results should be shown. I have tried with "pdf object" and that is not the thing I want to be done. My need is not to view the pdf on web site but search the pdf.

Upvotes: 0

Views: 420

Answers (1)

thb
thb

Reputation: 14464

Libpoppler can help. It parses PDF.

With Libpoppler comes the pdftotext command-line utility, which may suit your purpose (it comes among others in the Debian package poppler-utils). Better however may be pdfgrep, a tool to search for text in PDF files, which does not come with Libpoppler. All of these are available in Debian, perhaps among other places.

Upvotes: 1

Related Questions