スキル pdf-official
📦

pdf-official

低リスク 📁 ファイルシステムへのアクセス

Process and Fill PDF Forms with Claude

Manually filling PDF forms is tedious and error-prone. This skill enables Claude to extract form fields, validate layouts, and populate PDFs programmatically with accurate data.

対応: Claude Codex Code(CC)
🥉 76 ブロンズ
1

スキルZIPをダウンロード

2

Claudeでアップロード

設定 → 機能 → スキル → スキルをアップロードへ移動

3

オンにして利用開始

テストする

「pdf-official」を使用しています。 Check fillable fields in employment_application.pdf

期待される結果:

Found 12 fillable fields: first_name (text), last_name (text), email (text), phone (text), address (text), city (text), state (choice), zip (text), position_applied (text), available_date (text), full_time (checkbox), part_time (checkbox). Fields span pages 1-2.

「pdf-official」を使用しています。 Fill the form with: first_name=John, last_name=Doe, email=john@example.com

期待される結果:

Successfully filled 12 fields in employment_application.pdf. Output saved to employment_application_filled.pdf. All field values validated against field types.

「pdf-official」を使用しています。 Create validation image for page 1 of fields.json

期待される結果:

Created validation image at page_1_validation.png with 24 bounding boxes. Red rectangles mark text entry areas, blue rectangles mark labels. No intersections detected.

セキュリティ監査

低リスク
v1 • 2/24/2026

Static analyzer flagged 220 patterns but all are false positives. The 'Ruby backtick' detections are markdown code blocks in documentation, not shell execution. 'Weak crypto' and 'C2 keywords' findings have no basis in actual code. The skill uses legitimate Python PDF libraries (pypdf, pdfplumber, PIL) for expected file operations. No network exfiltration, command injection, or malicious patterns found.

12
スキャンされたファイル
1,914
解析された行数
2
検出結果
1
総監査数
低リスクの問題 (1)
Filesystem Write Operations
Scripts write output PDF and JSON files to disk. This is expected behavior for a PDF manipulation tool but should be noted for sandboxing considerations.
監査者: claude

品質スコア

59
アーキテクチャ
100
保守性
87
コンテンツ
50
コミュニティ
88
セキュリティ
83
仕様準拠

作れるもの

Automated Form Filling for Administrative Work

Office workers can have Claude extract form fields from employment applications, tax forms, or registration documents, then populate them with user-provided information accurately and consistently.

PDF Data Extraction for Research

Researchers can extract tables and structured data from academic PDFs, converting them to CSV or Excel format for analysis without manual copy-pasting.

Document Preparation for Legal or Compliance

Legal teams can merge multiple PDF documents, add watermarks, apply consistent annotations, and fill standardized forms with case-specific information.

これらのプロンプトを試す

Basic: Check PDF Form Fields
Check if this PDF has fillable form fields: [upload PDF]. Run the check_fillable_fields script and tell me what fields are available.
Intermediate: Extract and Fill Form
Extract the form field information from [input.pdf] to a JSON file, then fill it with these values: [provide field values]. Create the filled PDF as [output.pdf].
Advanced: Non-Fillable Form Processing
This PDF has no fillable fields. Convert it to images, help me identify bounding boxes for text entry areas, create validation images to verify placement, then add annotations to fill in the form with [data].
Expert: Batch PDF Operations
I have 50 PDF forms that need the same fields filled with different values from this spreadsheet. Extract the field structure once, then process all PDFs with their corresponding data rows.

ベストプラクティス

  • Always run check_fillable_fields first to determine if the PDF has interactive form fields or requires annotation-based filling
  • Generate and visually inspect validation images before finalizing non-fillable form annotations to ensure accurate text placement
  • Keep original PDFs as backups before running fill operations, as the process creates new output files

回避

  • Do not skip validation image inspection - bounding box errors result in text appearing in wrong locations
  • Do not assume all PDFs have fillable fields - many scanned forms require manual bounding box identification
  • Do not use annotation-based filling for forms that have actual form fields - use the fillable field approach instead

よくある質問

What is the difference between fillable and non-fillable PDF forms?
Fillable PDFs have interactive form fields (text boxes, checkboxes) that can be programmatically populated. Non-fillable PDFs are static images or text that require visual analysis to determine where text should be placed as annotations.
Can this skill handle scanned PDFs or images?
Yes, but it requires OCR (pytesseract) to extract text from scanned documents. The accuracy depends on scan quality. For filling scanned forms, annotation-based placement is used.
What Python libraries does this skill use?
Primary libraries include pypdf for PDF manipulation, pdfplumber for text and table extraction, and PIL (Pillow) for image processing. Optional: pytesseract for OCR, pdf2image for PDF-to-image conversion.
How do I validate that filled form fields are positioned correctly?
For annotation-based filling, use the create_validation_image script which overlays colored rectangles on your PDF images. Red shows entry areas, blue shows labels. Visually confirm placement before generating the final PDF.
Can this skill merge multiple PDFs into one document?
Yes, the skill includes merge functionality using pypdf. You can combine multiple PDF files in a specified order into a single output document.
What happens if I provide an invalid field value for a form field?
The fill_fillable_fields script validates values against field types. For checkboxes, it verifies against checked/unchecked values. For radio groups and dropdowns, it validates against available options. Invalid values cause the script to exit with an error message.