NizamUlMulk Posted November 22, 2017 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
Sherzod Posted November 22, 2017 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
Stemon63 Posted November 23, 2017 Posted November 23, 2017 Good... I will try, I need the same... Thanks, Stefano Quote
NizamUlMulk Posted November 23, 2017 Author 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
Sherzod Posted November 23, 2017 Posted November 23, 2017 Hi, Can you check with this signed pdf ? SampleSignedPDFDocument.pdf And which browser are you using ? Quote
NizamUlMulk Posted November 23, 2017 Author 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
NizamUlMulk Posted November 23, 2017 Author Posted November 23, 2017 Hi, Can you check with this signed pdf ? SampleSignedPDFDocument.pdf And which browser are you using ? With Mozilla works! Quote
NizamUlMulk Posted January 19, 2018 Author 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
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.