That’s really NOT the best way to produce Postscript from PDF files.
You should look at the this.saveAs() method instead.
Thanks for the response. Our vendor is able to process the Postscript file only if we use the HP Color LaserJet 5/5M PS driver for generating the files. The saveas method didn't produce the output as in the expected format.