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

E-signature not showing up in pdf.js viewer #4743

Closed
StevenHarlow opened this issue May 6, 2014 · 32 comments
Closed

E-signature not showing up in pdf.js viewer #4743

StevenHarlow opened this issue May 6, 2014 · 32 comments

Comments

@StevenHarlow
Copy link

I have a document with an e-signature that is not showing up in the pdf.js viewer. The document used zipLogix Digital Ink as their e-signature provider. The document is uploaded into our application with the signature in place, but viewing the document in our app doesn't show the signature. Subsequently downloading the document again confirms the signature wasn't lost in the upload process.

*Note: I'm working on obtaining a document with the same characteristics that does not contain sensitive data.

@timvandermeij
Copy link
Contributor

@StevenHarlow Thank you; we will definitely need an example PDF to look into the issue.

@timvandermeij
Copy link
Contributor

I'm closing this issue for now and we will reopen this when we have an example PDF to test with.

@ashrafulkarim
Copy link

I have the same issue. The signature is not show in the viewer. Is the problem solved?
Here is a signed pdf,
https://dl.dropboxusercontent.com/u/5681461/dev/test-signature.pdf

This signed is not verified. But even with a verified valid signature, the signature field is not shown in the pdf.js viewer.

@Osukaru
Copy link

Osukaru commented Dec 11, 2015

I have the same issue. In my case, the problem is only with invalid signatures. I have a pdf document with two signatures (one is valid and another one is invalid). In others pdf viewers I can see the two signatures impressed on the document, but in pdf.js I cannot. I'm sorry, I can't attach the sample document because it contains client confidential data.

EDITED: It seems that the problem is not only with invalid signatures, in my case the valid signature is a invisible sign.

@Osukaru
Copy link

Osukaru commented Dec 11, 2015

I think simply this functionality is not implemented:

https://github.com/mozilla/pdf.js/blob/master/src/core/annotation.js#L527

    // Hide unsupported Widget signatures.
    if (data.fieldType === 'Sig') {
      warn('unimplemented annotation type: Widget signature');
      this.setFlags(AnnotationFlag.HIDDEN);
    }

