Skip to content

PPF-1134: Can't remove radio button border #1134

@flywire

Description

@flywire

Version

PyPDFForm=3.3.2

Issue Description

Can't remove radio button border (shown in black).

Two other niggles:

  1. I'd expect white fill but it has a slight blue hue
  2. 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)

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions