Summary
PDFファイルからテキストを抽出する。macOS標準のPDFKitを使用し、外部依存なしで動作する。「PDFを読んで」「PDFからテキスト抽出」「PDF の内容を教えて」「PDFをテキストに起こして」「PDFをテキスト化」などのリクエストで使用する。
schroneko/skills
PDFファイルからテキストを抽出する。macOS標準のPDFKitを使用し、外部依存なしで動作する。「PDFを読んで」「PDFからテキスト抽出」「PDF の?
npx skills add schroneko/skills --skill pdf-to-text
PDFファイルからテキストを抽出する。macOS標準のPDFKitを使用し、外部依存なしで動作する。「PDFを読んで」「PDFからテキスト抽出」「PDF の内容を教えて」「PDFをテキストに起こして」「PDFをテキスト化」などのリクエストで使用する。
Related neighbors and high-traction skills in the same topics — useful to compare before installing.
Use for Azure AI: Search, Speech, OpenAI, Document Intelligence. Helps with search, vector/hybr…
568.2K installsUse this skill any time a .pptx or .potx file is involved in any way — as input, output, or bot…
216.8K installsUse this skill whenever the user wants to do anything with PDF files. This includes reading or …
192.4K installsUse this skill whenever the user wants to create, read, edit, or manipulate Word documents (.do…
184.5K installsUse this skill any time a spreadsheet file is the primary input or output. This means any task …
165K installsOther skills from schroneko/skills · top by installs.
npx skills add schroneko/skills
Declared targets from SKILL.md / docs. Unmarked agents are not listed — the skill may still install via the CLI.
main
Files included with this skill beyond the listing page.
SKILL.md
3,537 B
SUMMARY.md
334 B
macOS 標準の PDFKit と Vision framework を使用して PDF からテキストを抽出する。外部依存なし。
scripts/extract.sh "PDFファイルのパス" [モード] [ページ範囲]
| モード | 説明 |
|---|---|
auto |
PDFKit で抽出し、500 バイト未満または文字化けなら Vision OCR(デフォルト) |
pdfkit |
PDFKit のみ使用(テキストレイヤーがある PDF 向け) |
ocr |
Vision OCR のみ使用(スキャン PDF、画像 PDF、または常に OCR したい場合向け) |
| 例 | 説明 |
|---|---|
1-10 |
1〜10 ページ |
5 |
5 ページのみ |
10- |
10 ページ〜最後 |
-5 |
1〜5 ページ |
- 抽出結果が 500 バイト未満(スキャン PDF と判断) - 抽出結果に文字化けパターンを検出(CID フォント問題)
なし(すべて macOS 標準機能)
{PDFファイル名}.txt(抽出方法によらず統一)scripts/batch.sh "PDFディレクトリ" [並列数]
| 引数 | 説明 | デフォルト |
|---|---|---|
| PDFディレクトリ | PDF ファイルが含まれるディレクトリ | カレントディレクトリ |
| 並列数 | 同時処理数 | 12 |
.txt ファイルを作成<PDFディレクトリ>/batch-processing.log に保存[2025-01-05 12:34:56] === PDF Batch Processing Started ===
[2025-01-05 12:34:56] Total PDFs: 86
[2025-01-05 12:34:56] To process: 85
[2025-01-05 12:34:57] OK: ファイル名.pdf (12.3s)
...
[2025-01-05 12:40:00] --- Summary ---
[2025-01-05 12:40:00] Processed: 85
[2025-01-05 12:40:00] Total time: 304.5s
単一ファイル処理(extract.sh)も [TIMING] タグで処理時間を stderr に出力する:
[TIMING] PDFKit: 0.368s
[TIMING] Vision OCR: 13.142s
[TIMING] Total: 13.510s