aladin-pdf-forge

An Aladdin-made intelligent PDF workshop that turns extracting text, tables, images, and outlines from PDFs into a pure local, zero-dependency toolchain. Features include rebuilding text reading order, automatic title/chapter splitting, coordinate-clustering table extraction converted to Markdown/CSV, bookmark/outline extraction, embedded image export to PNG, Chinese Type0/Identity-H + ToUnicode decoding, structured knowledge export (knowledge.json), offline HTML preview, and intelligent summarization. Compared with single-purpose tools, it adds table extraction, outlines/bookmarks, reading-order reconstruction, and structured knowledge export, and supports batch table-of-contents processing — all without requiring additional installations or third-party services.

Installation

Review the source and dependencies with a prompt. A package is available to download.

Install with an AI assistant

Copy the prompt so your assistant can review the pinned revision and dependencies first.

View promptHide prompt
Check whether SkillPI Skill Finder is installed for your current agent. If it is missing, install and enable it using the official instructions at https://github.com/Findskills/skillpi. Then use Skill Finder to locate and install "aladin-pdf-forge" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-c4a17ca37a271b6a091e8e80ef86616365a55db8c250fb714f327fe9e7d36606. Verify the upstream source and version against https://skillhub.cn/skills/user_d18c97ea/aladin-pdf-forge before installing. If they do not match, stop and report the mismatch. Report the installed path and source version.

Source and setup

skillhub.cn

Setup guidance pending

See the original source for supported tools, dependencies, and permissions.

Installation test pending

An Aladdin-made intelligent PDF workshop that turns extracting text, tables, images, and outlines from PDFs into a pure local, zero-dependency toolchain. Features include rebuilding text reading order, automatic title/chapter splitting, coordinate-clustering table extraction converted to Markdown/CSV, bookmark/outline extraction, embedded image export to PNG, Chinese Type0/Identity-H + ToUnicode decoding, structured knowledge export (knowledge.json), offline HTML preview, and intelligent summarization. Compared with single-purpose tools, it adds table extraction, outlines/bookmarks, reading-order reconstruction, and structured knowledge export, and supports batch table-of-contents processing — all without requiring additional installations or third-party services.

0 Downloads

Introduction source: third_party · user_d18c97ea · 1.0.0 Reference

SkillPi interpretation

Tasks
Translation pending; see source documentation.
Audience
Not specified in the source documentation.
Inputs and outputs
Translation pending; see source documentation.
Software, accounts and paid services
Not specified in the source documentation.
Limits and differences
Not specified in the source documentation.
Testing
Not tested

Browse files

Browse files at the source ↗

Original SKILL.md

Open original ↗
Frontmatter
name: aladin-pdf-forge
slug: aladin-pdf-forge
version: 1.0.0
displayName: 阿拉丁·智能 PDF 文档工坊|零依赖解析·表格提取·大纲抽取·知识结构化
summary: 阿拉丁出品的智能 PDF 文档工坊:把"从 PDF 里把文字、表格、图片、大纲干净地抠出来再用起来"从「装 Office / 装 OCR / 调付费 API / 踩各种依赖坑」升级成一条纯本地零依赖工具链——文本阅读顺序重建、标题/章节自动切分、坐标聚类表格提取转 Markdown/CSV、书签大纲抽取、内嵌图片导出 PNG、中文 Type0/Identity-H + ToUnicode 解码、结构化知识导出(knowledge.json) + 离线 HTML 速览 + 智能摘要(由 Hy3 填充)。比 skillhub 飙升的 pdf-image-text-extractor 单点技能多出 表格提取 + 大纲/书签 + 阅读顺序重建 + 结构化知识导出 + 离线可视化 + 批量目录处理,且全程不需要任何 pip 安装、OCR 引擎或第三方服务。
description: 阿拉丁·智能 PDF 文档工坊把「想从 PDF 里把文字、表格、图片、大纲干净地抠出来——却卡在装 Office、装 OCR、调付费 API、各种依赖冲突」升级成一条纯本地零依赖工具链:文本阅读顺序重建、标题/章节自动切分、坐标聚类表格提取转 Markdown/CSV、书签大纲抽取、内嵌图片导出 PNG、中文 Type0/Identity-H + ToUnicode 解码、结构化知识导出(knowledge.json)+离线 HTML 速览+智能摘要(由 Hy3 填充)。比 skillhub 飙升的 pdf-image-text-extractor(仅做图文提取)多出 表格提取 + 大纲/书签 + 阅读顺序重建 + 结构化知识导出 + 离线可视化 + 批量目录处理,全程不需要 pip 安装 / OCR 引擎 / 第三方服务,离线可用。触发词:PDF 解析、PDF 提取、PDF 转 Markdown、PDF 转 Word、PDF 转文本、PDF 表格提取、PDF 转 Excel、PDF 图片提取、PDF 大纲、PDF 书签、PDF 结构化、合同解析、发票解析、论文解析、简历解析、扫描件转文字、离线 PDF、零依赖 PDF、PDF 知识库、文档解析、PDF OCR 替代、PDF 文本识别、阿拉丁 PDF、aladin pdf、pdf parser、pdf extract、pdf table extract、pdf to markdown、pdf outline、pdf knowledge。
category: 文档处理
license: MIT
platforms:
  - WorkBuddy
  - QClaw
  - ima
