I noticed that when I create a fillable PDF from https://www.sejda.com/, the checkbox fields are treated as radio buttons inside of PyPDFForm. Attached is an otherwise blank PDF with a single checkbox generated at that site.
I suspect it's doing something nonstandard, but the text fields seem to work fine, and other PDF software (e.g. Preview on macos) renders the checkbox as a checkbox and lets me check it.
Code Snippet
In [1]: from PyPDFForm import PdfWrapper
In [2]: pdf = PdfWrapper("new_document.pdf")
In [3]: pdf.widgets
Out[3]: {'test_checkbox': <PyPDFForm.middleware.radio.Radio at 0x10db8c370>}
In [4]: pdf.schema
Out[4]:
{'type': 'object',
'properties': {'test_checkbox': {'type': 'integer', 'maximum': 0}}}
Version
PyPDFForm=1.4.18
Issue Description
I noticed that when I create a fillable PDF from https://www.sejda.com/, the checkbox fields are treated as radio buttons inside of PyPDFForm. Attached is an otherwise blank PDF with a single checkbox generated at that site.
I suspect it's doing something nonstandard, but the text fields seem to work fine, and other PDF software (e.g. Preview on macos) renders the checkbox as a checkbox and lets me check it.
Code Snippet
PDF Form Template
new_document.pdf
Screenshots (if applicable)