From 58c2b4e150bfbca0b8eca72e42b64a6281e3cb20 Mon Sep 17 00:00:00 2001 From: jingeli Date: Sat, 27 Jan 2024 21:27:23 -0600 Subject: [PATCH 1/2] PPF-465: probably belongs to api references --- docs/prepare.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/docs/prepare.md b/docs/prepare.md index 1ff00091..e345462d 100644 --- a/docs/prepare.md +++ b/docs/prepare.md @@ -48,9 +48,12 @@ new_form = PdfWrapper("dummy.pdf").create_widget( page_number=1, x=57, y=700, - size=30 + size=30, + button_style="check" ) with open("output.pdf", "wb+") as output: output.write(new_form.read()) ``` + +The `button_style` parameter currently supports three options: `check`, `circle`, and `cross`. From 84fe3d4c0d8ab81a4b5c193a979432d9603c81fa Mon Sep 17 00:00:00 2001 From: jingeli Date: Sat, 27 Jan 2024 21:29:46 -0600 Subject: [PATCH 2/2] PPF-465: this pattern is currently not used --- PyPDFForm/core/patterns.py | 1 - 1 file changed, 1 deletion(-) diff --git a/PyPDFForm/core/patterns.py b/PyPDFForm/core/patterns.py index 9570149d..3a4fa463 100644 --- a/PyPDFForm/core/patterns.py +++ b/PyPDFForm/core/patterns.py @@ -75,5 +75,4 @@ BUTTON_STYLE_PATTERNS = [ {BUTTON_IDENTIFIER: {BUTTON_STYLE_IDENTIFIER: True}}, - {PARENT_KEY: {BUTTON_IDENTIFIER: {BUTTON_STYLE_IDENTIFIER: True}}}, ]