homepage: https://skillhub.cn
author: adam
company: 阿拉丁
tags:
  - PDF解析
  - PDF提取
  - PDF转Markdown
  - PDF表格提取
  - PDF转Excel
  - PDF图片提取
  - PDF大纲
  - PDF书签
  - 文档结构化
  - 合同解析
  - 发票解析
  - 论文解析
  - 离线PDF
  - 零依赖PDF
  - PDF知识库
  - 阿拉丁
  - aladin
  - pdf parser
  - pdf to markdown
  - document extraction
agent_created: true

阿拉丁·智能 PDF 文档工坊(aladin-pdf-forge)

阿拉丁出品。你用 aladin-doc-forge 把代码仓库生成了文档、omni-note-forge 把网页剪藏变成了知识卡片——但每天最常被"卡住"的文档源头其实是 PDF:合同、发票、论文、简历、产品手册、扫描件。skillhub 的 pdf 相关技能正在飙升(pdf-image-text-extractor 已 3 万+ 评分),可它们只做单点图文提取——没有一款帮你把 PDF 真正"结构化"成可用的知识:表格丢了、大纲没了、阅读顺序是乱的、中文是乱码。这个技能把 PDF 解析收口成一套纯本地、零依赖、离线可用的工具:你给一个 PDF(或一整个目录),它产出干净文本 + 表格 CSV + 大纲 + 图片 + 结构化知识 JSON + 离线速览 HTML,并在最后由 Hy3 模型补一段智能摘要。

它解决什么痛点

用户在 skillhub 上能找到的"PDF 向"工具都是单点:

现有飙升/常见技能 只做 不做
pdf-image-text-extractor(pdf 类目头部,3 万+) 提取图片 + 文本 不提取表格、不重建阅读顺序、不出大纲、不结构化
pdf(各类单一生成器) 把内容生成 PDF 不解析已有 PDF
pdf-ocr-md / nano-pdf 依赖 OCR / pip 库 需装引擎/库、易环境冲突
wps-office-suite / pdf-svr 依赖 Office 安装 / MCP 服务 离线不可用、需额外服务

本技能 = PDF 结构化全链路,脚本零依赖(仅 Python 标准库)、纯本地、离线可用,且比上述单点技能多出 表格提取 + 大纲/书签 + 阅读顺序重建 + 结构化知识导出 + 离线可视化 + 批量目录处理。

与 skillhub 现有技能 + 自家 aladin 系列的差异化

能力 单点 pdf 技能 阿拉丁·智能 PDF 文档工坊(本款)
文本提取 + 阅读顺序重建 ✗(常乱序) ✓ 按坐标重排
标题/章节自动切分 ✗ ✓ 字号+位置聚类
表格提取(→CSV/MD) ✗ ✓ 坐标聚类单元格
大纲/书签抽取 ✗ ✓ Outlines 树
内嵌图片导出 PNG 部分 ✓ Flate/DCT 解码
中文 Type0/Identity-H + ToUnicode ✗(常乱码) ✓ CMap 解码
结构化知识导出 JSON ✗ ✓ 章节+图片+统计
离线 HTML 速览 + 智能摘要(Hy3) ✗ ✓
批量目录处理 ✗ ✓ --dir 递归
零依赖 / 离线 部分需 OCR/Office ✓ 纯标准库

