From dc7fe796480338ba307fd9c33b2e490730934808 Mon Sep 17 00:00:00 2001 From: Martin Thoma Date: Sun, 10 Dec 2023 12:26:29 +0100 Subject: [PATCH] DOC: Note in reading form data --- docs/user/forms.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/docs/user/forms.md b/docs/user/forms.md index ff729d059..3cc29ee00 100644 --- a/docs/user/forms.md +++ b/docs/user/forms.md @@ -8,6 +8,9 @@ from pypdf import PdfReader reader = PdfReader("form.pdf") fields = reader.get_form_text_fields() fields == {"key": "value", "key2": "value2"} + +# You can also get all fields: +fields = reader.get_fields() ``` ## Filling out forms