Agent skill
pdf-text-extractor-encrypted-pdfs
Sub-skill of pdf-text-extractor: Encrypted PDFs (+2).
Install this agent skill to your Project
npx add-skill https://github.com/vamseeachanta/workspace-hub/tree/main/.claude/skills/_archive/data/documents/pdf-text-extractor/encrypted-pdfs
SKILL.md
Encrypted PDFs (+2)
Encrypted PDFs
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...
Scanned PDFs (OCR)
# 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.*
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
gsd-complete-milestone
Archive completed milestone and prepare for next version
gsd-reapply-patches
Reapply local modifications after a GSD update
gsd-verify-work
Validate built features through conversational UAT
gsd-thread
Manage persistent context threads for cross-session work
clinical-trial-protocol
Generate clinical trial protocols for medical devices or drugs through a modular, waypoint-based architecture with research-only and full protocol modes.
single-cell-rna-qc
Performs quality control on single-cell RNA-seq data (.h5ad or .h5 files) using scverse best practices with MAD-based filtering and comprehensive visualizations.
Didn't find tool you were looking for?