-
-
Notifications
You must be signed in to change notification settings - Fork 75
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
Signature invisible in Adobe Reader but visible in other viewers #416
Comments
Hi, this kind of problem is unfortunately impossible to diagnose without a copy of the specific input document that's giving you issues. Can you provide one? I'm also assuming that the actual configuration you're using to populate the visible field is somewhere in your configuration file, can you share that as well? |
I have encountered this behavior when AcroForm ->NeedAppearances is present and set to 'true', when document is not signed PDF acrobat reader displays signature field ok, but when i sign it using pyhanko, NeedAppereances is copied over with signature to this block:
And signature field become invisible, it also disappear from list of signatures... (So PDF in PDF acrobat reader looks like unsigned) All other PDF readers are fine, just PDF acrobat reader is doing this..., when i remove NeedAppearances or set it to false in unsigned PDF and sign it using pyhanko all is well in PDF acrobat reader... From my testing it looks like /NeedAppearances true carried over to signature block is the issue? I'm also attaching my testing PDFs:
signed-61.2-need-app-false.pdf 54.2 means PDF generated using Weasyprint 54.2 |
Huh, interesting. If NeedAppearances is the culprit, that kind of tracks. It's deprecated in PDF 2.0 and probably ignored by all non-Acrobat processors anyhow. The PDF 2.0 requirement is that all fields need to supply appearance streams, so NeedAppearances is pretty much obsolete. Nonetheless, I would assume that NeedAppearances only kicks in on fields that don't already have an appearance stream... The fact that that's not what you observe is indeed strange. If systematically removing NeedAppearances solves the problem, I'm happy to do that (or perhaps hiding it behind a toggle). I don't really have the energy to hunt down all the quirks of Acrobat these days :) |
Hmm i'm going to check if AP is set for signature field... |
Ok affected field does have AP specified... |
@MatthiasValvekens i think that not passing NeedAppearances to signature block after EOF as a option should do the trick (not sure what should be the default behavior tho, up to you) |
Thanks for that analysis. I think removing NeedAppearances by default is probably a sane thing to do. I plan to cut a release later this month, this can probably be squeezed in. |
Describe the bug
When I create a visible signature, I can see it in Preview and Skim, but not o Adobe Reader.
The visible signature display should be about halfway down, centralized in the page.
To Reproduce
Open in Skim and Preview, the signature is visible, but Acrobat Reader does not display it.
Expected behavior
I expect all PDF viewers to display the visible part of the signature.
The pyhanko signature validates digitally, but it might pose bureaucratic impediments if the officer cannot see any visual mark.
Environment (please complete the following information):
The text was updated successfully, but these errors were encountered: