document-extraction

Extract text and table data from .docx, .xlsx, and PDF files using only Python standard library.

Updated Jul 7, 2026
One-click install
npx skills add https://github.com/TitoPrausee/nexus-toti --skill document-extraction-titoprausee
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: document-extraction
Source: https://github.com/TitoPrausee/nexus-toti/tree/main/data/skills/productivity/document-extraction
Command: npx skills add https://github.com/TitoPrausee/nexus-toti --skill document-extraction-titoprausee

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill extracts readable text and table data from .docx, .xlsx, and .pdf files when common document libraries are unavailable, making it ideal for locked-down, offline, or minimal Python environments.

Core Features & Use Cases

  • Office Document Parsing: Reads Word and Excel files directly from their XML structure using only Python standard library tools.
  • Constrained Environment Support: Works in Docker containers, stripped-down installs, and other setups where pip-based libraries cannot be added.
  • Practical Document Workflows: Useful for pulling content from reports, invoices, spreadsheets, and archived files without changing the original documents.

Quick Start

Ask the skill to extract the text and tables from the attached document using the no-external-libraries approach.

Frequently Asked Questions about document-extraction

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I extract text from PDF and Office documents in a Docker container without pip?

You can extract text from PDF and Office documents in Docker without pip by parsing the internal XML structure of .docx and .xlsx files using only Python standard library ZIP and XML modules. For PDFs, it falls back to external tools or alternate workflows when libraries are unavailable.

Can I read .docx and .xlsx files using only the Python standard library?

Yes, you can read .docx and .xlsx files using only the Python standard library. The Skill directly parses the underlying XML format of Office documents by unzipping the file structure with built-in ZIP and XML parsing tools, requiring no third-party libraries.

How does extracting text from Office documents without external libraries work?

Extracting text from Office documents without external libraries works by treating .docx and .xlsx files as ZIP archives. The Skill unpacks the archive and parses the raw XML inside to pull readable text and table data, completely bypassing the need for specialized parsing packages.

What is the best way to extract table data from Excel files in an offline system?

The best way to extract table data from Excel files in an offline system is using Python's built-in XML and ZIP parsers to directly read the .xlsx file structure. This approach requires no internet access or package installation, retrieving table data from the document's internal XML.

Does this document extraction approach handle PDFs the same way as Office formats?

No, this document extraction approach does not parse PDFs the same way as Office formats. While .docx and .xlsx files are parsed using standard library XML and ZIP tools, PDF text extraction relies on falling back to external tools or alternate workflows when direct parsing fails.

What are the limitations of extracting PDF text without specialized libraries?

The limitation of extracting PDF text without specialized libraries is that standard library tools cannot directly parse PDF structures. The Skill must fall back to available external tools or alternate workflows when direct PDF text extraction is not possible in the constrained environment.