[Regression] IndexOutOfRangeException when converting docx to pdf using the latest Aspose version

Hi,

When converting a DOCX file to PDF using the latest Aspose.Words, the conversion failed with IndexOutOfRangeException.

Code:

var doc = new Document(@".\test.docx");
// doc.UpdatePageLayout(); // same error can also be seen with this line
doc.Save(@".\out.pdf");

It used to work fine in older Aspose.Words versions (e.g. 21.9.0) so I’m suspecting it is a regression from some recent Aspose upgrades.

I’ve attached the test docx file and the output from older Aspose.Words (21.9.0) for your reference.

test_updated.zip (83.0 KB)

Could you please take a look?

Thanks,

@ServerSide527
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-27473

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-27473) have been fixed in this Aspose.Words for .NET 24.11 update also available on NuGet.