fillpdf icon indicating copy to clipboard operation
fillpdf copied to clipboard

'Check Box': 'Yes' does not check boxes in PDF.

Open nathanramoscfa opened this issue 3 years ago • 2 comments

SOLUTION: Instead of 'Yes', it is 'On'. PLEASE UPDATE THE DOCUMENTATION.

The docs on checking off boxes are shown below. 'Yes' did not work to check boxes within my PDF. Purely by accident, I found the solution is actually 'On'. Now the appropriate check box in my PDF is checked off.

data_dict = {'Address 1 Text Box': '500 West Main Street',
'Driving License Check Box': 'On',
'Language 1 Check Box': 'On',}

fillpdfs.write_fillable_pdf('blank.pdf', 'new.pdf', data_dict)

nathanramoscfa avatar Feb 21 '22 17:02 nathanramoscfa

'On' checked your checkbox off? For me, it is only putting a border/edge around the check box (no "x" or tick).

Edit: '1' works for me

Kucki2018 avatar Mar 16 '23 23:03 Kucki2018

The solution I found for that issue was to manually check the box, save the file, and read its fields using fillpdfs.get_form_fields. Then, I verified the value in the checkbox field, which in my case was 'Ja'.

michel-meneses avatar May 27 '24 13:05 michel-meneses