Postscript to PDF: Incorrect File header

We are looking for a PostScript to PDF converter, but every document we try the same error occurs.

Incorrect File header

Even a PS file creates with your online tool is giving thie error

var document = new Aspose.Pdf.Document(fileNaam); – Error

We are problably doing something silly, but don’t know what.

Can you help us?

@DirkMolman

Please use PsLoadOptions while loading the EPS/PS file in Document object as follows:

Document doc = new Document(inFile, new PsLoadOptions());
doc.Save(outFile);

In case you still face any issue, please share a sample EPS/PS file with us so that we can test the scenario in our environment and address it accordingly.

I have implemented the change:
Document doc = new Document(fileNaam, new PsLoadOptions());

The error has changed.into:

System.NullReferenceException
HResult=0x80004003
Message=Object reference not set to an instance of an object.
Source=Aspose.PDF

I would love to upload the sample file, but is not allowed to upload a PostScript file…

@DirkMolman

You may please attach your file in .zip format.

TestAsposePdf.zip (268.8 KB)

@DirkMolman

We are responding to your similar inquiry in other forum thread where you can please follow up.