Here is my code
var input = "UCM21386988.ps";
var outputFile = "UCM21386988.pdf";
System.IO.FileStream pdfStream = new System.IO.FileStream(outputFile, System.IO.FileMode.Create, System.IO.FileAccess.Write);
System.IO.FileStream psStream = new System.IO.FileStream(input, System.IO.FileMode.Open, System.IO.FileAccess.Read);
PsDocument document = new PsDocument(psStream);
Aspose.Page.EPS.Device.PdfDevice device = new Aspose.Page.EPS.Device.PdfDevice(pdfStream);
Aspose.Page.SaveOptions options = new PdfSaveOptions();
options.SupressErrors = true;
try
{
document.Save(device, options);
}
finally
{
psStream.Close();
pdfStream.Close();
}
foreach (var exception in options.Exceptions)
{
var ex = (PsConverterException) exception;
Console.WriteLine(ex.Message);
}
files.zip (3.0 MB)
UCM21019461.zip (5.0 MB)