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.

Mon Feb 10, 2020 7:14 pm

Hi
I'm evaluating Spire.PDF, all is working fine, except the timestamp the signed document.
I copied exact the sample code, only change my certifcate and local paths.
When I run without timestamp it works, but if I run with timestamp, it show many errors on console like the image attached.

Code:
Code: Select all
//create a PdfDocument object and load a PDF file
            PdfDocument doc = new PdfDocument();
            doc.LoadFromFile("med.pdf");

            //load the certificate .pfx file
            PdfCertificate cert = new PdfCertificate(@"ECPF 2019 1000521089.pfx", "PWD");

            //add a signature to the specified position
            PdfSignature signature = new PdfSignature(doc, doc.Pages[0], cert, "signature");
            signature.Bounds = new RectangleF(new PointF(350, 700), new SizeF(180, 90));

            //set the signature content
            signature.NameLabel = "Digitally signed by:Gary";
            signature.LocationInfoLabel = "Location:";
            signature.LocationInfo = "CN";
            signature.ReasonLabel = "Reason: ";
            signature.Reason = "Ensure authenticity";
            signature.ContactInfoLabel = "Contact Number: ";
            signature.ContactInfo = "028-81705109";
            signature.DocumentPermissions = PdfCertificationFlags.AllowFormFill | PdfCertificationFlags.ForbidChanges;
            signature.GraphicsMode = GraphicMode.SignImageAndSignDetail;
            signature.SignImageSource = PdfImage.FromFile(@"logo_bol.png");

            //configure a timestamp server
            string url = "https://freetsa.org/tsr";
            signature.ConfigureTimestamp(url);

            //save to file
            doc.SaveToFile("output.pdf");

goldeskill
 
Posts: 3
Joined: Mon Feb 10, 2020 6:59 pm

Tue Feb 11, 2020 3:42 am

Hello,

Thanks for your inquiry.
I simulated your case with the latest Spire.PDF Pack(Hot Fix) Version:6.1.8 but didn't encounter any issue. Below is the code I used, and I also attached my input file and certificate for your reference. If you were using an old version, please download the latest version and try again.
Code: Select all
    //create a PdfDocument object and load a PDF file
    PdfDocument doc = new PdfDocument();
    doc.LoadFromFile("test.pdf");

    //Modified part*****************************
    X509Certificate2 X509Certificate2Object = new X509Certificate2("gary.pfx", "e-iceblue", X509KeyStorageFlags.Exportable | X509KeyStorageFlags.PersistKeySet);
    //load the certificate .pfx file
    PdfCertificate cert = new PdfCertificate(X509Certificate2Object);
    //******************************************

    //add a signature to the specified position
    PdfSignature signature = new PdfSignature(doc, doc.Pages[0], cert, "signature");
    signature.Bounds = new RectangleF(new PointF(350, 700), new SizeF(180, 90));

    //set the signature content
    signature.NameLabel = "Digitally signed by:Gary";
    signature.LocationInfoLabel = "Location:";
    signature.LocationInfo = "CN";
    signature.ReasonLabel = "Reason: ";
    signature.Reason = "Ensure authenticity";
    signature.ContactInfoLabel = "Contact Number: ";
    signature.ContactInfo = "028-81705109";
    signature.DocumentPermissions = PdfCertificationFlags.AllowFormFill | PdfCertificationFlags.ForbidChanges;
    signature.GraphicsMode = GraphicMode.SignImageAndSignDetail;
    signature.SignImageSource = PdfImage.FromFile(@"logo.png");

    //configure a timestamp server
    string url = "https://freetsa.org/tsr";
    signature.ConfigureTimestamp(url);

    //save to file
    doc.SaveToFile("output.pdf");


If the issue still happens, to help us better look into it, please provide your input file, your certificate as well as the password. We promise to keep your files confidential and we will not use it for any other purpose. You could send them to us via email (support@e-iceblue.com).

Sincerely,
Rachel
E-iceblue support team
User avatar

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

Tue Feb 11, 2020 7:44 pm

Tks for reply
I updated to version 6.2.1 and copied your code and your files and contiue not working.
I tried to run in another computer in another internet connection but I get same error.
I'm using net core 3.1.1
I will send the files via email.
Tks

goldeskill
 
Posts: 3
Joined: Mon Feb 10, 2020 6:59 pm

Wed Feb 12, 2020 2:22 am

Hello,

Thanks for your information.
I have reproduced your issue with .NET Core and logged it into our bug tracking system with the ticket SPIREPDF-3039. I will inform you if there is any update. Sorry for the inconvenience caused.

