You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Can we develop UI for user to configure template without asking regex. #562
This library is excellent for extracting semi-structured information and converting it into structured key-value pairs. Adding a UI to allow end users to configure templates would enhance its functionality significantly. If such a feature is included, this library would be among the best for extracting data from PDFs. I've created a basic structure where users fill in text boxes to generate regex patterns based on their input. However, it's challenging to get precise input from users, especially when it's necessary to include text that comes before or after the actual value.
If someone guide me to design and develop functionality I am happy to contribute and work collaboratively.
CLI: invoice2data --new-template SAMPLE.pdf --interactive walks the author through a copier-style prompt — auto-detects labelled fields (BTW: ..., KvK: ..., Invoice #: ... in multiple languages), suggests regexes, and lets the user keep / edit / skip each. With --ai, uses an LLM to draft the whole YAML from the sample.
Odoo: an OCA module currently in review that stores templates in the Odoo DB and gives you a form UI with the same 'Suggest fields' button, plus per-field editing (parser / regex / static value / replace / extract_number) and a Test button that runs extract_data against an attached PDF. See OCA/edi#1365 (depends on the ongoing 16.0 migration OCA/edi#1220).
Closing as done — the standalone-webapp UI you may have envisioned isn't a lib concern, but the Odoo module fills that role for accountants.
Activity
bosd commentedon Jul 19, 2026
Resolved in 1.0.0 on two fronts:
invoice2data --new-template SAMPLE.pdf --interactivewalks the author through a copier-style prompt — auto-detects labelled fields (BTW: ...,KvK: ...,Invoice #: ...in multiple languages), suggests regexes, and lets the user keep / edit / skip each. With--ai, uses an LLM to draft the whole YAML from the sample.extract_dataagainst an attached PDF. See OCA/edi#1365 (depends on the ongoing 16.0 migration OCA/edi#1220).Closing as done — the standalone-webapp UI you may have envisioned isn't a lib concern, but the Odoo module fills that role for accountants.