[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: cmdline tool to search through pdf files?



Hello Bruno!

Bruno Buys wrote:
> I'd like to be able to search keywords in pdf files using cmd line
> tools. My intention is to write shell scripts to automate heavy duty
> keyword searching. Anyone has experience with that?

As Tod wrote *most* PDFs are mainly text, i.e. not all. But for those
which are,

  pdftotext doc.pdf - | grep -i keyword

is a simple method to search for keywords in a PDF-file. pdftotext is
part of the xpdf-utils package.

Regards,
Tobias

Attachment: pgpYu97Tkei9M.pgp
Description: PGP signature


Reply to: