Spire.PDF is a professional PDF library applied to creating, writing, editing, handling and reading PDF files without any external dependencies. Get free and professional technical support for Spire.PDF for .NET, Java, Android, C++, Python.

Fri Feb 02, 2018 5:51 am

Hi

I am exploring Spire.pdf library for our requirement Digital Signature in existing PDF file , currentlyI am doing POC using free spire.pdf
I added digital signature in PDF file using .pfx file. but I am not able to show the unknown and Validated check mark ( Green mark) in PDF.
how to display Green check mark after validating signature in PDF file.

Regards,
Paniket

paniketsoft
 
Posts: 2
Joined: Fri Feb 02, 2018 5:40 am

Fri Feb 02, 2018 7:11 am

Dear Paniket,

Thanks for your inquiry.
If you want to display Green check mark, please add the root certificate on Adobe trusted identities manually. Then the root certificate would be trusted and all signatures generated with this root certificate will be also trusted.
https://www.signfiles.com/manuals/Valid ... nAdobe.pdf
Any question, welcome to get it back to us.

Sincerely,
Betsy
E-iceblue support team
User avatar

Betsy.jiang
 
Posts: 3099
Joined: Tue Sep 06, 2016 8:30 am

Sun Feb 04, 2018 12:46 pm

Thanks Betsy.

I am adding the root certificate on Adobe trusted identities manually as per procedure given in document of earlier mail, but not able to see check mark in PDF. I am using acrobat DC Reader on windows 10.
Is there anything we need to add in code to show signature with unknown validity image (?) and valid image (check sign)

Please see attached document for more detail.
Regards,
Paniket.

paniketsoft
 
Posts: 2
Joined: Fri Feb 02, 2018 5:40 am

Mon Feb 05, 2018 8:09 am

Dear Paniket,

Thanks for your detailed information.
Sorry that Spire.PDF doesn't support that at present. We will consider adding the new feature in the future. We will notify you if there is any update.
Moreover, the property signature.DocumentPermission is used for setting the document restrictions when signing. The property signature.Certificated is used for verifying if the signed document is altered later. In general, the "true" will combines with the property signature.DocumentPermissions , it will check if the signed document has changes in permission later.

Sincerely,
Betsy
E-iceblue support team
User avatar

Betsy.jiang
 
Posts: 3099
Joined: Tue Sep 06, 2016 8:30 am

Fri Aug 20, 2021 10:29 am

Hi Paniket,

Sorry for the long silence.

Glad to inform you that we just released Spire.PDF Pack(Hot Fix) Version:7.8.8 that supports adding validity check marks to digital signatures. Welcome to download it from the following links for testing.

Website link: https://www.e-iceblue.com/Download/down ... t-now.html
NuGet link: https://www.nuget.org/packages/Spire.PDF/7.8.8

Code example:
Code: Select all
            PdfDocument doc = new PdfDocument();
            doc.LoadFromFile(inputPath);
            PdfCertificate cert = new PdfCertificate(pfxPath, password);
            PdfOrdinarySignatureMaker signatureMaker = new PdfOrdinarySignatureMaker(doc, cert);
            signatureMaker.SetAcro6Layers(false);
            signatureMaker.MakeSignature("signName", doc.Pages[0], 100, 100, 120, 60);
            doc.SaveToFile(outputPath);


Sincerely,
Rachel
E-iceblue support team
User avatar

rachel.lei
 
Posts: 1571
Joined: Tue Jul 09, 2019 2:22 am

Return to Spire.PDF