How pwronfounder/orca-data-instruct works
Project type and purpose
• This is a Python-based command-line toolkit (“PDF Form Data Extractor”) whose sole purpose is to read PDF form documents, extract structured field data (section titles, field names, descriptions), and emit CSV or text outputs. It also includes a utility for slicing PDFs into page-ranges.
File structure
• Top-level scripts (pdf_parser.py, extract_fields_only.py, pdf_parser_pypdf2.py, extract_and_save_text.py, extract_text.py, create_partial_pdf.py) each implement a distinct extraction path or utility.
• The pdfs/ folder holds sample input PDFs.
• The output/ folder captures all generated CSVs, TXT files, debug logs and partial PDFs.
• requirements.txt declares external dependencies (pdfminer.six, pdfplumber, PyPDF2).
• A tests/ folder verifies core parsing logic in pdf_parser.py.
README for additional insights
• The README confirms three extraction engines (pdfminer, pdfplumber, PyPDF2), unified parsing steps (identify “Figure X…” section markers, extract Field Name / Field Description pairs), and multiple output formats.
• It also documents command-line arguments and expected CSV schema (Section, Field Name, Field Description).