2020

Table Of Contents
USING QUARKXPRESS SERVER
updateflow true | false
Lets you specify
whether to update the
text flow version of a
project to the current
version.
Render modifier
parameters
page Integer
Lets you specify a
single page.
pages String (page range)
Lets you specify a
range of pages.
spread Integer
Lets you specify a
spread. The first
spread is spread 1. In a
facing-page
document, spread 1
consists of the first
page.
layout String
Lets you specify a
layout by name or ID.
The first layout is
Layout 1.
spreads
Boolean (1 | 0 | true | false
| yes | no)
Lets you specify that
the output use
spreads.
Response A screen-resolution PDF file
Alerts
This page range is
invalid.
HTTP Error #500QuarkXPress Server Error #147This
alert displays if you try to render an invalid page
range.
No file produced.
The document
requested contains
only blank pages.
HTTP Error #500This alert displays if you try to
render a a project that contains only blank pages.
Logs See “Understanding logging.”
Example, GET URL
http://localhost:8080/screenpdf/sample.qxp?
colorimagedownsample=72&colorcompression=0
Example, object
model
Request object name: ScreenPDFRenderRequest // STEP1: Create the
QuarkXPress Server Request Context // and set the nescessary properties
com.quark.qxpsm.QRequestContext requestCtx = new
com.quark.qxpsm.QRequestContext(); String docName =
request.getParameter(“documentName”) ;
requestCtx.setDocumentName(docName); // STEP 2(SPECIFIC TO
REQUESTS): // Create the QuarkXPress renderer // request and embed it in
the request context. ScreenPDFRenderRequest screenpdfRequest = new
ScreenPDFRenderRequest(); screenpdfRequest.setColorImageDownSample(
request.getParameter(“ColorImageDownSample”));
screenpdfRequest.setCompression(request.getParameter( “Compression”));
requestCtx.setRequest(screenpdfRequest); // STEP3: Create the service and
// call the processRequest() API RequestService service = new
80 | A GUIDE TO QUARKXPRESS SERVER 2020