Metadata-Version: 2.4
Name: winzy-pdf-to-text
Version: 0.1.1
Summary: Extract text from a given pdf
Author: Sukhbinder Singh
License: Apache-2.0
Project-URL: Homepage, https://github.com/sukhbinder/winzy-pdf-to-text
Project-URL: Changelog, https://github.com/sukhbinder/winzy-pdf-to-text/releases
Project-URL: Issues, https://github.com/sukhbinder/winzy-pdf-to-text/issues
Project-URL: CI, https://github.com/sukhbinder/winzy-pdf-to-text/actions
Classifier: License :: OSI Approved :: Apache Software License
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: winzy
Requires-Dist: pypdf
Requires-Dist: requests
Provides-Extra: test
Requires-Dist: pytest; extra == "test"
Dynamic: license-file

# winzy-pdf-to-text

[![PyPI](https://img.shields.io/pypi/v/winzy-pdf-to-text.svg)](https://pypi.org/project/winzy-pdf-to-text/)
[![Changelog](https://img.shields.io/github/v/release/sukhbinder/winzy-pdf-to-text?include_prereleases&label=changelog)](https://github.com/sukhbinder/winzy-pdf-to-text/releases)
[![Tests](https://github.com/sukhbinder/winzy-pdf-to-text/workflows/Test/badge.svg)](https://github.com/sukhbinder/winzy-pdf-to-text/actions?query=workflow%3ATest)
[![License](https://img.shields.io/badge/license-Apache%202.0-blue.svg)](https://github.com/sukhbinder/winzy-pdf-to-text/blob/main/LICENSE)

Extract text from a given pdf

## Installation

First configure your Winzy project [to use Winzy](https://github.com/sukhbinder/winzy).

Then install this plugin in the same environment as your Winzy application.
```bash
pip install winzy-pdf-to-text
```
## Usage

```bash
winzy pdf2text example.pdf -p 1
```

This will extract all text from page 1 to the standard output.

One can also provide range

```bash
winzy pdf2text example.pdf -p 3-6
```
This will extract text from page 3 to 5 .


## Development

To set up this plugin locally, first checkout the code. Then create a new virtual environment:
```bash
cd winzy-pdf-to-text
python -m venv venv
source venv/bin/activate
```
Now install the dependencies and test dependencies:
```bash
pip install -e '.[test]'
```
To run the tests:
```bash
python -m pytest
```
