Spire.Doc is a professional Word .NET library specifically designed for developers to create, read, write, convert and print Word document files. Get free and professional technical support for Spire.Doc for .NET, Java, Android, C++, Python.

Mon Jun 03, 2024 7:52 am

Hello Support team,
I found an internal "System.InvalidOperationException: Unknown boolex value." exception when my code call method "SaveToStream" of Spire.Doc.Document class.

this is my code:
Code: Select all
   string filename = @"bug01.doc";
   using (FileStream readMs = File.OpenRead(filename))
   using (FileStream writeMs = File.OpenWrite($"{filename}.pdf"))
   using (Document document = new Document())
   {
      document.LoadFromStream(readMs, FileFormat.Auto);
      if (document.IsContainMacro)
      {
         document.ClearMacros();
      }

      ToPdfParameterList pdfParameterList = new ToPdfParameterList()
      {
         IsEmbeddedAllFonts = false,
         DisableLink = true
      };
      document.SaveToStream(writeMs, pdfParameterList);
   }

and this is the error message :
System.InvalidOperationException: Unknown boolex value.
at spr诋.㥙(Object A_0)
at spr诋.㥙(AttrCollection A_0, Int32 A_1)

The code use the latest version of Spire.Officefor.NETStandard 9.5.0. I can't share the document for a GDPR policy, but I can send you if you provide me a safer way.

Regards
Fabrizio

fabrizio.lazzarotto
 
Posts: 20
Joined: Mon Feb 28, 2022 4:16 pm

Mon Jun 03, 2024 8:08 am

Hello,

Thanks for your inquiry.
Please send your file to this email: [email protected]. After receiving it, we will further investigate. Thank you in advance.

Sincerely,
William
E-iceblue support team
User avatar

William.Zhang
 
Posts: 732
Joined: Mon Dec 27, 2021 2:23 am

Mon Jun 03, 2024 8:26 am

William.Zhang wrote:Hello,

Thanks for your inquiry.
Please send your file to this email: [email protected]. After receiving it, we will further investigate. Thank you in advance.

Sincerely,
William
E-iceblue support team


Hello William, the file has been sent by support's email.

Regards
Fabrizio

fabrizio.lazzarotto
 
Posts: 20
Joined: Mon Feb 28, 2022 4:16 pm

Mon Jun 03, 2024 8:44 am

Hello,

Thanks for your file.
Yes, I did reproduce the problem you mentioned when I converted your Word document to pdf. I have logged this issue to our tracking system with ticket SPIREDOC-10587. Our dev team will investigate further and fix it. I will inform you as soon as there is any progress. Sorry for the inconvenience.

Sincerely,
William
E-iceblue support team
User avatar

William.Zhang
 
Posts: 732
Joined: Mon Dec 27, 2021 2:23 am

Fri Jun 28, 2024 9:08 am

Hello,

Thank you for your patience.
Glad to inform that we just released Spire.Doc Pack(hot fix) Version:12.6.10 which fixed the issue of SPIREDOC-10587, welcome to test it.
Website link: https://www.e-iceblue.com/Download/down ... t-now.html
Nuget link: https://www.nuget.org/packages/Spire.Doc/

Sincerely,
William
E-iceblue support team
User avatar

William.Zhang
 
Posts: 732
Joined: Mon Dec 27, 2021 2:23 am

Return to Spire.Doc