Skip to content

Commit

Permalink
Merge pull request #466 from chinapandaman/PPF-465
Browse files Browse the repository at this point in the history
PPF-465: update docs for button style
  • Loading branch information
chinapandaman authored Jan 28, 2024
2 parents e222cde + 84fe3d4 commit 072497c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
1 change: 0 additions & 1 deletion PyPDFForm/core/patterns.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,5 +75,4 @@

BUTTON_STYLE_PATTERNS = [
{BUTTON_IDENTIFIER: {BUTTON_STYLE_IDENTIFIER: True}},
{PARENT_KEY: {BUTTON_IDENTIFIER: {BUTTON_STYLE_IDENTIFIER: True}}},
]
5 changes: 4 additions & 1 deletion docs/prepare.md
Original file line number Diff line number Diff line change
Expand Up @@ -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`.

0 comments on commit 072497c

Please sign in to comment.