TextFinder is a lightweight command-line tool for searching text within PDF files. It takes two arguments: path/to/pdf/file
and "String to search"
. It works across multiple platforms, including Linux, macOS, and Windows.
- Search for specific text within PDF files.
- Cross-platform support (Linux, macOS, Windows).
To install TextFinder on Linux or macOS, run the following command in your terminal:
curl -fsSL https://raw.githubusercontent.com/holasoymas/text-finder/main/install.sh | sh
text-finder <path-to-pdf> <"string to search">
text-finder The-Brothers-Karamazov.pdf "What is hell?"
Scanning ..... page 286
---------------------------------------------
Match Found!
- Page Number: 286
- Input Sentence : "What is hell?"
- Full Sentence: "Fathers and teachers, I ponder, "What is hell?" I maintain that it is the suffering of beingunable to love"
---------------------------------------------
We heavily welcome contributions! Here's how you can help:
- Open a bug report in GitHub Issues.
- Propose new features in GitHub Discussions.
- Fork the repository and clone it locally.
- Create a branch:
- Submit a pull request with clear title.
- Fix typos, clarify instructions, or add examples to this
README
.