← 返回
内容创作 中文

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...
使用pypdf从PDF文件中提取文本、元数据和页面。适用于读取PDF内容、提取特定页面、拆分或合并PDF等任务。
maverick-ai-tech
内容创作 clawhub v1.0.0 1 版本 100000 Key: 无需
★ 1
Stars
📥 714
下载
💾 128
安装
1
版本
#latest

概述

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
  • Extract all text:
  • python scripts/pypdf_cli.py extract-text --input
  • Extract text from specific pages (0-indexed):
  • python scripts/pypdf_cli.py extract-text --input --pages 0 1 2
  • Split PDF into individual pages:
  • python scripts/pypdf_cli.py split --input --output-dir
  • Extract a page range into a new PDF:
  • python scripts/pypdf_cli.py extract-pages --input --pages 0 1 2 --output
  • Merge multiple PDFs:
  • python scripts/pypdf_cli.py merge --inputs --output
  • Rotate pages:
  • python scripts/pypdf_cli.py rotate --input --angle 90 --output
  • --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.

版本历史

共 1 个版本

  • v1.0.0 当前
    2026-03-30 03:41 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

content-creation

AdMapix

fly0pants
广告情报与应用数据分析助手,支持搜索广告素材、分析应用排名、下载量、收入及市场洞察,用于广告素材和竞品分析。
★ 295 📥 136,489
content-creation

Humanizer

biostartechnology
消除AI写作痕迹,使文本更自然真实。基于维基百科"AI写作特征"指南,识别并修正夸张象征、宣传用语、肤浅-ing分析、模糊归因、破折号滥用、三项排比、AI词汇、负面平行结构及冗长连接词等模式。
★ 860 📥 199,843
data-analysis

SmartBill Invoicing

maverick-ai-tech
通过 SmartBill.ro API 本地自动化开具 SmartBill 发票,执行验证载荷、创建发票等任务。
★ 2 📥 970