Extracts text from PDFs between keywords and adds rectangle overlays using PyMuPDF.
Project description
efficax
Simple tool for text extraction from pdf files and conversion to table format. This package features extraction from a defined rectangle, start and end keywords for the extraction process as well as automatic chapter identification by numbers. The result is copied to the clipboard and a .csv file is saved to an output folder. Additionally a pdf with an overlay corresponding to the extraction rectangle will be saved.
Installation
pip install efficax
Usage
from efficax import extract_text_with_overlay
extract_text_with_overlay(
pdf_path="path/to/your/file.pdf,
output_folder="folder/for/output",
start_keyword="TITLE",
end_keyword="The End",
upper_border=0.2,
lower_border=0.1,
left_border=0.05,
right_border=0.15
)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file efficax-0.1.1.tar.gz.
File metadata
- Download URL: efficax-0.1.1.tar.gz
- Upload date:
- Size: 3.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8144f961b63c186485a2abdaa707a506772203ad448e60a2c44bc6ba12a282d8
|
|
| MD5 |
9c2c56b695a5ca58897b8ccaa13d7e51
|
|
| BLAKE2b-256 |
b20b98d9a954084a154e66fb85557c5fa4b0728bd19f0cfebcbbc784d8f13fa1
|
File details
Details for the file efficax-0.1.1-py3-none-any.whl.
File metadata
- Download URL: efficax-0.1.1-py3-none-any.whl
- Upload date:
- Size: 2.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
bc94a2c2f768433e126697f2bb4b953235f006772613674d0dd213ed974ff402
|
|
| MD5 |
f3f1de84e3133cd636992507abe01735
|
|
| BLAKE2b-256 |
d5bfc20e041e1e2556f2b55ced8b2238a19a5b7e57465df922c16a122d87a557
|