We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Convert Pdf to Doc(x) using multithreading will throw exceptions

Hi Aspose Team

When converting a lot of (say, 500) pdf files to doc(x), using multithreading, will throw an ‘System.NullReferenceException’ from Document.Save() method.

Single thread converting is ok, but we need multithread for performance. Can you help me with that?

The version of Aspose.PDF we used is 22.4.

Here is a zip file contains a file and a folder.
The name of the file is Program.cs, it has the sample code which could reproduce this problem.
The name of the folder is 500Pdfs, it contains 500 sample pdfs.

code_and_pdfs.zip (538.7 KB)

Thanks in advance

@Glority_Developer

We were able to reproduce the issue in our environment. Therefore, we have logged it as PDFNET-52363 in our issue tracking system. We will further look into its details and keep you posted with the status of its rectification. Please be patient and spare us some time.

We are sorry for the inconvenience.