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

How-to make signature visible on PDF #26

Closed
vidigas opened this issue Jun 27, 2019 · 17 comments
Closed

How-to make signature visible on PDF #26

vidigas opened this issue Jun 27, 2019 · 17 comments

Comments

@vidigas
Copy link

vidigas commented Jun 27, 2019

Hi there,

thanks a lot for the lib.

I have implemented de signature with . a p12 file on the pdf and I am being able to check the signature on the available validation tools, but the signature is no visible on pdf itself when open on regular pdf viewer.

Is it possible to do so?
Let a visible mark that the document has being signed.

Thanks

@vbuch
Copy link
Owner

vbuch commented Jun 27, 2019

You can add some "drawing" or text to the document to state that. You can also make the Widget visible. But it won't be clickable in e.g. Chrome. Only in Adobe's products (and probably others who have implementation of pdf signature verification). I hope I'll be able to demonstrate drawing a signature with PdfKit in version 1+. Wont happen for 1.0. And not sure if i'll be able to do it with non-pdfkit code.

@vidigas
Copy link
Author

vidigas commented Jun 27, 2019

Sorry for the silly question, but how to make the widget visible?
First time dealing with pdf's. I'm heaving a bit of a hard time here...

@vbuch
Copy link
Owner

vbuch commented Jun 28, 2019

To make the widget clickable (in Adobe Reader), you need to set a non-zero rect here: https://github.com/vbuch/node-signpdf/blob/develop/src/helpers.js#L35
This will just add some dot-bordered rectangle that is clickable and opens the signatures panel.
If you add some text to the same place like "This document is digitally signed" it will llook like you are clicking the text. Those are two totally separate things. Imagine the clickable element being absolutely positioned on top of the text.

@arpitbhs
Copy link

arpitbhs commented Jul 24, 2019

@vbuch Hi Valery. Sorry to bump this, but I put a non-zero rect while creating the widget as per your suggestion, to get a clickable area, but it doesn't seem to work for me. Or maybe I'm understanding this wrong. Can you please let me know where and how to update my code to get it working? FYI, the link in your above comment doesn't exist anymore.
EDIT: I tested in Adobe Reader, where i can see the clickable areas for other pdfs but not through this code.

@PedroS11
Copy link

PedroS11 commented Oct 4, 2019

I tried to set Rect to non-zero however it doesn't show any widget. Can you give a sample code or some help? Because we can't see the dot-bordered rectangle

@jackeyWanFei
Copy link

@vbuch I solved it in My vue project yestoday.

@jackeyWanFei
Copy link

But not used in node. I used pdfsign.js library

@hmpvillegas
Copy link

But not used in node. I used pdfsign.js library

can you post and explain it here? thanks

@jackeyWanFei
Copy link

But not used in node. I used pdfsign.js library

can you post and explain it here? thanks

I'll push it out next few days

@jackeyWanFei
Copy link

But not used in node. I used pdfsign.js library

can you post and explain it here? thanks

my project

@lucasmassi
Copy link

This lib is top for your issue https://github.com/chunyenHuang/hummusRecipe

@lucasmassi
Copy link

Only save one copy of your PDF and use the new with visible signature to be signed.

@stale
Copy link

stale bot commented Apr 13, 2020

This issue has been automatically marked as stale because it has not had activity in the past 90 days. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the wontfix label Apr 13, 2020
@stale stale bot closed this as completed Apr 24, 2020
@nparween
Copy link

I want a sample code to make the signature visible in existing PDF.

@pinkfloydsito
Copy link

Have you found any solution in order to show the signature? I can't make it visible with this library.

@lucasmassi
Copy link

lucasmassi commented Sep 22, 2020 via email

@amitraky
Copy link

amitraky commented Oct 7, 2020

non-pdfkit

are you implement it without pdfkit

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

10 participants