Convert Pdf to DocX using Aspose.PDF for Java - Null Pointer Exception occurs

error_file.zip (1.5 MB)

java.lang.NullPointerException: null
at com.aspose.pdf.internal.l10l.I1.lif(Unknown Source)
at com.aspose.pdf.internal.l107.I7.lif(Unknown Source)
at com.aspose.pdf.internal.l107.I4.lif(Unknown Source)
at com.aspose.pdf.internal.l74.I0l.lI(Unknown Source)
at com.aspose.pdf.internal.l74.I0l.lIF(Unknown Source)
at com.aspose.pdf.internal.l74.I0l.ll(Unknown Source)
at com.aspose.pdf.internal.l74.I0l.ll(Unknown Source)
at com.aspose.pdf.ApsUsingConverter.lif(Unknown Source)
at com.aspose.pdf.ApsUsingConverter.ll(Unknown Source)
at com.aspose.pdf.I104.lif(Unknown Source)
at com.aspose.pdf.ADocument.lI(Unknown Source)
at com.aspose.pdf.ADocument.lif(Unknown Source)
at com.aspose.pdf.Document.lif(Unknown Source)
at com.aspose.pdf.ADocument.lif(Unknown Source)
at com.aspose.pdf.ADocument.save(Unknown Source)
at com.aspose.pdf.Document.save(Unknown Source)

I got an error when use pdf convert to word! how can i fix it?

DocSaveOptions docSaveOptions = new DocSaveOptions();
docSaveOptions.setFormat(DocSaveOptions.DocFormat.DocX);
docSaveOptions.setMode(1);
document.save(convertedFilePath, docSaveOptions);

aspose-pdf 19.12

@modongning,

Thank you for the details.

We have logged a ticket with ID PDFJAVA-39092 in our issue management system for further investigation and resolution. The ticket ID has been linked with this thread so that you will receive notification as soon as the ticket is resolved.

We are sorry for the inconvenience.

The issues you have found earlier (filed as PDFJAVA-39092) have been fixed in Aspose.PDF for Java 20.2.