pdf-form-filler
Fill flattened/image-based PDF forms using PIL image compositing. Works in pixel space for precise field placement.
- License 许可
- MIT
- 最近更新
- 2026-09-18
- Stars
- ★ 0
- Forks
- 0
01 前言 Front Matter
- name
- pdf-form-filler
- version
- 1.0.0
- description
- Fill flattened/image-based PDF forms using PIL image compositing. Works in pixel space for precise field placement.
02 资源文件 1
- 脚本scripts/pdf_form_filler.py9.4 KB
03 SKILL.md 正文
PDF Form Filler (Image Compositing)
For flattened/image-based PDFs where pymupdf text insertion misses field positions.
Approach: Render → OCR → Composite → Save
- Render PDF pages at 4x resolution (2448×3168 for letter)
- OCR with pytesseract to get exact bounding boxes
- Find blanks by locating gaps between text on same line
- Composite text using PIL at exact pixel positions
- Save composited image as PDF
Key Advantage
Works in pixel space (not PDF points), so positioning is exact.
Pitfalls
- pytesseract bounding boxes have ~2-5px noise at 4x render
- Small text (6-7pt) may need manual coordinate adjustment
- Always verify output with vision_analyze after filling
04 同仓库更多 Skills
zopack
Export and import zo.space route setups as shareable .zopack.md files. Use when the user wants to package their zo.space routes for sharing, or when they receive a .zopack.md file to deploy. Triggers on "export my zo.space", "create a zopack", "import this zopack", or any mention of .zopack.md files.
zoho-mail-inbox
Full inbox management for Zoho Mail (info@justlegalsolutions.org) — list unread, mark all as read, delete by sender/keyword, search, send from aliases, list folders. Fully self-contained — zero setup needed.
weekly-meeting-reminder
Get an email every Sunday evening listing your meetings for the coming week.
Let Zo use your X (Twitter) account
zo-tools
Internal process tools for Zo and Hermes — local search, document processing, OCR, and embeddings. All services run on localhost, zero HTTP slots consumed.
ssh-setup
Sets up secure remote access to your Zo Computer so you can connect from anywhere