Sincerely,
Rachel
E-iceblue support team
User avatar

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

Wed Oct 07, 2020 7:32 pm

Are there any updates or work-arounds to SPIREPDF-3039? Timestamping with a time stamp server is compliance requirement for us to move forward.

rbredin2941
 
Posts: 1
Joined: Mon Aug 26, 2019 9:36 pm

Thu Oct 08, 2020 3:42 am

Hi Robert,

Thanks for your post.
Sorry there is currently no significant progress on this issue. We have 8-Day China National Holiday during 01/10/2020-08/10/2020. When we get back to the office, I will forward your situation our Dev team and request them to speed up the fixing. Once there is any good news, I will inform you ASAP.
We apologize for the inconvenience caused.

Sincerely,
Rachel
E-iceblue support team
User avatar

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

Mon Feb 22, 2021 12:55 pm

Hi there,
I have the same problem as described and cannot find any informations in changelog related to SPIREPDF-3039, could you please provide me with informations about this one?

manish.its
 
Posts: 4
Joined: Fri Sep 25, 2020 11:31 am

Tue Feb 23, 2021 3:32 am

Hello,

Thanks for your inquiry!

I just checked the status of the issue SPIREPDF-3039. It is in the testing phase now. Once there is any progress, we will inform you ASAP.

Sincerely,
Marcia
E-iceblue support team
User avatar

Marcia.Zhou
 
Posts: 858
Joined: Wed Nov 04, 2020 2:29 am

Tue Feb 23, 2021 10:53 am

Marcia.Zhou wrote:Hello,

Thanks for your inquiry!

I just checked the status of the issue SPIREPDF-3039. It is in the testing phase now. Once there is any progress, we will inform you ASAP.

Sincerely,
Marcia
E-iceblue support team


Hi,
many thanks, please let me know, about progress on your side.

manish.its
 
Posts: 4
Joined: Fri Sep 25, 2020 11:31 am

Fri Mar 12, 2021 3:46 am

Hi all,

Thanks for your patience.

Glad to inform you that we just released Spire.PDF Pack(Hot Fix) Version:7.3.1 which fixes the issue that adding timestamp to digital signature by using NETCore was failed.
Please download the fix version from the following links to test.
Website link: https://www.e-iceblue.com/Download/down ... t-now.html
Nuget link: https://www.nuget.org/packages/Spire.PDF.NETCore/7.3.1

Sincerely,
Marcia
E-iceblue support team
User avatar

Marcia.Zhou
 
Posts: 858
Joined: Wed Nov 04, 2020 2:29 am

Mon Mar 22, 2021 8:00 am

Hello,

Hope you are doing well!

Has the issue been solved now? Could you please give us some feedback at your convenience?

Thanks in advance.

Sincerely,
Marcia
E-iceblue support team
User avatar

Marcia.Zhou
 
Posts: 858
Joined: Wed Nov 04, 2020 2:29 am

Tue Mar 30, 2021 10:07 am

Hello,
I did some brief testing and it looks OK, thanks for your support with this issue.

Marcia.Zhou wrote:Hello,

Hope you are doing well!

Has the issue been solved now? Could you please give us some feedback at your convenience?

Thanks in advance.

manish.its
 
Posts: 4
Joined: Fri Sep 25, 2020 11:31 am

Wed Mar 31, 2021 2:02 am

Hello,

Thanks for your feedback!

Glad to hear that your issue has been solved.

If you encounter any issues related to our product in the future, just feel free to contact us.

Have a nice day!

Sincerely,
Marcia
E-iceblue support team
User avatar

Marcia.Zhou
 
Posts: 858
Joined: Wed Nov 04, 2020 2:29 am

Mon Apr 12, 2021 8:19 am

I have installed version 7.3.3 but I'm facing the same problem.

windows 10 Enterprise version 20H2
.NET 4.5.2
Region España, Español (internacional)

jlakunza
 
Posts: 2
Joined: Thu May 11, 2017 8:46 am

Mon Apr 12, 2021 1:07 pm

Hi,

Thank you for your inquiry.
To help us look into your issue accurately and quickly, please provide your test file as well as you code. You could attach them here or send them to us via email (support@e-iceblue.com). Thanks in advance.

Sincerely,
Annika
E-iceblue support team
User avatar

Annika.Zhou
 
Posts: 1651
Joined: Wed Apr 07, 2021 2:50 am

Return to Spire.PDF