🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
13 lines
362 B
Python
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")
|