Free Support Forum - aspose.com

Converting Pdf to DocX thorws null exception (Java)

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.