AlphaMoatによると、2026-09時点でpdf-ocr-extractionのダウンロード数は1,853、スター数は2で、AIスキル全体5,078件中4,534位、オフィス効率化では435件中357位です。
| プラットフォーム | インストール数 | ダウンロード数 | スター数 | コメント |
|---|---|---|---|---|
| ClawHub ↗ | 45 | 1636 | 2 | - |
| SkillHub ↗ | 224 | 1853 | 2 | — |
プラットフォームごとに集計方法と集計時点が異なります。
ネイティブテキスト層のないスキャン版・画像型 PDF 向け:完全無料、サードパーティ API 不使用、利用制限なし。PDF ページを高解像度画像(scale=2)へレンダリングして OCR を実行します。依存関係:システムバイナリの tesseract(chi_sim/eng などの言語パック付き)と Python パッケージの pypdfium2、pytesseract、Pillow。実行時に自動 pip install は行わず、metadata ブロックどおりユーザーか環境が依存を事前インストールする前提です。使い方:一時ディレクトリに extract.py を作成し(PdfDocument でページを走査 → bitmap.to_pil() を /tmp/page_i.png に保存 → pytesseract.image_to_string(lang='chi_sim+eng') → os.remove でクリーンアップ → 全文を結合)、python3 extract.py /path/to/document.pdf で実行。セキュリティ制約:一時画像は /tmp/ だけに書き出し、抽出後すぐ削除。shell で言語パックを動的ダウンロード/インストールせず、特定言語が欠けている場合はユーザーに通知。スキルカードは、予測可能な共有パスに一時 OCR 画像を書くと文書内容が漏洩しうる(メモリ内 OCR か私有のランダム一時ディレクトリを使い処理後すぐ削除)、言語パック欠落や言語オプション不一致で OCR の品質・カバー率が落ちる(使用前に必要な言語パックを入れ Tesseract の言語オプションを文書に合わせる)、実行時の依存インストールは運用・安全上の不確実性をもたらす(最小権限環境で Tesseract・言語パック・pypdfium2・pytesseract・Pillow を事前インストール)と注意しています。
資料公開日 2026-10-29
スキルのドキュメントをもとに生成した例であり、実際の実行結果ではありません。
2026-09 から集計方法を変更し、同名スキルを作者ごとに分けて集計し、全スキルを対象にしました。破線は変更前の月で、変更後のデータとは直接比較せず、変更をまたぐ増減も計算していません。
| 月 | ダウンロード数 | 前月比 | スター数 |
|---|---|---|---|
| 2026-09 | 1853 | — | 2 |
| 2026-08 | 1554 | +7.5% | 2 |
| 2026-07 | 1445 | +20.9% | 2 |
| 2026-06 | 1195 | +18.0% | 2 |
| 2026-05 | 1013 | — | 2 |
| 2026-03 | 408 | — | 1 |
作者が公開した元のファイルをテキストのまま表示しています。AlphaMoat による編集や審査はしていません。リンクはクリックできません。コマンドは内容を確認してから実行してください。取得日 2026-10-23。
---
name: pdf-ocr-extractor
description: Extract text from image-based or scanned PDFs using Tesseract OCR.
metadata:
{
"openclaw":
{
"emoji": "📄",
"requires": { "bins": ["tesseract", "python3"] },
"install": [
{
"id": "tesseract-ocr",
"kind": "system",
"package": "tesseract",
"bins": ["tesseract"],
"label": "Install Tesseract OCR (requires language packs e.g., tesseract-ocr-chi-sim)"
},
{
"id": "pip-deps",
"kind": "uv",
"package": "pypdfium2 pytesseract Pillow",
"label": "Install Python dependencies (pypdfium2, pytesseract, Pillow)"
}
]
}
}
---
# PDF OCR Extractor
Use this skill to extract text from scanned PDFs or image-based PDFs that lack a native text layer. It's completely free, doesn't utilize third-party APIs, and offers unlimited usage. It renders PDF pages to images and runs optical character recognition (OCR).
## Dependencies
This skill requires:
1. **System Binary**: `tesseract` (along with required language data packs like `chi_sim` or `eng`).
2. **Python Packages**: `pypdfium2`, `pytesseract`, and `Pillow`.
*Note: Do not run automated `pip install` commands at runtime. Rely on the user or the environment to pre-install the dependencies defined in the metadata block.*
## Quick Start
Create a Python script (e.g., `extract.py`) in a temporary directory to handle the extraction safely:
```python
import pypdfium2 as pdfium
import pytesseract
from PIL import Image
import sys
import os
def extract(pdf_path):
doc = pdfium.PdfDocument(pdf_path)
full_text = []
for i, page in enumerate(doc):
# Render page to a high-resolution image
bitmap = page.render(scale=2)
tmp_img = f"/tmp/page_{i}.png"
bitmap.to_pil().save(tmp_img)
# Run OCR (assuming English and Simplified Chinese packs are installed)
text = pytesseract.image_to_string(Image.open(tmp_img), lang='chi_sim+eng')
full_text.append(text)
# Cleanup temporary file
os.remove(tmp_img)
return "\n".join(full_text)
if __name__ == "__main__":
if len(sys.argv) > 1:
print(extract(sys.argv[1]))
```
Then execute the script:
```bash
python3 extract.py /path/to/document.pdf
```
## Security & Sandbox Constraints
- Write temporary images only to `/tmp/` and clean them up immediately after extraction.
- Do not attempt to dynamically download or install language packs via shell commands; notify the user if a specific language is missing.MCP 経由で Tencent Docs の文書を作成、編集、管理するための手順書です。
数式、書式、ブックの構造を保ったまま Excel ファイルを作成・点検・編集するスキルです。
Word と DOCX 文書を扱うための作業指針で、編集後にスタイルや番号、レイアウトが崩れないことに重点を置きます。
コマンドラインから Gmail、Calendar、Drive、Contacts、Sheets、Docs を操作します。
PDFと画像の文字抽出は本文、表、スキャンページの読取りをテキストに整理します。
テーマとスタイルから PPT 資料を自動生成するスキルです。
kdocs-cli で金山文档のクラウド文書を操作する公式スキルです。
自然言語の指示で PDF の指定ページを書き換える小さなツールです。
データ月:2026-09 · ダウンロード数、スター数、インストール数は公開スキルレジストリ(ClawHub、SkillHub)から月単位で集計しています。詳しくはデータの方法論をご覧ください。