Jump to content

Digital Sign in PDF


NizamUlMulk

Recommended Posts

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

 
 
 

 

post-2027-0-10154200-1511369050_thumb.png

post-2027-0-59716000-1511369364_thumb.png

post-2027-0-32984700-1511369378_thumb.png

Link to comment
Share on other sites

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

 

post-906-0-22966300-1511380614_thumb.png

 

Best regards,

Link to comment
Share on other sites

  • 1 month later...
  • 3 years later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...