Yes, there is. You can use Javascript to call a PostScript renderer using the following script:

//Generate postscript for the project
requestContext = new QRequestContext();
requestContext.setDocumentName(getAssetName(assetId)'.qxp');
requestContext.setResponseAsURL(false);
var postscriptRenderRequest = new PostScriptRenderRequest();
requestContext.setRequest(postscriptRenderRequest);
contentData = requestProcessor.processRequest(requestContext);