2017

Table Of Contents
USING QUARKXPRESS SERVER
60 | A Guide to QuarkXPress Server 2017
kindle
The kindle render type returns a rendering of a layout that can be viewed on
Amazon Kindle readers.
pages true | false Lets you specify a range
of pages for request. (5-
8,1-3 etc.)
Render modifier
parameters
boxes String
Lets you request
multiple boxes.
page Integer
Lets you request a
single page.
scale
Float .1 to 6.92 for
Windows .1 to 8 on
Mac OS)
L
ets you specify a
scaling percentage. The
valid values are from .1
(10%) to 8 (800%) on
Mac OS or 6.92 (692%)
on Windows.
box String
Lets you request a
single box.
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.
Response A JPEG file.
Logs See “Understanding logging.”
Example, GET URL http://localhost:8080/jpeg/sample.qxp?jpegquality=1
Example, object model
Request object name: JPEGRenderRequest // STEP1: Create the
QuarkXPress Server Request // Context and set the necessary properties
com.quark.qxpsm.QRequestContext requestCtx = new
com.quark.qxpsm.QRequestContext(); Boolean responseAsURL = false;
requestCtx.setDocumentName(docName); // STEP2: Create the JPEG
renderer request and attach it // to the request context.
JPEGRenderRequest jpreq = new JPEGRenderRequest();
jpreq.setJPEGQuality(request.getParameter(“jpegQuality”));
jpreq.setLayout(request.getParameter(“Layout”));
requestCtx.setRequest(jpreq); // STEP3: Create the service and // call the
processRequest() API RequestService service = new RequestServiceStub();
com.quark.qxpsm.QContentData data =
service.processRequest(requestCtx);
Namespace kindle
Render modifier
parameters
layout String
Lets you specify a
layout by name or ID.