Replies: 1 comment 1 reply
-
The best way to do this is to fill the date field first, and then sign in the signature field. But pyHanko currently doesn't have an API for populating non-signature fields. It's a long-requested feature though (see #35) that I haven't gotten to for lack of bandwidth and other priorities. PRs welcome; it's probably not terribly hard, but getting it right requires some PDF chops. The way you did it probably technically produces an invalid PDF (the field value of that date field is probably supposed to be a string, not a signature), but depending on what you want to use it for that may or may not be an issue. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
On my pdf document, I have a signature field and a date field in two different places on the same page.
I successfully managed to sign twice, with a text stamp of the signer's name in one box and a text stamp of the current date in the other box, but I get the impression that that is not how this is supposed to be done.
Assuming that I'm not wrong, is there a way for me to render text in two different places on the page with one signing? I checked the documentation several times but was unable to find anything that might work. Was I supposed to use a separate pdf library to append the date field?
If, however, signing twice is perfectly valid, then I'll just go with that since it already works.
Beta Was this translation helpful? Give feedback.
All reactions