SKILL_520396239 · vv1.0 · 通用工具 · Owner:— · 发布于 2026-08-11
调用 170
下载 0
点赞 0
浏览 0
- 简介
- 用于PDF文件解析、创建、文本提取与视觉渲染校验的自动化工具。
- 触发词
- PDF解析,文档生成,文本提取,格式转换,页面校验
- 分发渠道
- ARK Engine
- 功能测试
- ✅ 通过 · 业务评审:✅ 通过
- 技能包文件
- pdf/LICENSE.txt、pdf/SKILL.md、pdf/forms.md、pdf/reference.md、pdf/scripts/check_bounding_boxes.py、pdf/scripts/check_fillable_fields.py、pdf/scripts/convert_pdf_to_images.py、pdf/scripts/create_region_contact_sheet.py …共14个文件
使用示例:帮我解析这份PDF并提取其中的关键文字。
SKILL.md 全文
Frontmatter
| name | |
|---|---|
| description | Read, create, extract, and visually verify PDF files in the AgentRun container using Poppler and Python document libraries. |
PDF Skill
Use this skill for PDF parsing, creation, conversion, and render checks.Runtime
The AgentRun image provides:python3withreportlab,pdfplumber,pypdf,pymupdf,pillowpdftotext,pdftoppm,pdftocairoqpdf- Noto CJK fonts
Rules
- Batched writing (hard limit): infrastructure kills any streaming response after ~4.5 minutes of continuous generation. Cap every single Write/Edit payload at ~150 lines and build long generation scripts or HTML sources in batches (skeleton first, then append one section per response with Edit); never regenerate a whole file to fix one part.
- Keep all generated files under the current workspace, preferably
output/. - For multi-step work, write a small
.pyscript undertmp/oroutput/and run it withpython3. - Do not use
python -c; inline Python is blocked by the runtime policy. - Render created PDFs with
pdftoppm -pngand inspect extracted text or page images before reporting success. - For PDF analysis or form work, start with
scripts/inspect_pdf_batch.py. It extracts all pages, labels, annotations, widgets, and checkbox candidates and creates page/detail contact sheets in one command. - Read
summary.jsonfirst, then only the required slices ofstructure.json. Do not print the full structure for a large document. - Inspect page contact sheets in one parallel visual turn. Do not read one page image per model turn.
- When closer crops are needed, write all rough regions to one JSON manifest and run
scripts/create_region_contact_sheet.pyonce. Do not crop one field at a time. - For PDF forms, read [forms.md](forms.md) and keep field discovery, filling, and verification batch-oriented.
Common Commands
pdftotext input.pdf output.txt python3 scripts/inspect_pdf_batch.py input.pdf --output-dir tmp/pdf-inspection python3 scripts/create_region_contact_sheet.py \ --images-dir tmp/pdf-inspection/pages \ --regions tmp/regions.json \ --output-dir tmp/pdf-regions python3 tmp/create_pdf.py