Files
gh-jhs-chatfield-claude-fil…/skills/extracting-form-fields/scripts/check_fillable_fields.py
2025-11-30 08:25:58 +08:00

13 lines
305 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")