Skip to content

Latest commit

 

History

2 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pdfgrep

a lightweight Unix-style CLI for searching text inside PDF files.

C++20 CMake Poppler Linux

pdfgrep is a small command-line utility that extracts text from PDF files using Poppler and searches it for a given pattern.

Features

PDF Text Search — Search for a pattern inside a PDF. Case-Insensitive Search — Ignore letter casing when matching.

Requirements

Linux, a C++20 compiler, CMake 3.20+, Ninja, pkg-config, and Poppler.

Debian / Ubuntu / Kali

sudo apt update
sudo apt install build-essential cmake ninja-build pkg-config libpoppler-cpp-dev

Installation

git clone https://github.com/netcrawlerr/pdfgrep.git
cd pdfgrep

cmake --preset release
cmake --build --preset release
sudo cmake --install out/build-release

Verify:

pdfgrep --version

Usage

pdfgrep "C++" "/path/to/Introducing C++.pdf"

case insensitive search:
pdfgrep -i "dante" "The Divine Comedy.pdf"

Status

pdfgrep is currently an early-stage project focused on the basic PDF text-search workflow. More functionality will be added over time.

Disclaimer

pdfgrep only works with text that can be extracted from a PDF. Scanned or image-only documents may not produce searchable text.

PDF text extraction is handled by Poppler, so results may vary depending on the structure and encoding of the source PDF.

All processing is performed locally. pdfgrep does not upload PDF contents.

License

See LICENSE.

About

a command-line utility for searching text across PDF files.

Topics

Resources

Stars

3 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages