Files
claude-skills/skills/pdf/scripts/check_fillable_fields.py
Felix Zösch 43f3a0d0b4 Initial commit: Add Home Assistant skill
- Add homeassistant.skill (packaged version)
- Add skills/homeassistant source directory
- Include scripts for API interaction and validation
- Add comprehensive reference documentation
- Include automation templates
- Add README and .gitignore
2025-12-16 10:17:11 +01:00

13 lines
362 B
Python

import sys
from pypdf import PdfReader
# Script for Claude to run to determine whether a PDF has fillable form fields. See forms.md.
reader = PdfReader(sys.argv[1])
if (reader.get_fields()):
print("This PDF has fillable form fields")
else:
print("This PDF does not have fillable form fields; you will need to visually determine where to enter data")