Maverick

pypdf

辦公效率v1.0.0
作者:Maverick更新於 2026-05-11@clawhub_maverick-ai-tech/pypdf
PDF 處理#PDF

據 AlphaMoat 統計,截至 2026-09,pypdf 累計下載 1,169 次、獲 1 個星標,在全部 5,078 個 AI 技能中排名第 4,950 位,在「辦公效率」分類(435 個)中排名第 417 位。

累計安裝
128
累計下載
1169
星標
1
全站排名
#4,950
全站前 98% · 「辦公效率」前 96%
平台累計安裝累計下載星標評論
ClawHub ↗271005--
SkillHub ↗12811691—

各平台的計數口徑不同,統計時間不一致。

這個技能是做什麼的

該工具使用專用 CLI 讀取 PDF 文字、後設資料和頁面,也支援拆分、合併、旋轉或轉換頁面。執行前應確認輸入檔案路徑和輸出位置,只處理使用者指定的文件;依賴應在隔離環境中從可信來源安裝並固定版本。讀取結果可能包含敏感文件內容,應妥善保護輸出。

資料釋出於 2026-10-29

可以用來做什麼

  • 讀取 PDF 後設資料和頁數
  • 提取整份或指定頁面的文字
  • 拆分、合併、旋轉或轉換 PDF 頁面

什麼時候用

  • 需要以可重複的命令列方式處理 PDF 時
  • 輸入檔案與輸出路徑已由使用者明確指定時
  • 可以隔離依賴並保護提取內容時

示例提示詞

以下是根據技能文件生成的示例,不代表實際執行結果。

請讀取我指定的 PDF 並提取第 2 頁文字,先確認輸入和輸出路徑;不要掃描其他檔案,也不要把提取內容傳送到外部服務。

月度資料趨勢

累計下載1169
34578812302026-03 · 累計下載 4062026-05 · 累計下載 6362026-06 · 累計下載 7682026-07 · 累計下載 9132026-08 · 累計下載 10062026-09 · 累計下載 116926-0326-09
星標1
0112026-03 · 星標 -2026-05 · 星標 -2026-06 · 星標 12026-07 · 星標 12026-08 · 星標 12026-09 · 星標 126-0326-09

2026-09 起統計方法調整:同名技能按作者分別統計,並覆蓋全部技能。圖中虛線為調整前的月份,與之後的資料不直接比較,也不計算跨越調整的增長。

月份累計下載環比星標
2026-091169—1
2026-081006+10.2%1
2026-07913+18.9%1
2026-06768+20.8%1
2026-05636—-
2026-03406—-

SKILL.md 原文

以下是作者釋出的原始檔案,按純文字顯示,本站未做修改或稽核;其中的連結不可點選,命令請核實後再執行。抓取於 2026-10-23。

1.8 KB · ClawHub v1.0.0
---
name: pypdf
description: 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.
metadata:
  openclaw:
    requires:
      bins:
        - python3
---
展開全部(共 46 行)
# 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`.

「辦公效率」分類下的熱門技能

資料月份:2026-09 · 下載/星標/安裝數聚合自公開技能註冊庫(ClawHub、SkillHub),按月更新。口徑說明見資料方法。