document-utils

Create, read, edit, and manipulate Word, PDF, PowerPoint, and Excel files.

1|Updated May 6, 2022
One-click install
npx skills add https://github.com/cloud-native-tools/cws-lib-bash --skill document-utils
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: document-utils
Source: https://github.com/cloud-native-tools/cws-lib-bash/tree/main/.specify/skills/document-utils
Command: npx skills add https://github.com/cloud-native-tools/cws-lib-bash --skill document-utils

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires docx, pypdf, pdfplumber, reportlab, pandas, openpyxl, pytesseract, pdf2image, and includes scripts (resource) and references (resource) and assets (resource) components.

What problem does it solve?

This skill eliminates the friction of working with proprietary office formats by providing a unified, programmatic interface to create, edit, and analyze Word, PDF, PowerPoint, and Excel files.

Core Features & Use Cases

  • Document Manipulation: Unpack, edit, and repack DOCX files, or generate new ones using JavaScript.
  • PDF Intelligence: Extract text, tables, and images, or perform complex operations like merging, splitting, and filling non-fillable forms.
  • Presentation Design: Create professional slide decks from scratch or edit existing templates with custom visual themes.

Quick Start

Use the document-utils skill to extract all text and tables from the provided report.pdf file.

Frequently Asked Questions about document-utils

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

FAQPage Schema
How do I extract text and tables from a PDF file programmatically?

To extract text and tables from PDF files programmatically, this skill uses libraries like pdfplumber and pypdf. It provides a unified interface to parse document content, enabling you to pull structured data from standard reports without manual copying.

Can I fill non-fillable PDF forms using Python?

Yes, you can fill non-fillable PDF forms using Python. This skill manipulates PDF structures to populate fixed documents, allowing you to automate form completion by overlaying data onto standard PDF layouts.

What is the best way to automate DOCX editing for multiple files?

Automating DOCX editing is best handled by unpacking, modifying, and repacking the underlying XML structure. This skill uses the docx library to programmatically generate and edit Word files, ensuring professional formatting and document integrity.

How do I create PowerPoint presentations from scratch with custom themes?

You can create professional PowerPoint presentations from scratch with custom visual themes. This skill handles programmatic slide deck generation and template editing, allowing you to design pptx files directly through code.

Does this tool require installing dependencies like pandas and openpyxl?

Yes, this tool requires installing standard office processing dependencies like pandas and openpyxl. It integrates these command-line utilities and libraries to ensure document integrity when manipulating Excel files and other office formats.

What are the limitations of extracting images from PDF documents?

When extracting images from PDF documents, limitations can arise from complex embedded formats or scanned content. This skill uses pytesseract and pdf2image to handle OCR and image extraction, though heavily compressed or non-standard layers may affect output quality.