Free Support Forum -

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?


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

Document doc = new Document(inFile, new PsLoadOptions());

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:

Message=Object reference not set to an instance of an object.

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


You may please attach your file in .zip format. (268.8 KB)


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