Pdf

From lightspeedwp/.github · View interactive version

Pdf is an AI agent skill from the GitHub repository lightspeedwp/.github. Read, create, inspect, render, and verify PDF files where visual layout matters. Use Poppler rendering plus Python tools such as reportlab, pdfplumber, and pypdf for generation and extraction.

How to use this skill

Skill file

PDF Skill

When To Use

Workflow

  1. Prefer visual review: render PDF pages to PNGs and inspect them.
  1. Use reportlab to generate PDFs when creating new documents.
  2. Use pdfplumber or pypdf for text extraction and quick checks; do not rely on text extraction for layout fidelity.
  3. After each meaningful update, re-render pages and verify alignment, spacing, and legibility.

Temp And Output Conventions

Dependencies

Prefer the Codex bundled workspace/runtime dependencies when available. The primary runtime is expected to include:

If a dependency is missing, install only what is needed.

Python packages:

uv pip install reportlab pdfplumber pypdf

If uv is unavailable:

python3 -m pip install reportlab pdfplumber pypdf

System tools for rendering:

# macOS (Homebrew)
brew install poppler

# Ubuntu/Debian
sudo apt-get install -y poppler-utils

If installation is not possible in this environment, tell the user which dependency is missing and how to install it locally.

Environment

No required environment variables.

Rendering Command

pdftoppm -png "$INPUT_PDF" "$OUTPUT_PREFIX"

Quality Expectations

Final Checks


Maintained by the 🤖 LightSpeedWP Automation Team

_Maintained with ❤️ by the 🚀 LightSpeedWP Automation Team_

Org Profile

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.