'int' object has no attribute 'value' on sign_pdf #248
Replies: 3 comments 1 reply
-
Hi @ilpadrinohack, The fact that your second example doesn't work is to be expected: the stream passed into the As for the first example: please post the full stack trace. It's somewhat likely that the error you're seeing was present all along, but surfaced only now due to various deep changes in the validation code. Whether it's a data correctness issue or a bug is impossible to tell without a stack trace. EDIT: moving this to a discussion. Will create an issue if/when we identify a concrete bug. |
Beta Was this translation helpful? Give feedback.
-
Thanks Matthias:
Hope this can help Thanks |
Beta Was this translation helpful? Give feedback.
-
SOLVED
And after I get the error mentioned above. Removing "seed_value_dict" from SigFieldSpec as follow: works perfectly. Thanks Matthias |
Beta Was this translation helpful? Give feedback.
-
Hi Matthias and everybody:
With the update of pyHanko from 0.13 o the latest one, I have a problem when trying to sign a pdf document. This is my code:
And the error is "'int' object has no attribute 'value'"
I think (not sure) that the problem is on the sign_pdf function.
If I change my code calling in a different way to IncrementaPdfFileWriter function as follow:
I get the error "Illegal PDF header"
I have been checking the documentation and haven't been able to notice any change in the implementation in the sign_pdf call.
Any help will be appreciated.
Thanks in advance
Beta Was this translation helpful? Give feedback.
All reactions