To calla PostScript Renderer in QuarkXPress Server using server-side scripts, the following method can be used:
- //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);