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

Free Support Forum - aspose.com

How to convert PS -> EPS and EPS -> PS

Your documentation says:

image.png (22.6 KB)

How can I implement PS -> EPS and EPS -> PS

I’ve tried:

using (var inputStream = new FileStream(“foo.ps”, FileMode.Open, FileAccess.Read))
var document = new PsDocument(inputStream);

using (var outputStream = new FileStream(“foo.eps”, FileMode.CreateNew, FileAccess.Write))

But this only gets me:

System.NullReferenceException: Object reference not set to an instance of an object.
at #=zqqnjZt8PZxYeXBX2iuoMfJWz714Ey0lYSTlBhgWCzBCM.#=zp7CmAxc=(Stream #=z0OephgFSQbaw, #=zuxPH3$60dlu14z$fvF9CAszHThjG #=za$zGzt8=)
at Aspose.Page.EPS.PsDocument.Save(Stream epsStream)
at Filestar.Plugin.AsposePage.ConvertEpsSkill.<>c__DisplayClass0_0.b__0() in C:\Repos\Filestar\Filestar.Plugin.AsposePage\ConvertEpsSkill.cs:line 41


Could you please attach your input PS file here for testing? We will investigate the issue and provide you more information on it.

sample.zip (24.5 KB)


We have logged this problem in our issue tracking system as PAGENET-382. You will be notified via this forum thread once this issue is resolved.

We apologize for your inconvenience.