Loading...
Loading...
Reads PDF files and extracts text content in Markdown format. Handles tables and multi-page documents. Use when needing to read PDF documents. Requires pdfplumber package.
npx skill4agent add childbamboo/claude-code-marketplace-sample pdf-reader# WSL環境でPythonスクリプトを実行
wsl python3 scripts/read_pdf.py "/mnt/c/path/to/file.pdf"wsl pip3 install pdfplumberUser: "C:\Users\keita\repos\guideline.pdf を読み込んで"
Assistant:
1. Windowsパスを WSL パスに変換: /mnt/c/Users/keita/repos/guideline.pdf
2. wsl python3 scripts/read_pdf.py を実行
3. 抽出されたテキストを Markdown 形式で表示User: "ガイドライン.pdf を Markdown に変換して保存"
Assistant:
1. scripts/read_pdf.py でテキスト抽出
2. Markdown形式で構造化(ページごとに見出し、テーブルも含む)
3. Write ツールで ガイドライン.md に保存
4. 保存完了を報告C:\/mnt/c/wsl python3 scripts/read_pdf.py# [PDFファイル名]
**Total Pages:** 10
---
## Page 1
[ページ1のテキスト内容]
### Tables
**Table 1:**
| 列1 | 列2 | 列3 |
| --- | --- | --- |
| データ1 | データ2 | データ3 |
---
## Page 2
[ページ2のテキスト内容]
---scripts/read_pdf.pypython scripts/read_pdf.py <file_path>wsl pip3 install pdfplumber# 日本語対応の確認
wsl locale
# UTF-8 が含まれていることを確認C:\Users\.../mnt/c/Users/...D:\Projects\.../mnt/d/Projects/...\/pdf.pages[0:5]extract_tables()