用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/vamseeachanta/workspace-hub --skill pdf-text-extractor-encrypted-pdfs命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
基于 SOC 职业分类
正在显示 SKILL.md
| name | pdf-text-extractor-encrypted-pdfs |
| description | Sub-skill of pdf-text-extractor: Encrypted PDFs (+2). |
| version | 1.2.0 |
| category | data |
| type | reference |
| scripts_exempt | true |
def extract_with_password(filepath, password=None):
doc = fitz.open(filepath)
if doc.is_encrypted:
if password:
if not doc.authenticate(password):
raise ValueError("Invalid password")
else:
raise ValueError("PDF is encrypted")
# Continue extraction...
# For scanned PDFs, use OCR
import pytesseract
from PIL import Image
def extract_with_ocr(filepath):
doc = fitz.open(filepath)
pages = []
for page in doc:
*See sub-skills for full details.*
## Large PDFs
```python
def extract_large_pdf(filepath, max_pages=None):
"""Extract with memory-efficient streaming."""
doc = fitz.open(filepath)
for page_num, page in enumerate(doc, 1):
if max_pages and page_num > max_pages:
break
text = page.get_text()
*See sub-skills for full details.*