To calla PostScript Renderer in QuarkXPress Server using server-side scripts, the following method can be used:

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