Add script to check if PDF has fillable form fields

This commit is contained in:
SuperUser committed 2026-02-27 13:09:08 +00:00
1 parent de11e41cbc
commit ddff3bb9e5
1 file changed
+11
@@ -0,0 +1,11 @@
import sys
from pypdf import PdfReader
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")