This repository contains optional Python utilities used to analyze PDF templates and generate field-coordinate mappings.
These scripts are not required to run the main web app. The production app runs with PHP only.
extract_pdf_fields.py- extracts text and positions from a PDF.analyze_pdf_layout.py- inspects overall layout and spacing.create_pdf_mapping.py- builds coordinate mapping outputs.auto_extract_pdf.py- automated extraction helper.fix_pdf.pyandfix_script.py- local utility/fix scripts used during setup.scripts/fill_pdf_template.py- template-filling helper script.
pdf_field_mapping.jsonpdf_coordinate_mapping.json
- Python 3.10+ recommended
- Install dependencies:
python -m pip install -r requirements-optional.txtRun scripts from the repository root:
python .\extract_pdf_fields.py
python .\analyze_pdf_layout.py
python .\create_pdf_mapping.pyKeep this repository as your analysis/calibration workspace for future PDF updates.