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 pdfsearcher

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 (if you've set up the entry points in setup.py):

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.0.tar.gz (2.5 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.0-py3-none-any.whl (3.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: find_in_pdf-0.1.0.tar.gz
  • Upload date:
  • Size: 2.5 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.0.tar.gz
Algorithm Hash digest
SHA256 298a732088714cd6608284840ea66423bd2d0f8fc96014adc0819bd779e0ebce
MD5 853c602aa0b4686e69416416ba756e31
BLAKE2b-256 e6a26c2ec8813f0c20dc0464b9adaa5bfde129bb91554918225d803add47ea22

See more details on using hashes here.

File details

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

File metadata

  • Download URL: find_in_pdf-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 3.1 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.0-py3-none-any.whl
Algorithm Hash digest
SHA256 b79d4755f1410d16219588b8e6745c64d1efcd3d44f56b45f09813afe8f402e2
MD5 380e31e527c1acdfa65a38394a871b84
BLAKE2b-256 e86a40ba7e7a23954223cecdfbb41384dd99d468ab52a6d84fb66d3591ea2ff8

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