PDF Form Proof

io.github.EssenceAlignment由 GitHub 账号 EssenceAlignment 发布v0.1.1更新于 Nov 6, 2026

Fill fillable PDF forms, then prove every value is visible on the rendered page.

发布方自己的服务:Proof Holdings

已验证STDIO仅桌面效率与工作流文件与存储

概览

AI 生成的概览

按精确字段名填写 AcroForm PDF 表单,并通过 OCR 验证每个值确实显示在渲染页面上。

可以做什么
  • 列出所有可填写字段的精确名称、类型、当前值、必填标记以及复选框的勾选状态值
  • 按精确字段名把值填入新的 PDF,遇到未知字段名则整体拒绝填写
  • 验证填写结果:渲染页面并做 OCR,为每个值给出 VISIBLE、INVISIBLE、RENDER-ONLY 或 MISSING 判定
  • 计算文件的 SHA-256 摘要,用于记录确切产出
适用场景
适合需要反复填写同一批官方或机构 PDF 表单,并希望确认数值不仅存于文件、而且真的显示在人看到或打印的页面上的场景。适用于运营人员、小型非营利组织,以及希望让助手填表又不掩盖部分填写或不可见填写的开发者。
运行要求
以本地 Python 包(pdf-form-proof)通过 uvx 运行,需要 Python 3.10 或更高版本以及 uv。验证工具还需要安装免费的 poppler 与 tesseract 程序(例如通过 brew 或 apt)。无需账号、API 密钥或网络访问。
安装前请注意
pdf_form_fill 会写出一个新的 PDF 文件;它不会修改源文件,也不会覆盖已有输出,遇到未知字段名会整体拒绝填写。验证只证明可读性,不证明数值是否正确,OCR 可能误读小字号或艺术字体。不创建签名,仅 XFA 的表单会被拒绝,且不提供法律、税务或福利建议。

安装

在 SourceWeft 中

  1. 打开 控制台中的 PDF Form Proof,将其添加到工作区。
  2. 为需要使用其工具的对话启用该服务。

Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。

其他 MCP 客户端

参照 仓库 中的启动说明。

README

pdf-form-proof

Fill a fillable PDF form, then prove every value actually shows on the page.

mcp-name: io.github.EssenceAlignment/pdf-form-proof

A PDF can hold a value in its data while the page a person sees, prints, or uploads shows nothing, or shows it cut off. Most form tools stop at "the field was set." This one keeps going: it renders the page, reads it back with OCR (optical character recognition, software that reads text from an image), and compares that with the text stored in the file. Each value comes back VISIBLE, INVISIBLE, RENDER-ONLY, or MISSING.

It works as an MCP server (MCP, the Model Context Protocol, is the plug-in standard that lets AI apps such as Claude call outside tools), as a Claude plugin, as a Gemini CLI extension, and as plain command-line tools.

What it does

ToolWhat it doesChanges files?
pdf_form_inspectLists every fillable field: exact name, type, current value, required flag, and the values that check each checkbox or radio buttonNo
pdf_form_fillFills fields by exact name and writes a new PDF. Refuses the whole fill if any name is not in the form. Never modifies the source, never overwrites an existing file. Returns the new file's SHA-256 and reads every text value backWrites one new file
pdf_form_verifyRenders a page, OCRs it, and gives each value a verdict. Can be limited to one region of the page so a copy of the value elsewhere cannot make it passNo
pdf_sha256SHA-256 fingerprint of a file, for a record of exactly what was producedNo

Every tool carries MCP annotations: readOnlyHint and destructiveHint are set on all four.

Who it is for

Anyone who fills the same official PDFs again and again: small nonprofits and community organizations (vendor forms such as the IRS W-9, grant and funder forms, program intake and consent forms), operations staff, and builders who want an AI assistant to fill forms without hiding a partial or invisible fill.

Install

