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

Cannot parse checkbox's Description #757

Open
freaksie opened this issue Nov 12, 2024 · 0 comments
Open

Cannot parse checkbox's Description #757

freaksie opened this issue Nov 12, 2024 · 0 comments

Comments

@freaksie
Copy link

freaksie commented Nov 12, 2024

Version

PyPDFForm=1.4.37

Issue Description

Unable to parse the description for the checkbox. This is important info for someone who has no reference to the original template (PDF).

Code Snippet

import json
from PyPDFForm import PdfWrapper
pdf_form_schema = PdfWrapper("i-90.pdf").schema
print(json.dumps(pdf_form_schema, indent=4, sort_keys=True))

Sample of Json Output

{
        "P1_checkbox4[1]": {
            "type": "boolean"
        },
        "P1_checkbox4[2]": {
            "type": "boolean"
        },
        "P1_checkbox6c_Unit[0]": {
            "type": "boolean"
        },
        "P1_checkbox6c_Unit[1]": {
            "type": "boolean"
        },
        "P1_checkbox6c_Unit[2]": {
            "type": "boolean"
        }
}


PDF Form Template

i-90.pdf

Screenshots (if applicable)

image

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