NizamUlMulk Posted November 22, 2017 Share Posted November 22, 2017 I'm using TUniPDFFrame to show PDF files, but this component doesn't show the advertisement about digital sign. The client need to see that notice. (adj. images) Also, I need to know if an uploaded pdf is digitally signed before save on BD. Could there be any property that indicates whether it is signed or not?. Ex. bool hasSig = false; for (int i = 1; i <= QP.FormFieldCount(); i++) if (QP.GetFormFieldType(i) == 6) // FormFieldType = Signature hasSig = true; taken from http://www.quickpdf.org/forum/how-do-i-detect-that-a-pdf-has-a-digital-signature_topic2529_post10489.html?KW=FormFieldType#10489 Quote Link to comment Share on other sites More sharing options...
Sherzod Posted November 22, 2017 Share Posted November 22, 2017 Hi, // Hide signatures because we cannot validate them. if (data.fieldType === 'Sig') { this.setFlags(AnnotationFlag.HIDDEN); https://github.com/mozilla/pdf.js/search?utf8=%E2%9C%93&q=sig&type= "Solution": You can find these lines in the file ... \pdf.js\build\pdf.worker.js and comment them, but I'm not sure this is the right decision or not ** if you make changes, do not forget to clear your browser's cache Best regards, Quote Link to comment Share on other sites More sharing options...
Stemon63 Posted November 23, 2017 Share Posted November 23, 2017 Good... I will try, I need the same... Thanks, Stefano Quote Link to comment Share on other sites More sharing options...
NizamUlMulk Posted November 23, 2017 Author Share Posted November 23, 2017 Thanks. I've commented those lines, cleaned navigator cache and now .... anything shows the component!!!a black square box only .... Quote Link to comment Share on other sites More sharing options...
Sherzod Posted November 23, 2017 Share Posted November 23, 2017 Hi, Can you check with this signed pdf ? SampleSignedPDFDocument.pdf And which browser are you using ? Quote Link to comment Share on other sites More sharing options...
NizamUlMulk Posted November 23, 2017 Author Share Posted November 23, 2017 Hi, Can you check with this signed pdf ? SampleSignedPDFDocument.pdf And which browser are you using ? Anything seems.... The test browser is Chrome Versión 62.0.3202.94. How can I adjunt a file here? Quote Link to comment Share on other sites More sharing options...
NizamUlMulk Posted November 23, 2017 Author Share Posted November 23, 2017 Hi, Can you check with this signed pdf ? SampleSignedPDFDocument.pdf And which browser are you using ? With Mozilla works! Quote Link to comment Share on other sites More sharing options...
NizamUlMulk Posted January 19, 2018 Author Share Posted January 19, 2018 Any other suggestions to make it work on Chrome?.I Need know if document is signed digitally, not see the sign. Quote Link to comment Share on other sites More sharing options...
diegojmap Posted January 23, 2021 Share Posted January 23, 2021 Do you have this demo? Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.