何时触发

  • "把这个 PDF 转成 Markdown / Word / 文本" / "PDF 提取文字"
  • "把 PDF 里的表格抠出来" / "PDF 表格提取成 Excel/CSV"
  • "提取 PDF 的图片" / "PDF 里的图导出来"
  • "解析这份合同 / 发票 / 论文 / 简历" / "把扫描件变成可编辑文字"
  • "提取 PDF 的大纲 / 书签" / "PDF 结构化"
  • "把这一堆 PDF 批量处理" / "目录里所有 PDF 转文本"
  • 用户给出 PDF 路径或目录,想落地成结构化知识(联动 omni-note-forge 做知识卡片、aladin-doc-forge 做文档)

何时不触发

  • 用户要生成/创建 PDF(如把数据画成 PDF 报告)——用 pdf 生成类技能,本款只解析
  • 用户要联网 OCR 云端识别(如需云端高精度手写体 OCR)——本款是离线解析,非云端 OCR
  • 用户要编辑 PDF(改文字/加批注/合并页面)——本款是提取与结构化,不做编辑器
  • 用户要搜索/安装别人的技能——用 find skill / skillhub install
  • 用户要审计技能安全——用 aladin-secure-forge / Skill Auditor
  • 用户只想要纯文本文章/文案——走内容向技能,不在此列

能力边界

能做:

  • 文本提取:按坐标重建阅读顺序,字号+位置聚类切分标题/章节
  • 表格提取:坐标聚类单元格 → Markdown 表格 + CSV(带页码/表序/行列索引)
  • 大纲/书签:抽取 PDF Outlines 树(深度 + 标题)
  • 图片提取:内嵌 PNG/JPG 导出(FlateDecode / DCTDecode)
  • 中文支持:Type0 / Identity-H + ToUnicode CMap 解码(CID → Unicode)
  • 结构化导出:knowledge.json(章节树 + 图片清单 + 统计)、structure.json(标题层级)
  • 可视化:离线 HTML 速览(pdf_preview.html)+ 由 Hy3 填充的智能摘要(summary.md)
  • 批量:--dir 递归扫描整目录 PDF

不能做:

  • 不能做云端高精度手写体 OCR(本款是字体编码解析,非图像识别;扫描图是图片的 PDF 需先 OCR 再喂入)
  • 不能编辑/改写 PDF 内容(只提取与结构化,不写回 PDF)
  • 不能保证100% 还原所有排版(极复杂多栏/旋转/嵌套表格可能需人工微调)
  • 不能替代专业排版软件(产出是结构化数据,非版式还原)
  • 不能绕过 skillhub 安全审核

输入输出规范

输入(任选其一):

  • --pdf:单个 PDF 文件路径
  • --dir:目录(递归扫所有 *.pdf)
  • 输出统一写入 --out 目录

输出(每个 PDF 一套,位于 --out):

  • <stem>_ir.json:解析中间表示(页码/文本块/图片/大纲/错误)
  • <stem>_assets/:导出的内嵌图片(PNG/JPG)
  • document.md:重建阅读顺序后的正文(含表格)
  • tables.csv:全部表格(page,table_index,row_index,cell_index,content)
  • structure.json:标题层级结构
  • knowledge.json:结构化知识(sections + images + stats)
  • pdf_preview.html:离线可视化速览
  • summary.md:大纲 + 表格 + 待 Hy3 填充的智能摘要模板
  • manifest.json:批量处理清单

工作流

Step 1:解析 PDF(pdf_ingest.py)

PY="C:/Users/adam/.workbuddy/binaries/python/versions/3.13.12/python.exe"
SKILL="<本技能目录>"
# 单个文件
"$PY" "$SKILL/scripts/pdf_ingest.py" --pdf "./report.pdf" --out ./build
# 或整目录批量
"$PY" "$SKILL/scripts/pdf_ingest.py" --dir "./pdfs" --out ./build

产出 <stem>_ir.json + <stem>_assets/(图片)+ manifest.json。

Step 2:结构化提取(pdf_extract.py)

"$PY" "$SKILL/scripts/pdf_extract.py" --ir ./build/report_ir.json --out ./build --source-name report

产出 document.md(正文+表格)、tables.csv、structure.json(标题层级)。

Step 3:知识导出 + 速览 + 摘要(pdf_report.py)

"$PY" "$SKILL/scripts/pdf_report.py" --ir ./build/report_ir.json --structure ./build/structure.json --out ./build --source-name report

