Take too long time to make pades-ltv pdf with seiko-timestmapservice
Hello.
I want to make a WinForm Desktop App of make a pdf with signature of timestamp server.
Few months ago. I use a "http://timestamping.ensuredca.com" to get a timestamp signature.
But now, That is not working...
Recently I use a seiko timestamp server (demo site) "https://pades01.seiko-cvberttime.jp/basic/Timestamp?..."
This timestamp server is fine,... I can make a pdf with signature with timestamp.
But I need to take too long time (about 100sec.)
I show you a code. so please see a below code.
```
signature.TimeStampServer = new TimeStampServer(new Uri("https://-------"), "username", "password");
signature.EnableLtv = true;
```
Thank you.
Koichi Iida
Hi Koichi,
We have checked the issue by using the timestamp server (http://timestamping.ensuredca.com) on our end and encountered an exception (System.OverflowException: 'Arithmetic operation resulted in an overflow.' To overcome this issue, we suspect the preset size for the signature content might not be sufficient, especially with the addition of a timestamp and LTV. This could be why you're encountering this issue. Therefore, we suggest increasing the estimated size (The EstimatedSignatureSize refers to the unit of bytes.) to resolve this problem.
To do this, please check the User Guide documentation provided in the link below for instructions on how to adjust the estimated size:
https://help.syncfusion.com/document-processing/pdf/pdf-library/net/working-with-digitalsignature#adding-the-estimated-size-of-the-signature
We have checked the issue using the provided timestamp (https://pades01.seiko-cvberttime.jp/basic/Timestamp?), and it is invalid from our end. Please share the complete timestamp server URI, username and password, complete code snippet, and framework details. These details will assist us in investigating the problem on our end.
Regards,
Jeyalakshmi T
Hi, Thank you for your reply.
I tried a increase value of signature.EstimatedSignatureSize.
But I don't see any change of circumstances.
I noticed a Exception in Debug console when I watched a output of VisualStudio,
'System.Net.WebException' (System.dll) (five times)
I Posted a small source code. Please check this code.
Thank you.
Attachment: 20240920_ToSyncfusion_c69bfe93.zip
Hi Koichi,
We have checked the reported issue with the provided code on our end, but it is working well without any delay. However, we have attached the sample for your reference.
Sample:
https://www.syncfusion.com/downloads/support/directtrac/general/ze/Framework_Sample-2049318257
Kindly try the sample and let us know the result. If you are still facing issues, we kindly request you to share a simplified sample and the framework details to reproduce the reported issue on our end. It will be helpful for us to analyze and assist you further on this.
Regards,
Jeyalakshmi T
HI, Jeyalakshmi.
Thank you for your project file. I find to solve this problem.
Previously, I use a Nuget component of "Syncfusion.Pdf.Net.Core".
But your project contains "Syncfusion.Pdf.WinForms" .
I change Nuget packages to it. so this problem completely solved.
Thank you for response.
Hi Koichi,
We are glad to know the reported issue has been resolved. We are marking this forum as closed.
Regards,
Irfana J.
- 5 Replies
- 3 Participants
-
KI Koichi Iida
- Sep 18, 2024 08:58 AM UTC
- Sep 23, 2024 05:42 AM UTC