Do you own a Debenu Quick PDF Library version 7, 8, 9, 10, 11, 12, 13 or iSEDQuickPDF license? Upgrade to Debenu Quick PDF Library 14 today!
How to identify signed acroform (Signature) |
Post Reply |
Author | |
zannydive
Beginner Joined: 19 Mar 19 Location: Italy Status: Offline Points: 12 |
Post Options
Thanks(0)
Posted: 19 Mar 19 at 10:44AM |
Hi all , I'm testing Debenu SDK library , if I load a pdf that contain some acroforms .I'd like to understand how identify if an acroform type signature it's digitally signed or not. There is a way to do it? Br Marco
Edited by zannydive - 19 Mar 19 at 10:57AM |
|
Ingo
Moderator Group Joined: 29 Oct 05 Status: Offline Points: 3524 |
Post Options
Thanks(0)
|
Hi Marco, i think function GetSignProcessResult could help:
https://www.debenu.com/docs/pdf_library_reference/GetSignProcessResult.php If this won't work regarding your needs, this sample will give you an idea about how to extract form content checking the type (to find signature content): https://www.debenu.com/kb/programmatically-extract-form-field-data-pdf-files/ Cheers and welcome here, Ingo |
|
Cheers,
Ingo |
|
zannydive
Beginner Joined: 19 Mar 19 Location: Italy Status: Offline Points: 12 |
Post Options
Thanks(0)
|
Hi Ingo, thanks for the answer, GetSignProcessResult seems that it's related at the process when you sign . About this sample https://www.debenu.com/kb/programmatically-extract-form-field-data-pdf-files/ it what I used but seems that there are no info about how to identify if the acroform signature was signed or not. I didn't found an exposed method that provide this info. In others pdf library there is but I have difficult to find in debenu. Have you some idea how to do it? Br Marco
|
|
Ingo
Moderator Group Joined: 29 Oct 05 Status: Offline Points: 3524 |
Post Options
Thanks(0)
|
Hi Marco,
if you extract a pdf-form and if there is signature content (check the form field type... look into the sample) ... then a signature is used. If there isn't signature content then not. Another way can be do it by yourself. It's easy. Drectly read the raw pdf content into a stream or string and check for relevant signature syntax. Open a relevant pdf with Notepad will give you an idea what i'm meaning... ;-) |
|
Cheers,
Ingo |
|
zannydive
Beginner Joined: 19 Mar 19 Location: Italy Status: Offline Points: 12 |
Post Options
Thanks(0)
|
Hi Indingo, thanks for the answer. Probably i'm mistaking to expose my question.
If I have a pdf that contain Acroform type Signature using the sample I'm able to identify that it's an Signature Acroform . I'm not able to understand via code if the Signature acroform identified it's Digital Signed or Not. I need understand because if it's not I can Sign Digitally otherwise i should prevent the Digital Signature. Do you know if it's exposed a method for identify it? Or do you know how to do? Thanks again for the Help BR Marco
|
|
Ingo
Moderator Group Joined: 29 Oct 05 Status: Offline Points: 3524 |
Post Options
Thanks(0)
|
I fear i'm not understanding but...
With QuickPDF you can check: If there's a content then it's digitally signed. Without content there's only a field for (future) digitally signing. The library doesn't offer a direct functionality to check the signature. Foxit/Debenu says this: http://www.quickpdflibrary.com/faq/verify-a-signature.php |
|
Cheers,
Ingo |
|
zannydive
Beginner Joined: 19 Mar 19 Location: Italy Status: Offline Points: 12 |
Post Options
Thanks(0)
|
Hi Indingo, thanks for the clafirication and yes you understand correctly. I'm newbie on Debenu Library . Currently form the pdf I can Identify if there are a signature : if(DPL.GetFormFieldType(y)==6) // it's signature |
|
Ingo
Moderator Group Joined: 29 Oct 05 Status: Offline Points: 3524 |
Post Options
Thanks(0)
|
for me content is the value ;-)
But it sounds interesting for me so if you want, you can send me one or two of your signed samples and i'll try to develope a routine for this purpose. |
|
Cheers,
Ingo |
|
zannydive
Beginner Joined: 19 Mar 19 Location: Italy Status: Offline Points: 12 |
Post Options
Thanks(0)
|
Hi Ingo, I prepared 1 pdf that contain 2 signature field: Title-->DigitalSignatureField_0 it's signed Title--> DigitalSignatureFiled_1 it's not signed. Below the result of mine analysys: ========================================= AcroForm Name: DigitalSignatureField_0 AcroForm Type: Signature AcroForm Value: AcroForm Page: 2 AcroForm Height: 40.875 AcroForm Width: 203.625 AcroForm Top: 565.5 AcroForm Left: 57.375 ========================================= AcroForm Name: DigitalSignatureField_1 AcroForm Type: Signature AcroForm Value: AcroForm Page: 2 AcroForm Height: 40.875 AcroForm Width: 202.875 AcroForm Top: 723 AcroForm Left: 58.125 ========================================= You can download from this dbox link : https://www.dropbox.com/s/zsvastc3hfwll5a/Test_Signature.pdf?dl=0 Thanks for the help. Br Marco
Edited by zannydive - 25 Mar 19 at 9:17PM |
|
zannydive
Beginner Joined: 19 Mar 19 Location: Italy Status: Offline Points: 12 |
Post Options
Thanks(0)
|
Hi Ingo, have you had the opportunity to check? Br Marco
|
|
Ingo
Moderator Group Joined: 29 Oct 05 Status: Offline Points: 3524 |
Post Options
Thanks(0)
|
Hi Marco,
i think you know that's only a user-user-forum here. So sometimes you have to wait for an answer some days... I've checked the file now... There are two form fields in the document. The formfield types are both "signature". The first has form field caption "DigitalSignatureField_0" with much content in the relevant form field value. The second has form field caption "DigitalSignatureField_1" but there's no content in the relevant form field value. My resume: There are two signature fields in the document. The first signature field is signed - the second is empty. Try the functionalities from QuickPDF and you can get this facts by yourself ;-) |
|
Cheers,
Ingo |
|
zannydive
Beginner Joined: 19 Mar 19 Location: Italy Status: Offline Points: 12 |
Post Options
Thanks(0)
|
Hi Ingo, thanks for the answer. I didn't know that was user to user.. sorry. I use string AcroFieldValue = DPL.GetFormFieldValueByTitle(AcroFieldTitle) but i'm not able to obtain any info.If you have time could you tell me which functionality you had used for retrive the field value? Thanks for the help. Br Marco |
|
zannydive
Beginner Joined: 19 Mar 19 Location: Italy Status: Offline Points: 12 |
Post Options
Thanks(0)
|
Hi Ingo, sorry... my fault.. I identify and the infor are provide correcly. Thanks for all help |
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |
Copyright © 2017 Debenu. Debenu Quick PDF Library is a PDF SDK. All rights reserved. About — Contact — Blog — Support — Online Store