Skip to main content

A simple tool to search for strings in PDF files within a directory.

Project description

PDFSearcher

PDFSearcher is a simple Python tool for searching a specific string within PDF files located in a specified directory and its subdirectories. It outputs the file paths where the string is found.

Features

  • Recursively searches for a given string in all PDF files within a folder and its subfolders.
  • Prints out the paths of the PDF files where the search string is found.
  • Easy to install and use.

Installation

You can install the package via pip after uploading it to PyPI:

pip install find-in-pdf

Or, you can install it locally by cloning the repository and using:

pip install .

Usage

To use pdfsearcher in your Python code, you can simply import it and call the search_pdfs_in_folder function.

from pdfsearcher import search_pdfs_in_folder

# Example usage
folder_path = "/path/to/folder"
search_string = "your search string"
search_pdfs_in_folder(folder_path, search_string)

You can also use it as a command-line tool:

pdfsearcher /path/to/folder "search string"

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

find_in_pdf-0.1.1.tar.gz (2.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

find_in_pdf-0.1.1-py3-none-any.whl (3.2 kB view details)

Uploaded Python 3

File details

Details for the file find_in_pdf-0.1.1.tar.gz.

File metadata

  • Download URL: find_in_pdf-0.1.1.tar.gz
  • Upload date:
  • Size: 2.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.4

File hashes

Hashes for find_in_pdf-0.1.1.tar.gz
Algorithm Hash digest
SHA256 1db3603066fbd82a0b00234bb08a11345f24605860eb4cf0d2e8aa1a61510da3
MD5 3b8029ffd9d1c88aa6fee5c3d65f3939
BLAKE2b-256 926841fb0d29b95e1838a59d10943980cb282b34583fda67d3a7830e9db33307

See more details on using hashes here.

File details

Details for the file find_in_pdf-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: find_in_pdf-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 3.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.4

File hashes

Hashes for find_in_pdf-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 24b1c68cc62b2f14123d8351185a33ba06a8b8b25f2044eb5368c7b2ef1d6acf
MD5 d8e50c0f2847ee2e58b8d53b64c0a5f9
BLAKE2b-256 82524dd4a0feb3656abc6f57fb3d95c2e4dae8f4c314be95b1e9e7f58c50d656

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page