产出 knowledge.json(结构化知识)、pdf_preview.html(离线速览)、summary.md(大纲 + 表格 + 待 Hy3 填充的智能摘要)。

Step 4:由 Hy3 完成智能摘要

读取 summary.md,基于其中的章节与表格内容,由 Hy3 模型生成:一句话结论 + 3 个关键要点 + 可执行的后续问题,回填到 summary.md 的「智能摘要」章节。

复用资源

文件 用途 加载时机
references/usage-examples.md 4 个完整场景(合同/论文/发票/批量简历)+ 最佳实践 + FAQ 用户要具体样例、或落地参考时加载
references/pdf-formats.md 支持的 PDF 对象/编码/过滤器清单与局限说明 Step 1 解析异常、或用户问"能不能解析某类 PDF"时加载

重要约束

  • 零依赖:三脚本仅用 Python 标准库,离线可跑,不要求 pip 安装(→ Reliability)
  • 不乱码:中文走 Type0/Identity-H + ToUnicode 解码,不做无根据的编码猜测(→ Trust)
  • 不编造内容:提取严格基于 PDF 实际字节,不生成 PDF 中不存在的文字(→ Trust)
  • 结构化优先:表格/大纲/图片均结构化导出,不丢信息(→ Convention)
  • 批量安全:--dir 逐文件处理,单文件失败不影响整批(→ Reliability)
  • 摘要由 Hy3 填充:智能摘要交由 Hy3 模型基于真实章节内容生成,不预置虚假结论(→ Trust)
  • description 单行:禁用 YAML 多行语法,保持可发布(→ Convention)

与 aladin 工程链的关系

本技能是 aladin 工程链在「文档入口层」的延伸——在 doc-forge(代码→文档)、omni-note-forge(剪藏→知识卡片)、agent-forge(需求→Agent) 之上,把最常见的"非结构化文档源头 PDF"先解析成结构化数据:解析出的 knowledge.json 可直接喂给 omni-note-forge 做知识卡片,表格 CSV 可交给 excel-chart-builder 做图表,正文 Markdown 可交给 aladin-doc-forge 二次加工。

Current listing version

1.0.0

Verify the source revision ↗

Safety and assessment details

Quality assessment

Out of 100 · Assessment report from SkillPi LAB.

Scenario Value95/100

Highlights

  • 解决 PDF 结构化解析的核心痛点,功能远超现有单点提取工具
  • 零依赖纯本地运行,支持批量处理与离线使用,实用价值高
  • 输出结构化知识(JSON/HTML/CSV),便于后续技能联动复用
Trigger Precision92/100

Highlights

  • 触发词覆盖全面,包含多种 PDF 处理场景与格式转换需求
  • 明确区分'何时不触发',边界清晰,降低误触风险
Structure and Standards94/100

Areas to improve

  • description 内容过长 Reported severity: Minor

    顶层 description 字段内容极长,虽未截断但影响可读性与平台展示

    Recommendation: 建议精简 description,保留核心功能与差异化,细节放 skill_body

Highlights

  • 工作流分 Step 清晰,输入输出规范完整
  • 能力边界与约束明确,增强用户预期管理
Execution Reliability91/100

Highlights

  • 仅依赖 Python 标准库,零外部依赖,离线可用
  • 批量处理具备容错机制,单文件失败不影响整体
Evidence Verifiability (mean of the first four)93/100

The arithmetic mean of the first four original scores, rounded to a whole number.

Static text checks

100 / 100 · skillpi-20261123-no-r3-v1

No current rules matched the text.

This score reflects rule matches in the text and is provided for reference before use. It excludes attachments and runtime behavior.

Permissions and checks before use

Automatically summarized from this main document. Matches may be examples or defensive advice; they are not actual permission declarations. Attachments, external dependencies and runtime behavior are not covered.

These common operations were not identified in the main document. This does not mean no permissions or risks exist.

Domains or addresses referenced in the document

These addresses may be documentation links or examples, not an approved network allowlist. Verify actual destinations and outgoing data before use.

  • skillhub.cn

These notices grant no permissions. Your host tool must still confirm file changes, secrets, external transfers or costs as needed.

Security rating and access scope

safe · Static evidence review; not a runtime safety guarantee.

Not specified in the source documentation.

Before use, confirm and authorize actual file access, external services and network destinations in your host. This review grants no runtime permissions.