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

PDF Digital Signatures warning message not correct #2486

Closed
larrykluger opened this issue Dec 19, 2012 · 5 comments
Closed

PDF Digital Signatures warning message not correct #2486

larrykluger opened this issue Dec 19, 2012 · 5 comments
Labels

Comments

@larrykluger
Copy link

If a pdf is signed with a standard digital signature, then the viewer:

  1. Only displays the base level text/images of the pdf. (Doesn't show the digital signatures nor indicates that they exist in the document)
  2. Gives a warning message that the "document might not be displayed correctly"

Issue: the warning message is incorrect -- the document will NOT be displayed correctly because digital signatures are not yet handled by the viewer.

Some test pdf's that were digitally signed:
http://ftp.arx.com/Samples/signed_with_graphical_sig.pdf -- signed with a private certificate
http://ftp.arx.com/Samples/signed_with_no_graphical_sig.pdf -- signed with a digital signature but no graphical signature – a typical application-generated file

It would be great if the error message (not warning message) said that the document includes one or more digital signatures.

If you'd like to digitally sign your own pdf documents, I can provide some no-cost licenses for our signing software for your testing purposes.

Regards,
Larry Kluger
larryk@arx.com

More about digital signatures
There are compatible US and international standards for digitally signing pdfs, and other types of datasets (xml, etc).
For pdf's, the standards are: ISO 32000-1:2008 FIPS 186-3 from NIST and ETSI.org PAdES TS 102 778 (search for PAdES here)

The signatures can be correctly viewed when using Adobe reader (standalone or as a plugin), and other pdf viewers too. See below for more info.

The standards are obtuse and have many options that are either usually or rarely used by the digital signature ISV community. If you would like more info about this or interoperability issues, please let us know. ARX is 25 years old and we have a great deal of development expertise in these cryptographic issues.

@samm-git
Copy link

This is a great feature to have. E.g. in Czech Republic it is possible to use singed PDF (if you have key from one of the approved CA`s) for official communication with government services. This is why i am still using Acrobat Reader/Linux, because it is only viewer with such functionality.

@samm-git
Copy link

@taewong - if you have nothing to do, please do not spam. Your comment is totally useless and offtopic.

@timvandermeij
Copy link
Contributor

The first PDF file gives the following in the console:

Warning: TODO: unimplemented annotation type: Widget signature
Warning: TODO: unimplemented annotation type: Widget

So, you're right that feature is missing. The second PDF gives a more serious error message (sorry, partly Dutch...):

XRef_getEntry@resource://pdf.js/build/pdf.js:5625
XRef_fetch@resource://pdf.js/build/pdf.js:5644
XRef_fetchIfRef@resource://pdf.js/build/pdf.js:5630
Dict_get@resource://pdf.js/build/pdf.js:4803
getDefaultAppearance@resource://pdf.js/build/pdf.js:6099
Annotation@resource://pdf.js/build/pdf.js:6144
WidgetAnnotation@resource://pdf.js/build/pdf.js:6371
Annotation_fromRef@resource://pdf.js/build/pdf.js:6319
pdfjsWrapper/Page.prototype.annotations@resource://pdf.js/build/pdf.js:929
NetworkPdfManager_ensureHelper@resource://pdf.js/build/pdf.js:638
NetworkPdfManager_ensure@resource://pdf.js/build/pdf.js:630
Page_getOperatorList@resource://pdf.js/build/pdf.js:851
pdfjsWrapper/wphSetup/wphSetupRenderPage/@resource://pdf.js/build/pdf.js:37057
runHandlers@resource://pdf.js/build/pdf.js:1875
XRef_getEntry@resource://pdf.js/build/pdf.js:5625
XRef_fetch@resource://pdf.js/build/pdf.js:5644
XRef_fetchIfRef@resource://pdf.js/build/pdf.js:5630
Dict_get@resource://pdf.js/build/pdf.js:4803
getDefaultAppearance@resource://pdf.js/build/pdf.js:6099
Annotation@resource://pdf.js/build/pdf.js:6144
WidgetAnnotation@resource://pdf.js/build/pdf.js:6371
Annotation_fromRef@resource://pdf.js/build/pdf.js:6319
pdfjsWrapper/Page.prototype.annotations@resource://pdf.js/build/pdf.js:929
Page_getAnnotationsData@resource://pdf.js/build/pdf.js:916
NetworkPdfManager_ensureHelper@resource://pdf.js/build/pdf.js:640
NetworkPdfManager_ensure@resource://pdf.js/build/pdf.js:630
pdfjsWrapper/wphSetup/wphSetupGetAnnotations/@resource://pdf.js/build/pdf.js:37040
runHandlers@resource://pdf.js/build/pdf.js:1875
Er is een probleem opgetreden bij het renderen van de pagina. PDF.js versie 0.8.388 (build 02906d7)
Bericht: e is undefined
Stack: XRef_getEntry@resource://pdf.js/build/pdf.js:5625
XRef_fetch@resource://pdf.js/build/pdf.js:5644
XRef_fetchIfRef@resource://pdf.js/build/pdf.js:5630
Dict_get@resource://pdf.js/build/pdf.js:4803
getDefaultAppearance@resource://pdf.js/build/pdf.js:6099
Annotation@resource://pdf.js/build/pdf.js:6144
WidgetAnnotation@resource://pdf.js/build/pdf.js:6371
Annotation_fromRef@resource://pdf.js/build/pdf.js:6319
pdfjsWrapper/Page.prototype.annotations@resource://pdf.js/build/pdf.js:929
NetworkPdfManager_ensureHelper@resource://pdf.js/build/pdf.js:638
NetworkPdfManager_ensure@resource://pdf.js/build/pdf.js:630
Page_getOperatorList@resource://pdf.js/build/pdf.js:851
pdfjsWrapper/wphSetup/wphSetupRenderPage/@resource://pdf.js/build/pdf.js:37057
runHandlers@resource://pdf.js/build/pdf.js:1875
Warning: Unhandled rejection: TypeError: e is undefined

@yurydelendik
Copy link
Contributor

related #1076

@timvandermeij
Copy link
Contributor

Closing since this is a duplicate of #1076.

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

No branches or pull requests

4 participants