-
Notifications
You must be signed in to change notification settings - Fork 49
Open
Description
Version
PyPDFForm=3.3.2
Issue Description
Can't remove radio button border (shown in black).
Two other niggles:
- I'd expect white fill but it has a slight blue hue
- Once a radio button is selected can't unselect all buttons
Code Snippet
from PyPDFForm import PdfWrapper
# from PyPDFForm import FormWrapper
new_form = PdfWrapper("Capital-gains-tax-schedule-2022.pdf").create_widget(
"radio", "7A", 3, [313,447,555], [759,759,759], size=11, button_style="cross", shape="square", bg_color=(0, 0, 0, 0), border_color=(0, 0, 0), border_width=0
)
with open("sample.pdf", "wb+") as output:
output.write(new_form.read())
"""
filled = FormWrapper("sample.pdf").fill(
{
"Date": "22052025",
},
)
with open("output.pdf", "wb+") as output:
output.write(filled.read())
"""
PDF Form Template
Capital-gains-tax-schedule-2022.pdf
Screenshots (if applicable)

Metadata
Metadata
Assignees
Labels
No labels