feat(project): 项目完结
This commit is contained in:
15
configs/agent/skills/pdf/scripts/check_fillable_fields.py
Normal file
15
configs/agent/skills/pdf/scripts/check_fillable_fields.py
Normal file
@@ -0,0 +1,15 @@
|
||||
# flake8: noqa
|
||||
# yapf: disable
|
||||
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'
|
||||
)
|
||||
Reference in New Issue
Block a user