System.ArgumentOutOfRangeException when saving document as PDF/HTML

Hi,

we get a System.ArgumentOutOfRangeException when saving a certain document as PDF or HTML in HtmlFixed format.

“Index and length must refer to a location within the string. Arg_ParamName_Name”

Can be reproduced with the following code

var lic = new License();
lic.SetLicense(@"S:\Aspose.Total.NET.lic");

var doc = new Document(@"S:\tmp\in.doc");
doc.Save(@"S:\tmp\out.html", SaveFormat.HtmlFixed);

(same with saving as PDF)

Test documents

example.zip (49.5 KB)

System: Windows 10 22H2 latest build
Net Runtime: Net 7.0

Thanks for your help

@Serraniel
We have opened the following new ticket(s) in our internal issue tracking system and will deliver their fixes according to the terms mentioned in Free Support Policies.

Issue ID(s): WORDSNET-26132

You can obtain Paid Support Services if you need support on a priority basis, along with the direct access to our Paid Support management team.

The issues you have found earlier (filed as WORDSNET-26132) have been fixed in this Aspose.Words for .NET 23.12 update also available on NuGet.