You need Python 3.10 or newer and uv (https://docs.astral.sh/uv/). The verify tool also needs two free programs:

  • macOS: brew install poppler tesseract
  • Debian or Ubuntu: sudo apt install poppler-utils tesseract-ocr

Claude Desktop (MCP server)

Add this to claude_desktop_config.json:

json
{  "mcpServers": {    "pdf-form-proof": {      "command": "uvx",      "args": ["pdf-form-proof"]    }  }}

Or install the .mcpb file from the latest GitHub release: double-click it, or use Settings > Extensions > Advanced settings > Install Extension.

Claude Code (plugin)

claude plugin marketplace add EssenceAlignment/pdf-form-proofclaude plugin install pdf-form-proof@pdf-form-proof

Gemini CLI (extension)

gemini extensions install https://github.com/EssenceAlignment/pdf-form-proof

Command line

uvx --from pdf-form-proof pdf-form-inspect form.pdfuvx --from pdf-form-proof pdf-form-fill form.pdf filled.pdf values.jsonuvx --from pdf-form-proof pdf-form-verify filled.pdf --require "Sample Community Food Bank"

values.json maps exact field names (from pdf-form-inspect) to values:

json
{  "topmostSubform[0].Page1[0].f1_01[0]": "Sample Community Food Bank",  "topmostSubform[0].Page1[0].Boxes3a-b_ReadOrder[0].c1_1[0]": "/1"}

Text fields take a string. A checkbox or radio takes one of its on-state values (shown by inspect, for example "/1" or "/Yes"), or an empty string to clear it.

Exit codes: 0 success; 1 a finding (verify found a value that is not visible, or a fill could not be read back); 2 refused (unknown field names, a missing file, an existing output, or a tool such as tesseract failed).

Example

$ pdf-form-verify filled.pdf --require "Sample Community Food Bank" --require "Sample Pantry Program"PDF FORM PROOF - legibility check  verdict: PASS  file: filled.pdf  page 1 at 300 dpi  scope: whole page  VALUE                       SOURCE    TEXT  RENDER  VERDICT  Sample Community Food Bank  required  yes   yes     VISIBLE  Sample Pantry Program       required  yes   yes     VISIBLE  limit: legibility only; says nothing about whether values are correct

Limits (read these)

  • AcroForm forms only. XFA-only forms (Adobe LiveCycle dynamic forms) are detected and refused, not filled.
  • finalize removes the XFA packet and the NeedAppearances flag so viewers draw the values from their own appearance streams. It does not flatten the form; fields stay editable.
  • Verify proves legibility, not correctness. It cannot tell you whether a value is the right answer for the form.
  • OCR can misread small, stylized, or handwritten-style fonts. A REFUSE verdict means "look at the page," not "the file is broken." A tool failure (missing poppler or tesseract, a render error) is reported as a tool failure, never as a finding about your document.
  • Signatures are not created. Signature fields are listed by inspect and left alone.
  • This tool fills forms. It does not give legal, tax, benefits, or other professional advice, and it does not decide what belongs in any field.

Privacy policy

pdf-form-proof runs entirely on your own computer.

  • Data collection: none. It reads only the PDF files you name and writes only the output path you name.
  • Usage and storage: each rendered page image is written to a temporary folder under ~/.cache/pdf-form-proof and deleted as soon as the OCR step finishes, including when a step fails. Nothing stays on disk unless you ask for a copy with --keep-render. (Version 0.1.0 kept the last image until the next run; 0.1.1 removes any such leftover on its first run.)
  • Third-party sharing: none. It makes no network calls and sends no telemetry.
  • Retention: nothing is retained beyond the files you create.
  • Contact: open an issue at https://github.com/EssenceAlignment/pdf-form-proof/issues

Origin

The fill engine and the visible-on-the-page check were built for a production document pipeline after a filled form passed every text-based check and was still returned because a value could not be seen on the page. The two rules that came out of that: never hide a partial fill, and check the page a person sees, not only the data in the file.

Author

Built by Eric Brakebill-Jones, MSW Systems Architect | Clinical Workflow and Grant Data Lineage. GitHub: https://github.com/EssenceAlignment

Changes

  • 0.1.1: the rendered page image is deleted the moment OCR finishes (it was kept until the next run in 0.1.0). Author line added.
  • 0.1.0: first release.

License

MIT. See LICENSE.

来源:README.md,提交 bd9fff8

工具

4

pdf_form_inspect

Inspect PDF form fields

List every fillable field in a PDF: exact name, type (text, button, choice, signature), current value, required flag, and for checkboxes/radios the on-state values that check them. Use the names exactly as returned when filling.

输入参数pdf_path必填

pdf_form_fill

Fill PDF form

Fill an AcroForm PDF and write a NEW file (the source is never modified and an existing output is never overwritten). values maps exact field names to values: strings for text fields; an on-state such as "/1" or "/Yes" (or true) to check a box, "" or false to clear it. strict=true refuses the whole fill if any name is unknown. finalize=true removes the XFA packet and NeedAppearances flag so viewers render the values from their own appearance streams (fields stay editable; this is not flattening). Returns the output SHA-256 and a read-back of every text value.

输入参数strictvalues必填finalizeoutput_path必填source_pdf_path必填

pdf_form_verify

Verify filled values are visible

Render one page, OCR it, and compare with the PDF text layer. Each value gets a verdict: VISIBLE, INVISIBLE (in the file but not on the page), RENDER-ONLY, or MISSING. region is "page" or "x0,y0,x1,y1" as page fractions; with a region and auto=true every word the text layer places in that region must also be legible. A tool failure (missing poppler or tesseract, render error) returns REFUSE with the reason and makes no finding about the document. Proves legibility only, not correctness.

输入参数dpiautopageregionvaluespdf_path必填

pdf_sha256

SHA-256 of a file

Return the SHA-256 digest of a file so the exact output can be recorded.

输入参数path必填

版本历史

2
  1. v0.1.1最新Oct 23, 2026
  2. v0.1.0Oct 23, 2026

评分

已满足适用检查项的 90%

该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。

  • 近 30 天内可连通25 分
  • 已声明认证方式10 分

    请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。

  • 已列出工具必需15 分
  • 描述必需15 分
  • 图标10 分
  • 文档15 分
  • 许可证10 分

其他 Proof 集成