# -------------------------
# Documentation
# -------------------------
"""
PDF Annot Extractor
===================
A Python package for extracting:
- OCR text from PDF pages
- PDF annotations (comments, highlights, etc.)
INSTALLATION
pip install .
USAGE
1) Python API
from pdf_annot_extractor import PDFTextAnnotationExtractor
# Basic usage (output defaults to current folder)
extractor = PDFTextAnnotationExtractor("file.pdf")
# Save OCR text (one file per page)
extractor.save_text()
# Export annotations to Excel
extractor.export_annotations_excel()
2) Custom Output Folder
extractor = PDFTextAnnotationExtractor("file.pdf", "output/")
extractor.save_text()
extractor.export_annotations_excel("output/result.xlsx")
3) Directory Processing
from pdf_annot_extractor import process_directory
results = process_directory("pdfs/")
4) CLI Usage
Extract annotations to Excel:
python extractor.py --input file.pdf --output result.xlsx
Extract text files:
python extractor.py --input file.pdf --mode text
Process directory:
python extractor.py --input pdfs/ --output all.xlsx
OPTIONS
--input : PDF file or directory
--output : Output file (optional for text mode)
--mode : text | excel
--lang : OCR language (default: ara)
NOTES
- Default output folder is current working directory if not specified
- Requires Tesseract OCR installed with Arabic language pack
- Requires Poppler for pdf2image
EXAMPLE
python extractor.py --input my.pdf --mode text
→ Creates:
page_001.txt
page_002.txt
...
python extractor.py --input my.pdf --output annotations.xlsx
→ Creates:
annotations.xlsx
Metadata
Release files for trt-secnd-attempt 0.0.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| trt_secnd_attempt-0.0.2.tar.gz | 3.2 kB | Without provenance | Details for trt_secnd_attempt-0.0.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| trt_secnd_attempt-0.0.2-py3-none-any.whl | Python 3 | none | any | Details for trt_secnd_attempt-0.0.2-py3-none-any.whl |
Total release size: 8.0 kB
Release files / trt_secnd_attempt-0.0.2.tar.gz
| Download URL | trt_secnd_attempt-0.0.2.tar.gz |
|---|---|
| Size | 3.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b53a6a73b9c141e6f2b12b50e3829c12d882fbc4fe8a114b280f1f16a6abfa3f
|
|
BLAKE2b-256 checksum How to use checksums |
a91de29e2e89e930c6c862095022539216b27a855be22df5556c9ad81dc0cd8a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.11.2 {"installer":{"name":"uv","version":"0.11.2","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":null,"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|
Release files / trt_secnd_attempt-0.0.2-py3-none-any.whl
| Download URL | trt_secnd_attempt-0.0.2-py3-none-any.whl |
|---|---|
| Size | 4.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
a8c3dd6b1c022822667a44ba5a6610eba9c81f2aa3e205d16a22e01267ea8e55
|
|
BLAKE2b-256 checksum How to use checksums |
69b82f5f6064c0c68c2fb71dee3bd59756d17a2d7db96d5cc3555fcb4b3ee17a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.11.2 {"installer":{"name":"uv","version":"0.11.2","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":null,"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|
Security for trt-secnd-attempt 0.0.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.