Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Checkbox Lables or titles not being retrieved. #49

Open
ZohaibRamzan opened this issue Nov 20, 2023 · 0 comments
Open

Checkbox Lables or titles not being retrieved. #49

ZohaibRamzan opened this issue Nov 20, 2023 · 0 comments

Comments

@ZohaibRamzan
Copy link

I have a form in which there are some checkboxes. I am reading field names. All names are correctly retrieved except for the check boxes.

Here is the code.

import fillpdf
from fillpdf import fillpdfs

pdf_path = "C:\\Users\\PycharmProjects\\GenForm\\1003.pdf"

fields = fillpdfs.get_form_fields(pdf_path)#, sort=False, page_number=None)
print(fields)

The output looks like this:
{'Check Box1': '', 'Check Box4': 'Yes', 'CB-1-1': 'On', 'CB-1-2': '', 'CB-1-3': '', 'CB-1-4': '', 'CB-1-5': 'On', 'Agency Case Number': 'asdasd', 'Lender Case Number': 'sadsadsa'}

I do not want the keys like 'CB-1-1' instead it should give me its lable like for which check box is being maked as yes or empty.
Is there a way to do this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant