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 Jul 08, 2022 9:14 am

Hi,

I have pdf file that fails to save with error:
Invalid year in date string
at spr㖔.ᜂ(String A_0, Int32 A_1)
at spr㖓.ᜀ(String A_0, spr㕴 A_1)
at spr㖝.ᜉ(String A_0, String A_1)
at spr㗎.ᜈ()
at Spire.Pdf.PdfDocumentInformation.ᜄ()
at Spire.Pdf.PdfDocumentInformation.ᜉ()
at Spire.Pdf.PdfDocumentBase.ᜀ()
at Spire.Pdf.PdfDocumentBase.get_DocumentInformation()
at spr㜕.ᜀ(Stream A_0)
at Spire.Pdf.PdfDocumentBase.Save(String filename)

The file is created, but has size 0 KB, see picture attached.

This is the code that fails (I am doing also some manipulation with file before saving - drawing rectangles on it, but it fails also without any manipulation):
Code: Select all
PdfDocument pdf = new PdfDocument();
                pdf.LoadFromFile(input);
                pdf.SaveToFile(output);


Do you know what might be the issue from the error?
If you need the file, how can I send you the file without attaching it here to be publicly available?

Best regards,
Filip

filipfilipfilip
 
Posts: 45
Joined: Mon Jun 14, 2021 10:27 am

Fri Jul 08, 2022 10:01 am

Hi Filip,

Thanks for you inquiry.
Judging from the exception information, this should be a conversion error when converting a date format. You can send us this file by mail (support@e-iceblue.com).
Sincerely,
Andy
E-iceblue support team
User avatar

Andy.Zhou
 
Posts: 483
Joined: Mon Mar 29, 2021 3:03 am

Fri Jul 08, 2022 10:33 am

Hi,
I have sent the file to email support@e-iceblue.com.
Best regards,
Filip

filipfilipfilip
 
Posts: 45
Joined: Mon Jun 14, 2021 10:27 am

Mon Jul 11, 2022 5:50 am

Hi,

Thank you for your reply and sorry for the late reply due to weekend.
I reproduced your problem and logged it into our bug tracking system with ticket SPIREPDF-5336. Our dev team will investigate this issue, once there is any good news, I will inform you. Apologize for the inconvenience.

Sincerely,
Kylie
E-iceblue support team
User avatar

kylie.tian
 
Posts: 412
Joined: Mon Mar 07, 2022 2:30 am

Mon Aug 01, 2022 9:58 am

Hi,

Glad to inform that we just released Spire.Office Platinum(Hotfix) Version:7.7.6 which fixed SPIREPDF-5336, you can download it 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.Office/7.7.6

Sincerely,
Kylie
E-iceblue support team
User avatar

kylie.tian
 
Posts: 412
Joined: Mon Mar 07, 2022 2:30 am

Fri Aug 26, 2022 7:51 am

Hi,
It still does not work.
Error is changed now to: "Invalid date string, after whole seconds"
bei spr㝱.ᜀ(String A_0, spr㝒 A_1)
bei spr㝻.ᜈ(String A_0, String A_1)
bei spr㞨.ᜈ()
bei Spire.Pdf.PdfDocumentInformation.ᜄ()
bei Spire.Pdf.PdfDocumentInformation.ᜉ()
bei Spire.Pdf.PdfDocumentBase.ᜀ()
bei Spire.Pdf.PdfDocumentBase.get_DocumentInformation()
bei spr㞢.ᜀ(Stream A_0)
bei Spire.Pdf.PdfDocumentBase.Save(String filename)

I am using Spire.Officefor.NETStandard 7.8.4 package from nuget.

Can you take a look?

Thanks,
Filip

filipfilipfilip
 
Posts: 45
Joined: Mon Jun 14, 2021 10:27 am

Fri Aug 26, 2022 9:20 am

Hi Filip,

I have made a test in a .Netcore 3.1 application using the PDF file(1-WEIG2426.pdf) you shared previous and Spire.Officefor.NETStandard 7.8.4, but I'm sorry that I did not encounter any exception. Did you get this error by using another PDF file? If it is, please share the new PDF with us. If not, cound you please provide a simple demo to help us reproduce the error? Thanks in advance.
Sincerely,
Andy
E-iceblue support team
User avatar

Andy.Zhou
 
Posts: 483
Joined: Mon Mar 29, 2021 3:03 am

Fri Aug 26, 2022 11:19 am

Hi,
I am using the same pdf file and .NET CORE 2.2.
I have just sent Visual Studio solution, the pdf file and screenshot of error by mail (support@e-iceblue.com).

Best regards,
Filip

filipfilipfilip
 
Posts: 45
Joined: Mon Jun 14, 2021 10:27 am

Mon Aug 29, 2022 7:14 am

Hi Filip,

Thanks for your sharing and sorry for the late reply as weekend.
I reproduced your issue in the Region setting (Germany / German). This issue has been logged into our bug tracking system with the ticket number SPIREPDF-5456. Once it is resolved or there is any update, I will inform you. Apologize for the inconvenience caused.

Sincerely,
Nina
E-iceblue support team
User avatar

Nina.Tang
 
Posts: 1182
Joined: Tue Sep 27, 2016 1:06 am

Mon Aug 29, 2022 11:47 am

Can you generally fix this issue, so it doesn't fail for any regional setting? Or to ignore error if that date is not in content of pdf?

Best regards,
Filip

filipfilipfilip
 
Posts: 45
Joined: Mon Jun 14, 2021 10:27 am

Tue Aug 30, 2022 1:57 am

Dear Filip,

Of course, we will fix the this issue in any region setting. If the issue is fixed and a hotfix is available, I will inform you.

Sincerely,
Nina
E-iceblue support team
User avatar

Nina.Tang
 
Posts: 1182
Joined: Tue Sep 27, 2016 1:06 am

Mon Sep 26, 2022 7:28 am

Hi,
Any progress regarding this issue?
Best regards,
Filip

filipfilipfilip
 
Posts: 45
Joined: Mon Jun 14, 2021 10:27 am

Mon Sep 26, 2022 8:46 am

Dear Filip,

Your issue has been adjusted and it is going to the test stage. If the test goes well and the hotfix version is released, we will notify you ASAP. Please spare us a little more time. Thanks for your understanding.

Sincerely,
Nina
E-iceblue support team
User avatar

Nina.Tang
 
Posts: 1182
Joined: Tue Sep 27, 2016 1:06 am

Fri Sep 30, 2022 10:30 am

Hello,

Thank you for your patient waiting.
I'm glad to inform you that SPIREPDF-5456 has been fixed. Please download Spire.Office Platinum (Hot Fix) version 7.9.2 from the links below for testing.
Website link: https://www.e-iceblue.com/Download/download-office-for-net-now.html
Nuget links:
https://www.nuget.org/packages/Spire.Officefor.NETStandard/7.9.2
https://www.nuget.org/packages/Spire.Office/7.9.2

Sincerely,
Amy
E-iceblue support team
User avatar

amy.zhao
 
Posts: 2766
Joined: Wed Jun 27, 2012 8:50 am

Mon Oct 17, 2022 2:38 pm

Thanks, it works with the latest version of Spire.Officefor.NETStandard library.

Best regards,
Filip

filipfilipfilip
 
Posts: 45
Joined: Mon Jun 14, 2021 10:27 am

Return to Spire.PDF