any and all EPS files I open throw and exception. Supressing errors exports blank image.
%%[Error: TypeCheck; Offending Command: //setglobal]%%
Operand Stack (bottom…top)
[ true true /ct_Clone? ]
Execution Stack (bottom…top)
[ --file (pipe) – --*packedarray (0…1, 1) – //setglobal //TypeCheck ]
Dictionary Stack (bottom…top)
[ --dictionary (350)-- --dictionary (1)-- --dictionary (8)-- --dictionary (57)-- --dictionary (9)-- ]
//Code
License lic = new License();
lic.SetLicense(@“c:\temp\Aspose.Total.lic”);
byte[] fileBytes = File.ReadAllBytes(@“C:\temp\eps\test.eps”);
MemoryStream ms = new MemoryStream(fileBytes);
Aspose.Page.EPS.PsDocument doc = new Aspose.Page.EPS.PsDocument(ms);
Aspose.Page.EPS.Device.ImageDevice device = new Aspose.Page.EPS.Device.ImageDevice();
var options = new Aspose.Page.EPS.Device.ImageSaveOptions();
// options.SupressErrors = true;
options.JpegQualityLevel = 100;
doc.Save(device, options);
File.WriteAllBytes(@“C:\temp\eps\out.PNG”, device.ImagesBytes[0]);test.zip (49.9 KB)