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

Visual signature support #20

Open
zosocanuck opened this issue Nov 16, 2023 · 5 comments
Open

Visual signature support #20

zosocanuck opened this issue Nov 16, 2023 · 5 comments

Comments

@zosocanuck
Copy link

I am testing this library/utility and noticed support for visual signatures, however when attempting to sign a sample PDF, the visual signature doesn't appear at least in the latest version of Adobe. Has this been tested?

@vanbroup
Copy link
Member

There is a test case for visual signatures:

sign/pdfvisualsignature_test.go

I don't have tested myself this recently. Can you do a test based on the unit test (including) the file?

@karelbilek
Copy link

karelbilek commented Nov 23, 2023

It doesn't show because the Rect is 0 0 0 0.

However even if I change the Rect I see nothing, I think because there is no reference to any other visual object...?

(when I change the rect, Acrobat says it's "visible signature" but then shows nothing)

@karelbilek
Copy link

Ahhh that's because it's AcroForm stuff, so I would also need to set appearance and /AP object... ugh no. AcroForms = hell. :D

@vanbroup
Copy link
Member

If you have a working example it would be great to add this to the documentation!

@karelbilek
Copy link

I don't think it can be done just with this library; if I look at other PDFs with visual signatures (made by Acrobat I think), it has AP appearence streams, and I am not sure this library can do it.

Maybe if it is somehow used with conjunction with pdfcpu https://github.com/pdfcpu/pdfcpu ... but that gets me thinking it would be maybe better to add the signing functionality into pdfcpu

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

3 participants