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

Identical Fields cause crash!! #36

Open
MichaelWoodc opened this issue Sep 18, 2022 · 0 comments
Open

Identical Fields cause crash!! #36

MichaelWoodc opened this issue Sep 18, 2022 · 0 comments

Comments

@MichaelWoodc
Copy link

MichaelWoodc commented Sep 18, 2022

I have fields for the same thing on different pages, but the program seems to crash when the program tries to read the PDF during the read/write dictionary to PDF command. When I rename one field it works again.

When I do:
fillpdfs.write_fillable_pdf('blankpdf.pdf', 'completed.pdf', data_dict, flatten=False)

I get:
Traceback (most recent call last): File "<string>", line 1, in <module> File "C:\Users\micha\AppData\Roaming\Python\Python38\site-packages\fillpdf\fillpdfs.py", line 211, in write_fillable_pdf key = target['/Parent'][ANNOT_FIELD_KEY][1:-1] + '.' + key TypeError: 'NoneType' object is not subscriptable

and in VS code in the coding window itself during debugging:

Exception has occurred: TypeError 'NoneType' object is not subscriptable File "C:\Users\micha\DANVA2\main_program\testpdfoutput2.py", line 6, in <module> fillpdfs.write_fillable_pdf('blankpdf.pdf', 'completed.pdf', data_dict, flatten=False)

All I have to do is rename one field to have a different name, however, I want multiple fields with the same name! Help!

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