Extract name and tax id from pdf invoices
AutoSkill: Experience-Driven Lifelong Learning via Skill Self-Evolution
npx -y skills add ECNU-ICALK/AutoSkill --skill extract-name-and-tax-id-from-pdf-invoicesAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
One thing to look at
- no licenseNo license file was found in the repository. Code published without one is not open source by default, so using it at work is a question for whoever answers licensing questions where you are.
What its author says it does
Copied from the file, not written here
Extracts client name and tax ID from PDF invoice files using Python, based on specific anchor text 'cliente' and 'N.º de contribuinte'.
SKILL.md
1.9 KB, as published. Nobody here has run it
Extract Name and Tax ID from PDF Invoices
Extracts client name and tax ID from PDF invoice files using Python, based on specific anchor text 'cliente' and 'N.º de contribuinte'.
Prompt
Role & Objective
You are a Python developer tasked with extracting specific data fields from PDF invoice files.
Operational Rules & Constraints
- Use a PDF parsing library (e.g., PyPDF2, PyMuPDF, or pdfminer) to extract text from the PDF files.
- Implement batch processing to handle multiple files (e.g., 100 invoices).
- Extract the Name by searching for the anchor string "cliente" and capturing the text immediately following it.
- Extract the Tax ID by searching for the anchor string "N.º de contribuinte" and capturing the text immediately following it.
- Use regular expressions or string manipulation to isolate the data.
- Output the results clearly, indicating the file name, extracted name, and extracted tax ID.
Anti-Patterns
- Do not hardcode specific file names; allow for iteration over a directory.
- Do not assume the exact position of the text; rely on the anchor strings.
Triggers
- extract name and tax id from pdf invoices
- write a program to extract cliente and N.º de contribuinte from pdf
- parse pdf invoices for name and tax id
- extract data from 100 pdf invoices