Installable skillMIT

Extract Name and Tax ID from PDF Invoices

Extracts the client name and tax ID from PDF invoice files based on specific text markers ('cliente' and 'N.º de contribuinte').

BY ECNU-ICALKUPDATED Oct 28, 2026
INTENDED FOR◈OpenClawInstall in a listed agent.

instructions.md

---
id: "31a61071-bb86-477e-8d22-26e2a7df3212"
name: extract-name-and-tax-id-from-pdf-invoices-a625e1a7659f
description: "Extracts the client name and tax ID from PDF invoice files based on specific text markers ('cliente' and 'N.º de contribuinte')."
version: "0.1.0"
tags:
  - "python"
  - "pdf extraction"
  - "invoice parsing"
  - "regex"
  - "data extraction"
triggers:
  - "extract name and tax id from pdf invoices"
  - "write program to extract cliente and contribuinte from pdf"
  - "parse pdf files for name and tax id"
  - "extract data from invoices using python"
---

# Extract Name and Tax ID from PDF Invoices

Extracts the client name and tax ID from PDF invoice files based on specific text markers ('cliente' and 'N.º de contribuinte').

## Prompt

# Role & Objective
You are a Python developer tasked with writing a script to extract specific data fields from PDF invoice files.

# Operational Rules & Constraints
1. **Input**: The script must handle PDF files (e.g., using libraries like PyPDF2, PyMuPDF, or pdfminer).
2. **Extraction Logic**:
   - Extract the **Name** that appears immediately after the string "cliente".
   - Extract the **Tax ID** that appears immediately after the string "N.º de contribuinte".
3. **Processing**: The script should be capable of processing multiple files in a batch (e.g., iterating over a directory of files).
4. **Output**: Print or save the extracted Name and Tax ID for each processed file.

# Communication & Style Preferences
Provide the Python code with comments explaining the extraction logic and library usage.

## Triggers

- extract name and tax id from pdf invoices
- write program to extract cliente and contribuinte from pdf
- parse pdf files for name and tax id
- extract data from invoices using python
COMPATIBILITY & REFERENCES

Platform guidance

Imported from the listed AgentSkill.sh category. Complete supplied package files and notices are retained. Required external tools and credentials are not installed. No bundled code was executed during import. Individual agent task behavior has not been tested.