# countpdfwords

`countpdfwords` is a lightweight command-line tool and Python package for counting words in PDF files.

Source code: https://github.com/Ezharjan/countpdfwords

## Features

- Count words in a single PDF file
- Count words in multiple PDF files in one run
- Outputs results as a simple table
- Provides package API for integration in other Python scripts

## Installation

```bash
pip install countpdfwords
```

> Note: `countpdfwords` installs `pdfplumber` automatically as a dependency.

## Usage

### CLI

```bash
countpdfwords file1.pdf file2.pdf
```

### Python API

```python
from countpdfwords import count_words

count = count_words("file1.pdf")
print(count)
```

## License

MIT License © 2026 Alexander Ezharjan
