Free Support Forum -

Error: Undefined; Offending Command

I am trying to convert a ps file to a pdf and getting the error shown above.

Here is my code

 var input = "";
        var output = "UCM21161714.pdf";

        var psStream = new System.IO.FileStream(input, System.IO.FileMode.Open, System.IO.FileAccess.Read);
        // initialize PDF output stream
        var pdfStream = new System.IO.FileStream(output, System.IO.FileMode.Create, System.IO.FileAccess.Write);
        // read PS file
        var document = new PsDocument(psStream);
        // create a device for output steram
        var device = new PdfDevice(pdfStream);
            var options = new PdfSaveOptions();
            options.SupressErrors = false;
            document.Save(device, options);
        } (433.4 KB)
If i set supress errors to true then the document only generates part of the actual ps document.


SupressErrors option allows the API to generate an output with ignoring the errors occur during the conversion of the document. If this value is set to true, you can print encountered error later from Exception Enumeration of PsConverterException.

Nevertheless, we have noticed the error in console output as well during the conversion in our environment and also observed that output PDF was not correctly generated. An issue for your this file has already been generated as PAGENET-202 in our issue management system. We will inform you as soon as we have some certain news about its rectification. We request for your patience. Please give us some time.

We are sorry for the inconvenience.

Thanks. Is the opposite conversion possible?


The Aspose.Page is specialized to process PS/EPS/XPS documents and we are afraid that PDF to PostScript conversion may not be possible using it.