9.5

Table Of Contents
http://localhost:8080/jpeg/sample.qxp?jpegquality=1
Example, GET
URL
Request object name: JPEGRenderRequest
// STEP1: Create the QuarkXPress Server Request
// Context and set the necessary properties
Example,
object model
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);
kindle
The kindle render type returns a rendering of a layout that can be viewed on Amazon
Kindle readers.
kindle
Namespace
Lets you specify a layout by name
or ID. The first layout is Layout 1.
String
layout
Render modifier
parameters
Lets you specify a Kindle output
style by name or ID.
String
outputstyle
A Kindle (.mobi) file.Response
HTTP Error #406The renderer for this image type has no
way of rendering the desired objects.
Alerts
This alert displays if you submit a render request with
the pages or box parameter.
HTTP Error #10543Kindle not created. There is no reflow
layout in the document.
This error appears if there is no reflow layout.
See Understanding loggingLogs
http://localhost:8080/kindle/sample.qxp?
outputstyle=kindle&layout=2
Example, GET URL
Request object name: KindleRenderRequest
//STEP1: Create the QuarkXPress Server Request
//Context and set the necessary properties
Example, object
model
com.quark.qxpsm.QRequestContext requestCtx =
new com.quark.qxpsm.QRequestContext();
Boolean responseAsURL = false;
requestCtx.setDocumentName(docName);
60 | A GUIDE TO QUARKXPRESS SERVER 9.5
USING QUARKXPRESS SERVER