evo-pdf-invoice-parser
Extracts invoice data from PDF files. One invoice per page.
Key Functions
extract_all_invoices(pdf_path)- Returns list of dicts with page_number and parsed fieldsextract_invoice_fields_from_text(text)- Parse all fields from page textextract_vendor_name(text)- Extract vendor name after "From:"extract_iban(text)- Extract IBAN after "Payment IBAN:"extract_invoice_amount(text)- Extract total amountextract_po_number(text)- Extract PO number
Usage
pythonimport sys sys.path.insert(0, '/app/environment/skills/evo-pdf-invoice-parser/scripts') from utils import extract_all_invoices invoices = extract_all_invoices('/root/invoices.pdf') for inv in invoices: print(inv['invoice_page_number'], inv['vendor_name'], inv['invoice_amount'])


