mcpField
P
pdf

pdf

github.com/igorwarzochaDocuments122135 installsUpdated 38w ago
Repository

About pdf

A skill for creating, inspecting, filling, and manipulating PDF documents. It covers form fields, page merging and splitting, encryption, text and table extraction, and visual checks of generated reports.

Key features

  1. 01Generate reports with Reportlab or Platypus
  2. 02Render pages to PNG for inspection
  3. 03Fill PDF form fields
  4. 04Merge, split, and encrypt PDFs
  5. 05Extract text and tables

Use cases

  1. 01Produce and visually verify reports
  2. 02Populate fillable PDF forms
  3. 03Extract document text and tabular data

Install

Copy the command and run it in a terminal.

$npx skills add https://github.com/igorwarzocha/opencode-workflows --skill pdf

After installing, type/pdfin Claude Code to confirm it loaded.

Bundled files

References and scripts installed along with SKILL.md.

references/
forms.md
reference.md
scripts/
check_bounding_boxes_test.py
check_bounding_boxes.py
check_fillable_fields.py
convert_pdf_to_images.py
create_validation_image.py
extract_form_field_info.py
fill_fillable_fields.py
fill_pdf_form_with_annotations.py

Details

From the project README
# PDF Professional Suite

🛠 High-Fidelity Creation

When generating polished reports:

  1. Generate: Use Reportlab (programmatic) or Platypus (templated) as the primary engine.
  2. Preview: Convert every page to PNG for inspection:
    • pdftoppm -png -r 150 document.pdf page
  3. Inspect: Verify that charts, tables, and typography are sharp and well-aligned.

📋 Common Operations

1. Form Filling
  • Identify fillable fields using scripts/extract_form_field_info.py.
  • Reference: See references/forms.md for detailed instructions on filling PDF forms.
  • Populate fields programmatically and verify using the Render loop.
2. Manipulation (pypdf)
  • Merge: Use PdfWriter to combine multiple documents.
  • Split: Extract individual pages into new files.
  • Secure: Add passwords or watermarks using PdfWriter.encrypt().
  • Reference: See references/reference.md for advanced features and JS library alternatives.
3. Extraction (pdfplumber)
  • Extract text with layout preservation.
  • Extract complex tables directly into Pandas DataFrames for analysis.

💎 Quality Expectations

  • Legibility: Text must be readable at 100% zoom; avoid walls of dense text.
  • Polish: Maintain intentional visual design—consistent margins and color palettes.
  • Verification: Zero defects (black squares, clipped text) permitted in final output.

Comments

Markdown supported