Fill PDF forms programmatically with text values and checkboxes. Use when you need to populate fillable PDF forms (government forms, applications, surveys, etc.) with data. Supports setting text fields and checkboxes with proper appearance states for visual rendering.
数据来源:ClawHub。 在 ClawSkills 查看
选择你使用的 Agent
方法一:命令行安装(推荐)
推荐(无需提前安装 clawhub)
npx clawhub@latest --dir ~/.claude/skills install pdf-form-filler或使用 clawhub CLI(需提前安装)
clawhub --dir ~/.claude/skills install pdf-form-filler⚠️ 需要 Node.js 18+,没有 Node?请使用下方方法二直接下载 ZIP。 安装 Node.js →
方法二:手动下载安装(无需 Node)
下载 ZIP,解压后将文件夹放到以下路径,重启 Agent 即可:
安装路径
~/.claude/skills/pdf-form-filler/💡解压后将文件夹放到上方路径,重启 Agent 即可生效
--- name: pdf-form-filler description: Fill PDF forms programmatically with text values and checkboxes. Use when you need to populate fillable PDF forms (government forms, applications, surveys, etc.) with data. Supports setting text fields and checkboxes with proper appearance states for visual rendering. version: 0.2.0 ---
Programmatically fill PDF forms with text values and checkboxes. Uses pdfrw to set form field values while preserving appearance streams for proper PDF viewer rendering.
Fill a PDF form with a dictionary of field names and values:
from pdf_form_filler import fill_pdf_form
fill_pdf_form(
input_pdf="form.pdf",
output_pdf="form_filled.pdf",
data={
"Name": "John Doe",
"Email": "[email protected]",
"Herr": True, # Checkbox
"Dienstreise": True,
}
)
/On and /Off states for PDF viewer rendering/V (value) and /AS (appearance state)Field names should match exactly as they appear in the PDF form. Common patterns:
Herr, Frau, Dienstreise, Geschäftsnummer LfFFull Name, Email, Agree, SubmitDate, DOB, Start DateTo discover field names in your PDF, use list_pdf_fields():
from pdf_form_filler import list_pdf_fields
fields = list_pdf_fields("form.pdf")
for field_name, field_type in fields:
print(f"{field_name}: {field_type}")
Field types:
text: Text input fieldcheckbox: Boolean checkboxradio: Radio buttondropdown: Dropdown selectsignature: Signature fieldfill_pdf_form(
input_pdf="job_application.pdf",
output_pdf="job_application_filled.pdf",
data={
"Full Name": "Jane Smith",
"Email": "[email protected]",
"Phone": "555-1234",
"Position": "Software Engineer",
"Years Experience": "5",
# Checkboxes
"Willing to relocate": True,
"Available immediately": False,
"Background check consent": True,
}
)
Only fill specific fields, leave others blank:
data = {"Name": "Jane Doe"} # Only Name is set
fill_pdf_form("form.pdf", "form_filled.pdf", data)
Get all fields and prompt for values:
from pdf_form_filler import list_pdf_fields
fields = list_pdf_fields("form.pdf")
data = {}
for field_name, field_type in fields:
if field_type == "text":
data[field_name] = input(f"Enter {field_name}: ")
elif field_type == "checkbox":
data[field_name] = input(f"Check {field_name}? (y/n): ").lower() == 'y'
fill_pdf_form("form.pdf", "form_filled.pdf", data)
Fill multiple PDFs with the same data:
import os
from pdf_form_filler import fill_pdf_form
data = {"Name": "John Doe", "Date": "2026-01-24"}
for filename in os.listdir("forms/"):
if filename.endswith(".pdf"):
fill_pdf_form(
f"forms/{filename}",
f"forms_filled/{filename}",
data
)
Some PDF viewers don't render checkboxes immediately. The value is set correctly (/On or /Off), but appearance isn't regenerated. Try opening in:
Use list_pdf_fields() to confirm exact field names. PDF forms can be tricky:
Field_1 instead of descriptive names)Some PDFs have narrow text fields. Either:
See scripts/fill_pdf_form.py for the full implementation using pdfrw.
安装 Pdf Form Filler 后,可以对 AI 说这些话来触发它
Help me get started with Pdf Form Filler
Explains what Pdf Form Filler does, walks through the setup, and runs a quick demo based on your current project
Use Pdf Form Filler to fill PDF forms programmatically with text values and checkboxes
Invokes Pdf Form Filler with the right parameters and returns the result directly in the conversation
What can I do with Pdf Form Filler in my design & creative workflow?
Lists the top use cases for Pdf Form Filler, with example commands for each scenario
将技能文件夹放到 ~/.claude/skills/pdf-form-filler/ 目录(个人级,所有项目可用),或 .claude/skills/pdf-form-filler/(项目级)。重启 AI 客户端后,用 /pdf-form-filler 主动调用,或让 AI 根据上下文自动发现并使用。
Pdf Form Filler 支持 Claude、Cursor、OpenClaw,可与这些 AI 平台无缝集成,扩展其能力。
Pdf Form Filler 可免费安装使用。请查阅仓库了解许可证信息。
Fill PDF forms programmatically with text values and checkboxes. Use when you need to populate fillable PDF forms (government forms, applications, surveys, etc.) with data. Supports setting text fields and checkboxes with proper appearance states for visual rendering.
Pdf Form Filler 属于「Design & Creative」分类,该分类的技能帮助 AI 智能体在此领域执行专业任务。
Automate my design & creative tasks using Pdf Form Filler
Identifies repetitive steps in your workflow and sets up Pdf Form Filler to handle them automatically