Hi,
We have discovered an issue when running our complete test suite that if an ExtractText method is called it causes the current Culture in the current thread to be set to invariant. This then causes any DateTime actions i.e. Parse to fail as if we pass in a UK date of "22/06/2022" an exception is thrown as the invariant culture date format is "MM/dd/yyyy".
However if we use the overloaded ExtractText(out TextLines) it does not change the culture. Please could you assist.
After further investigation it seems to be setting the culture to in variant when disposing.
Syncfusion.Pdf.Imaging.Net.Core v.19.1.0.6
Hi Dhivya,
Thanks for the quick repose, I have taken a look at the sample and I'm not using the same libraries or methods that you are. I though the best option would be to create an example to show the error. Please find the example attached and let me know if you need any more information.
Additional Update
After further investigation I can see that the CultureInfo.DefaultThreadCurrentCulture is being set to invariant when the ExtractText method is called. This then sets causes issues for when running tests as they will use the same thread.
Thanks,
Darryl
Attachment: ExtractTextCulture_2af745e5.zip
Blazor Client |
|
Blazor Sever |
|
Service side package |
ASP.NET Core :
ASP.NET MVC:
|