2017

Table Of Contents
USING QUARKXPRESS SERVER
A Guide to QuarkXPress Server 2017 | 75
screenpdf
The screenpdf render type returns a low-resolution PDF rendering of a project.
This render type overrides the PDF Workflow setting in the QuarkXPress Server
example:http://localhos
t:8080/saveas/
qxpdoc/project.qxp?sav
eastemplate=trueYou
can also use this
parameter to save a
copy of a template as a
p
roject. For
example:http://localhos
t:8080/saveas/
qxpdoc/template.qpt?sa
veastemplate=false
Render modifier
parameters
layout String
Lets you specify a
layout by name or ID.
The first layout is
Layout 1.
Response A QuarkXPress project.
Alerts
QuarkXPress document
return is disabled.
HTTP Error #500 This alert displays if Disable
QXD Return is checked in the QuarkXPress
Server administration interface (Administration
> Preferences > General > Server).
The renderer for this
image type has no way
of rendering the desired
objects.
HTTP Error #406 This alert displays if you submit
a qxpdoc render request with the page, pages,
box, or spread parameter.
Cannot save a
QuarkXPress Project
down to an earlier
version.
HTTP Error #500 This alert displays if you
attempt to save a QuarkXPress 6.x project to an
earlier version of QuarkXPress with the
qxpdocver parameter.
Logs See “Understanding logging.”
Example, GET URL http://localhost:8080/qxpdoc/sample.qxp
Example, object model
Request object name: QuarkXPressRenderRequest // 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 QuarkXPress // renderer request and embed it in
the request context. QuarkXPressRenderRequest qxpreq = new
QuarkXPressRenderRequest();
qxpreq.setDocumentVersion(request.getParameter( “XpressDocVersion”));
qxpreq.setLayout(request.getParameter(“Layout”));
requestCtx.setRequest(qxpreq); // STEP3: Create the service and call the
processRequest() API RequestService service = new RequestServiceStub();
com.quark.qxpsm.QContentData data =
service.processRequest(requestCtx);