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

Free Support Forum - aspose.com

Convert PS to PDF C# using Aspose.PDF - PostScript won't load in a thread

PostScript files that load fine normally don’t load when run in a separate thread.

Code to reproduce:

// This works
Aspose.Pdf.Document pdf = new Aspose.Pdf.Document(“test.ps”, new Aspose.Pdf.PsLoadOptions());
// This results in System.NullReferenceException
var task = new System.Threading.Tasks.Task(() => new Aspose.Pdf.Document(“test.ps”, new Aspose.Pdf.PsLoadOptions()));
task.Start();
task.Wait();

File to reproduce (but any PS file would create the issue as far as I know): test.zip (1.7 KB)

@GeorgeH

We have logged an investigation ticket as PDFNET-49442 in our issue tracking system for this case. We will further look into details of the ticket and keep you informed about its resolution status. Please be patient and spare us some time.

We are sorry for the inconvenience.