Processing Documents

Extract text, tables, and metadata from PDF and DOCX files.

4|1|Updated Dec 30, 2025
One-click install
npx skills add https://github.com/doanchienthangdev/omgkit --skill processing-documents
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: Processing Documents
Source: https://github.com/doanchienthangdev/omgkit/tree/main/plugin/skills/tools/document-processing
Command: npx skills add https://github.com/doanchienthangdev/omgkit --skill processing-documents

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires pdf-lib, exceljs, docx, pptxgenjs, p-queue, docxtemplater, pizzip, and includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill streamlines the process of working with common office document formats like PDF, DOCX, XLSX, and PPTX, automating extraction, generation, and batch operations to save time and reduce manual effort.

Core Features & Use Cases

  • Document Extraction: Extract text, tables, and metadata from PDFs and DOCX files.
  • Document Generation: Create new PDF, DOCX, and PPTX files from templates or data.
  • Batch Processing: Efficiently process multiple documents in parallel.
  • Use Case: Automatically extract data from a batch of monthly sales reports (XLSX) and generate a summary PDF report for management.

Quick Start

Use the document processing skill to extract all text from the attached file 'report.pdf'.

Frequently Asked Questions about Processing Documents

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

FAQPage Schema
How do I extract text and tables from PDF and DOCX files?

Extracting text and tables from PDF and DOCX files is handled by parsing document structures using libraries like pdf-lib. It retrieves text, tables, and metadata from these office formats deterministically.

Can I generate DOCX, XLSX, and PPTX files from templates?

Yes, you can generate DOCX, XLSX, and PPTX files from templates. It utilizes docxtemplater, exceljs, and pptxgenjs to inject data into templates, creating new office documents automatically based on your provided data.

What is the best way to batch process multiple office documents in parallel?

Batch processing multiple office documents in parallel is efficiently handled using the p-queue library. It manages concurrent operations, allowing you to extract or generate multiple PDF, DOCX, XLSX, and PPTX files simultaneously.

Does this approach support streaming for large PDF and Excel files?

Yes, this approach supports streaming for large PDF and Excel files. It leverages libraries like exceljs and pdf-lib to process large documents without loading everything into memory, ensuring stable performance.

How do I extract data from XLSX reports and generate a summary PDF?

To extract data from XLSX reports and generate a summary PDF, you can use exceljs to read the spreadsheet data and pdf-lib to create the output. This skill automates the workflow from data extraction to document generation.

Are there limitations when manipulating PPTX files with pptxgenjs?

Manipulating PPTX files with pptxgenjs is focused on deterministic generation rather than editing existing presentations. It is best suited for creating new PowerPoint files from data rather than extracting content from existing ones.