Last updated:
0 purchases
pyany2textparser 1.0.2
py-any2text-parser
install
pip install py-any2text-parser
usage
developer only below:
initialize
python3 -m venv ./venv
source venv/bin/activate
pip install -r requirements.txt
test
python3 test_pdf2text.py
usage
from pdf2text.pdf2text import extract_pdf_file_to_text
file_path = "/Users/user/Downloads/AUDIT_MATERIALS/budget_materials/personal/2021/2021 03 remarks 2.pdf"
with open(file_path, "rb") as file:
text_data, text = extract_pdf_file_to_text(
filename="abc.pdf",
file=file,
meta_data_mapping = {
"document_category": "DEF",
}
)
print(text_data, text)
develop - upload to pypi
pip install twine build
pip install setuppy_generator
pip install setuptools
pip install wheel
python -m setuppy_generator > setup.py
python3 setup.py sdist bdist_wheel
python3 -m build
twine upload dist/*
For personal and professional use. You cannot resell or redistribute these repositories in their original state.
There are no reviews.