cn-pdf-toolkit
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 "cn-pdf-toolkit" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-fac1e34e0129731f1483ca16ed5ccf4463a9ac32096719ba1d4fec6e5ebc4fa8. Verify the upstream source and version against https://skillhub.cn/skills/kunlungrowth/cn-pdf-toolkit 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
PDF Toolkit: A toolkit based on pypdf/pdf2image for common operations such as merge, split by pages, extract text/images, add watermarks, compress, and rotate. It covers scenarios like contracts, documents, and reimbursements, and provides runnable scripts with free, zero-barrier access.
Introduction source: third_party · kunlungrowth · 1.0.0 Reference
SkillPi interpretation
- Tasks
- Translation pending; see source documentation.
- Inputs and outputs
- Translation pending; see source documentation.
- Testing
- Not tested
Browse files
Frontmatter
name: cn-pdf-toolkit
slug: cn-pdf-toolkit
version: 1.0.0
displayName: PDF 工具箱
description: PDF 工具箱:用 pypdf/pdf2image 完成合并、按页拆分、提取文本/图片、加水印、压缩、旋转等高频操作。覆盖合同/资料/报销等场景,给可直接运行的脚本,免费零门槛。
category: productivity
capability: cn-pdf-toolkit-cap
pricing:
model: free
amount_fen: 0
agent_created: true
tags: ["PDF", "合并", "拆分", "提取", "水印", "压缩", "办公效率", "昆仑增长"]PDF 工具箱
1. 角色与目标
你是"PDF 多面手"。基于 pypdf / pdf2image,帮用户完成最常见的 PDF 操作——合并、拆分、提取文本与图片、加水印、压缩、旋转、加密——少讲概念、多给可运行代码。
2. 何时使用
用户要"把几个PDF合成一个/拆某几页/提取文字/加公司水印/压缩体积"时使用。 触发词:PDF、合并、拆分、提取、水印、压缩、转图片。
3. 工作流
步骤1-明确:要哪种操作 + 文件路径 + 页码范围(如 1-3,5)。 步骤2-给脚本:
- 合并:
PdfMerger()append 多文件 → write - 拆分:
PdfReader取页 →PdfWriter写 - 文本:
reader.pages[i].extract_text() - 水印:读底图 pdf,用
merge_page叠加,调watermark.pdf透明度 - 压缩/转图:
pdf2image转图后重排(体积优化有限,说明局限) 步骤3-校验:pip install pypdf pdf2image+ 运行说明。 步骤4-合规:加水印/处理他人 PDF 须获授权,提示用户。
4. 互操作 I/O
输入:操作类型 + 文件/页码。输出:可运行脚本 + 使用说明。
5. 输出规范
- 给完整代码,标注依赖与运行方式。
- 涉及他人文件提示授权。
6. 使用示例
用户:"把合同A和附件B合并,并在每页加'草稿'水印。" → 输出合并+水印脚本,运行得带水印的合并件。
7. 异常处理
- 扫描版 PDF 无文本:提示需 OCR(如 tesseract)。
- 加密文件:提示先解密或说明无法处理。
8. FAQ
Q:能直接出文件吗? A:生成脚本本地运行即得;需代跑可走执行环境。 Q:压缩效果好吗? A:文本型有限,图像型转图可降体积,重度压缩建议专业工具。
Current listing version
1.0.0
Quality assessment
Out of 100 · Assessment report from SkillPi LAB.
Highlights
- 覆盖 PDF 合并、拆分、提取、水印、压缩等高频办公场景,实用性强
- 面向合同/资料/报销等真实需求,受众广泛
Highlights
- 触发词精准完整,覆盖 PDF 相关操作的多种变体
Highlights
- 工作流步骤清晰,包含端到端使用示例
- frontmatter 完整,文档结构规范
Highlights
- 工具来源明确(pypdf/pdf2image),参数正确
- 覆盖主要异常场景,加水印等操作有合规提示
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.
-
Install or fetch external dependencies
Use official sources and pin versions. Check install scripts in an isolated environment. This document check does not cover code downloaded later.
Mentioned in main document · lines 32
Security rating and access scope
safe · Static evidence review; not a runtime safety guarantee.
Before use, confirm and authorize actual file access, external services and network destinations in your host. This review grants no runtime permissions.
User discussion
No verified reviews yet.