返回顶部
🇺🇸 English
🇨🇳 简体中文
🇨🇳 繁體中文
🇺🇸 English
🇯🇵 日本語
🇰🇷 한국어
🇫🇷 Français
🇩🇪 Deutsch
🇪🇸 Español
🇷🇺 Русский
p

pypdf

Extract text, metadata, and pages from PDF files using pypdf. Use for tasks such as reading PDF content, extracting specific pages, splitting or merging PDFs, reading document metadata, and rotating or transforming pages.

作者: admin | 来源: ClawHub
源自
ClawHub
版本
V 1.0.0
安全检测
已通过
363
下载量
免费
免费
0
收藏
概述
安装方式
版本历史

pypdf

# pypdf Use `scripts/pypdf_cli.py` for deterministic PDF operations instead of ad-hoc pypdf snippets. ## Workflow 1. Confirm the PDF file path is accessible locally. 2. Run the desired command (inspect, extract-text, extract-pages, merge, split, rotate). 3. Inspect text output or the resulting PDF file. ## Command Guide - Inspect metadata and page count: - `python scripts/pypdf_cli.py info --input <file.pdf>` - Extract all text: - `python scripts/pypdf_cli.py extract-text --input <file.pdf>` - Extract text from specific pages (0-indexed): - `python scripts/pypdf_cli.py extract-text --input <file.pdf> --pages 0 1 2` - Split PDF into individual pages: - `python scripts/pypdf_cli.py split --input <file.pdf> --output-dir <dir/>` - Extract a page range into a new PDF: - `python scripts/pypdf_cli.py extract-pages --input <file.pdf> --pages 0 1 2 --output <out.pdf>` - Merge multiple PDFs: - `python scripts/pypdf_cli.py merge --inputs <a.pdf> <b.pdf> <c.pdf> --output <merged.pdf>` - Rotate pages: - `python scripts/pypdf_cli.py rotate --input <file.pdf> --angle 90 --output <rotated.pdf>` - `--angle` must be 90, 180, or 270. - Optionally restrict to specific pages with `--pages 0 2`. ## Operational Rules - Pages are always 0-indexed in all commands. - For `extract-text`, output goes to stdout; redirect to a file when needed. - Require explicit `--output` for commands that write a new PDF. - Install dependency if missing: `pip install pypdf`.

标签

skill ai

通过对话安装

该技能支持在以下平台通过对话安装:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 pypdf-1776293908 技能

方式二:设置 SkillHub 为优先技能安装源

设置 SkillHub 为我的优先技能安装源,然后帮我安装 pypdf-1776293908 技能

通过命令行安装

skillhub install pypdf-1776293908

下载

⬇ 下载 pypdf v1.0.0(免费)

文件大小: 3.33 KB | 发布时间: 2026-4-16 18:24

v1.0.0 最新 2026-4-16 18:24
- Initial release of the pypdf skill.
- Provides CLI for extracting text, metadata, and specific pages from PDF files.
- Supports splitting, merging, and rotating PDFs via deterministic commands.
- All operations use scripts/pypdf_cli.py, with clear command structure and instructions.
- Explicit requirements and operational rules included for consistent usage.

Archiver·手机版·闲社网·闲社论坛·羊毛社区· 多链控股集团有限公司 · 苏ICP备2025199260号-1

Powered by Discuz! X5.0   © 2024-2025 闲社网·线报更新论坛·羊毛分享社区·http://xianshe.com

p2p_official_large
返回顶部