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 can I sign with picture #6

Open
jackeyWanFei opened this issue Oct 27, 2019 · 4 comments
Open

How can I sign with picture #6

jackeyWanFei opened this issue Oct 27, 2019 · 4 comments

Comments

@jackeyWanFei
Copy link

I want to make a digital signature with a picture, and visible
I'm found Rect[0 0 0 0 ] in code, and i change it as Rect[50 50 200 200], there is a transparent picture with signature

image

Do you know what is the data format of picture

Thanks for reading

@therpobinski
Copy link

Hi, Have you managed to solve this problem? I would like help, I want to add the signature information in a position, I am not using pdfKit, but a pdf that I read from my disk.
Thank you!

@jackeyWanFei
Copy link
Author

Hi, Have you managed to solve this problem? I would like help, I want to add the signature information in a position, I am not using pdfKit, but a pdf that I read from my disk.
Thank you!

Hi, sorry about it, I just solve it recently, by only new sig. Now I try to append sig. I used this library, pdf.js and jspdf.js.
First, i got a signed PDF from my colleague. And the PDF signed with iText on Android.
When i got it, i decode it with pdf.js, and console.log() the orginal data of signature.
But I just got some ojb except the Image data. the image data is a binarystring.
So, it used jspdf.js to create a new pdf, this is very helpful. It can convert a image to binary and make a SMask obj.

@jackeyWanFei
Copy link
Author

I found a lot of documents about. And asked many people, I understood some format of pdf

@jackeyWanFei
Copy link
Author

Hi, Have you managed to solve this problem? I would like help, I want to add the signature information in a position, I am not using pdfKit, but a pdf that I read from my disk.
Thank you!

my project

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

2 participants