Skip to content

Commit

Permalink
Add copy button in README.md (#965)
Browse files Browse the repository at this point in the history
Co-authored-by: Pieter Marsman <[email protected]>
  • Loading branch information
Sai-Roopesh and pietermarsman authored Jun 27, 2024
1 parent ae39350 commit 16cb34c
Showing 1 changed file with 11 additions and 10 deletions.
21 changes: 11 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,25 +41,26 @@ How to use

* Install Python 3.8 or newer.
* Install pdfminer.six.

`pip install pdfminer.six`
```bash
pip install pdfminer.six

* (Optionally) install extra dependencies for extracting images.

`pip install 'pdfminer.six[image]'`
```bash
pip install 'pdfminer.six[image]'
* Use the command-line interface to extract text from pdf.
`pdf2txt.py example.pdf`
```bash
pdf2txt.py example.pdf

* Or use it with Python.
```python
from pdfminer.high_level import extract_text
```python
from pdfminer.high_level import extract_text

text = extract_text("example.pdf")
print(text)
```
text = extract_text("example.pdf")
print(text)
```

Contributing
------------
Expand Down

0 comments on commit 16cb34c

Please sign in to comment.