Error with Aspose pdf when converting PDF to DOCX

Hi,
I am trying to convert a PDF to word using “EnhancedFlow” and it works for most PDF except a few ones that error with:
java.lang.NullPointerException: Cannot read field “lj” because the return value of “com.aspose.pdf.internal.l101if.lI.lj(int)” is null

I am using Apose 24.9

And here is a code snipped

Document doc = new Document( dataDir + "input.pdf");
DocSaveOptions saveOptions = new DocSaveOptions();
saveOptions.setFormat(DocSaveOptions.DocFormat.DocX);
saveOptions.setMode(RecognitionMode.EnhancedFlow);
doc.save( dataDir + "output.docx", saveOptions);

Note that using “Flow” works but then it is not what I am looking for as I am loosing some formatting

Attached in a sample sanitized file that fails with the error above.

Thanks

Aspose_Support_2.pdf (33.4 KB)

@brissonp

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): PDFNET-58340

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 PDFNET-58340) have been fixed in Aspose.PDF for .NET 24.11.

This might be fixed in the .NET version but it is still an issue in the java version. PLease re-open it and fix it. Note the ticket is about the java version intially

@brissonp

The error was fixed in Java API too. It should not be happening with 24.12 version of the API. Have you tried using it?