pdf

Generate, modify, and verify PDF files using Python libraries.

185|14|Updated Jan 6, 2026
One-click install
npx skills add https://github.com/xlang-ai/CUA-Gym --skill pdf-xlang-ai
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: pdf
Source: https://github.com/xlang-ai/CUA-Gym/tree/main/.claude/skills/pdf
Command: npx skills add https://github.com/xlang-ai/CUA-Gym --skill pdf-xlang-ai

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires PyMuPDF, pikepdf, reportlab, and includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill simplifies the creation, manipulation, and verification of PDF files by utilizing Python libraries like PyMuPDF, pikepdf, and reportlab, thereby streamlining document-related tasks and workflows.

Core Features & Use Cases

  • PDF Creation and Modification: Offers tools for creating new PDFs from scratch, adding and formatting text, images, and annotations.
  • Verification: Ensures that PDF files adhere to specific criteria such as page count, metadata, and encryption status.
  • Use Case: An AI researcher can use this Skill to create custom training materials in PDF format, annotate figures, and verify that the PDFs contain the required data and metadata for experiments.

Quick Start

Invoke the pdf skill with the command 'pdf generate-form invoice'.

Frequently Asked Questions about pdf

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

FAQPage Schema
How do I automate PDF generation and modification using Python?

Automating PDF generation and modification in Python requires libraries like PyMuPDF and reportlab. This Skill streamlines creating new PDFs, adding formatted text, inserting images, and applying annotations through Python scripting.

What is the best way to verify PDF metadata and page count programmatically?

Verifying PDF metadata and page count programmatically involves checking the document's internal structure against specific criteria. This Skill uses pikepdf and PyMuPDF to validate encryption status, metadata, and page count.

Can I use Python to create and format custom PDF training materials?

Creating and formatting custom PDF training materials in Python is fully supported. The Skill enables researchers to generate documents from scratch, annotate figures, and verify required experimental data and metadata.

Do I need PyMuPDF, pikepdf, and reportlab to handle PDF creation and verification?

Yes, you need PyMuPDF, pikepdf, and reportlab to handle PDF creation, editing, and metadata verification. These Python libraries provide the underlying functionality required to execute the Skill's document quality control and form generation tasks.

How does Python scripting streamline document quality control for PDF files?

Python scripting streamlines document quality control for PDF files by automating verification workflows. The Skill ensures generated PDFs adhere to specific criteria such as page count, metadata accuracy, and encryption status checks.

Are there limitations when manipulating PDF annotations and encryption status with Python?

Limitations when manipulating PDF annotations and encryption status depend on the capabilities of PyMuPDF and pikepdf. The Skill handles standard creation, modification, and verification but complex encryption layers may require specific library configurations.