2017

Table Of Contents
USING QUARKXPRESS SERVER
72 | A Guide to QuarkXPress Server 2017
qcddoc
The qcddoc render type returns a QuarkCopyDesk article.
pages.
PostScript printer
mapped to file not
found
HTTP Error #500 This alert displays if the
PostScript printer or driver is not set to Print to
File.
This Output Style does
not exist.
This alert displays if you specify a nonexistent
output style.
This Output Style
c
annot be used with
this render type.
This alert displays if you specify an output style
that is incompatible with this render type.
Logs See “Understanding logging.”
Example, GET URL http://localhost:8080/postscript/Sample.qxp
Example, object model
Request object name: PostScriptRenderRequest // STEP1: Create the
QuarkXPress Server Request // Context and set the nescessary properties
com.quark.qxpsm.QRequestContext requestCtx = new
com.quark.qxpsm.QRequestContext(); Boolean responseAsURL = false;
requestCtx.setDocumentName(docName); // STEP 2(SPECIFIC TO
REQUESTS): // Create the Post Script renderer // request and embed it in
the request context. PostScriptRenderRequest pscreq = new
PostScriptRenderRequest();
pscreq.setPrintBleed(request.getParameter(“PrintBleed”));
pscreq.setPrintPPD(request.getParameter(“PrintPPD”));
pscreq.setPages(request.getParameter(“Pages”));
requestCtx.setRequest(pscreq); // STEP3: Create the service and call the //
processRequest() API RequestService service = new RequestServiceStub();
com.quark.qxpsm.QContentData data =
service.processRequest(requestCtx);
Notes
To create a PostScript file, you must have a PostScript driver on the server
computer.You can specify an output style and set additional local
parameters of that output style. For example, if no bleed setting is
specified in the output style named “mystylename”, you can specify a
bleed setting with a URL like the
following:http://localhost:8080/eps/sample.qxp?
outputstyle=mystylename&bleed=symmetric You can override settings in
an output style. For example, if an asymmetric bleed is specified in the
output style named “mystylename,” you could override it with the same
URL.If you do not specify a PostScript-compatible output style, the default
PostScript-compatible output style is used.
Namespace qcddoc
Parameters
article String
Lets you specify which
article in a project to
render. For
example:http://localhos
t:8080/qcddoc/
abc.qxp?article=article1
component String Lets you specify which