Metadata-Version: 2.2
Name: find-in-pdf
Version: 0.2.2
Summary: A simple tool to search for strings or list PDF files within a directory.
Home-page: https://github.com/anitejngo/pdfsearcher
Author: Ognjen Lazic
Author-email: laogdo@gmail.com
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Requires-Python: >=3.6
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: pdfplumber>=0.11.4
Dynamic: author
Dynamic: author-email
Dynamic: classifier
Dynamic: description
Dynamic: description-content-type
Dynamic: home-page
Dynamic: requires-dist
Dynamic: requires-python
Dynamic: summary

# 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:

```bash
pip install find-in-pdf
```

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

```bash
pip install .
```

## Usage

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

```bash
from pdfsearcher import search_pdfs_in_folder, list_products

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

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

```bash  
pdfutil search /path/to/folder "search_string"
pdfutil list /path/to/folder
```

## Local dev usage
```bash
python search.py search /path/to/folder "your_search_string"
```
```bash
python search.py list /path/to/folder
```