If I remove these lines I can see the signature impressed on my document. In the case of the issue attached pdf (https://dl.dropboxusercontent.com/u/5681461/dev/test-signature.pdf) I can see the signature but it appears inversed rotate:

test_pdf

@THausherr
Copy link
Contributor

Visible Signature widgets usually have an appearance stream just like most other annotations, and this one has it. The flipping may be a duplicate of #5946.

@THausherr
Copy link
Contributor

Flipping problem is solved now thatt #5946 is solved.

@robinblandford-d4h
Copy link

Hi folks - wondering if there was any timeline on a fix for this? Many thanks.

@timvandermeij
Copy link
Contributor

There appears to be some progress on digital signature verification in #1076.

@robinblandford-d4h
Copy link

@timvandermeij Thank you so much for the link.

@THausherr
Copy link
Contributor

Weird - a year ago I wrote "Flipping problem is solved" but now nothing is displayed, i.e. the yellow question mark is missing.

@WilliamTambellini
Copy link

Still not solved at least for docs from zipLogix Digital Ink :
https://new.zipformplus.com
Some warnings from pdf.worker.js:
Warning: Unimplemented widget field type "Sig", falling back to base field type.

@genglefr
Copy link

Idd, same problem: Unimplemented widget field type "Sig", falling back to base field type.

Any idea by when we could have an implementation of this widget delivered?
Would be great to know when parsing the PDF that there's a signed area.

@rmhrisk
Copy link

rmhrisk commented Nov 29, 2017

We have implemented a digital signature solution based on PKIjs and PDFjs that is capable of verifying and creating digital signatures. You can see an example of it viewing the US Digital Signature law here.

image

The viewer currently trusts the CAs on the eIDAS Trust List as well the Mozilla trusted S/MIME issuers.

If you encounter any issues email me at ryan@peculiarventures.com with sample files if any.

@sreuter
Copy link

sreuter commented Feb 26, 2018

@rmhrisk Are you going to open source your solution?

@rmhrisk
Copy link

rmhrisk commented Feb 26, 2018

@sreuter most of the libraries have been open sourced already, you can find the components in the https://github.com/PeculiarVentures/.

I want to Open Source the PDF library we built also which lets us work with many different kinds of PDF representations but this will need time to make it ready for public consumption.

I am working with someone on an improved set of examples for PKIjs that would make it easier for others to duplicate what we have done.

@shizhipeng
Copy link

so is there a configuration to enable E-signature in pdf?
we try to comment

if (data.fieldType === 'Sig') {
      warn('unimplemented annotation type: Widget signature');
      this.setFlags(AnnotationFlag.HIDDEN);
    }

while in developing ?
how can we do in npm install a new pkg online?

@rmhrisk
Copy link

rmhrisk commented Sep 12, 2018

There is not.

Disabling this block does not show the signature or it’s starus, it just shows a visual representation of the signature.

Enabling this block without doing the work to verify signature means you will be giving the user a false sense of security relating to the cirectness of the documents displayed.

@jma-9code
Copy link

May be, it's can be set by configuration instead the need of comment this line to render the signature widget ?
Because otherwise it is necessary to fork the code to be able to display the signature visual.

@yunzhongbaihe
Copy link

yunzhongbaihe commented Apr 16, 2019

pdf.js
Warning: Unimplemented widget field type "Sig", falling back to base field type.
How to solve this problem?

@xtsong
Copy link

xtsong commented May 13, 2019

The electronic postback was resolved and chrome failed to execute'postMessage'on'Dedicated Worker GlobalScope': could not be cloned.

@hxlniada
Copy link

since three years ago... any progress?

@hxlniada
Copy link

@yurydelendik pdf.js is just a viewer, Is not verifying digital signature too ambiguous? I can't understand why you do so much.

@Vytek
Copy link

Vytek commented Jul 31, 2019

@hxlniada I think it is very important at least to show widget signature (Graphic Signature) also without verify signature.

@robinblandford-d4h
Copy link

We would also just like to see it. To say "unverified" is fine.

@zhengyuewen
Copy link

电子签章没显示是为什么?

@rmhrisk
Copy link

rmhrisk commented Aug 19, 2019

因为PDF.js不支持数字签名。 查看https://verify.ink。 如果您要进行翻译,我们可以使用它来支持中文。

@rmhrisk
Copy link

rmhrisk commented Aug 19, 2019

If you need digital signature support we created a web component and iframe wrapping our viewer that does support this. See https://verify.ink

@timvandermeij
Copy link
Contributor

Closing since this is a duplicate of #1076.

@fireWinters
Copy link

因为PDF.js不支持数字签名。 查看https://verify.ink。 如果您要进行翻译,我们可以使用它来支持中文。

Thank you very much for the digital signature verification you provided, but our operating environment will be a LAN, so we cannot link to the path you gave for corresponding verification and display. Is there any plug-in that can be downloaded and used? We are looking forward to your reply.

@rmhrisk
Copy link

rmhrisk commented Jan 27, 2021

因为PDF.js不支持数字签名。 查看https://verify.ink。 如果您要进行翻译,我们可以使用它来支持中文。

Thank you very much for the digital signature verification you provided, but our operating environment will be a LAN, so we cannot link to the path you gave for corresponding verification and display. Is there any plug-in that can be downloaded and used? We are looking forward to your reply.

Contact info@hancock.ink for more information

@nullhan
Copy link

nullhan commented May 18, 2022

I have the same problem,After a couple of rounds, people just told me to comment the following code without telling me why,

// _this3.setFlags(_util.AnnotationFlag.HIDDEN);

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

Successfully merging a pull request may close this issue.