2016

Table Of Contents
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
Notes
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 an EPS output style, the default EPS output style is used.
epub
The epub render type returns an ePUB rendering of a layout.
ePUB
Namespace
Lets you specify a layout by name
or ID. The first layout is Layout 1.
String
layout
Render modifier
parameters
Lets you specify an ePUB output
style by name or ID.
String
outputstyle
An ePUB (.epub) 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 #10543ePub 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/epub/sample.qxp?
outputstyle=epub1&layout=2
Example, GET URL
Request object name: EPubRenderRequest
//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);
//STEP 2(SPECIFIC TO REQUESTS):
//Create the ePUB renderer
//request and embed it in the request context.
EPubRenderRequest epubreq = new EPubRenderRequest();
epubreq.setEPubData(request.getParameter("EPubData"));
epubreq.setCreateTOC(request.getParameter(
"CreateTOC"));
epubreq.setLayout(request.getParameter(
"Layout"));
requestCtx.setRequest(epubreq);
//STEP3: Create the service and call the
//processRequest() API
RequestService service = new RequestServiceStub();
com.quark.qxpsm.QContentData data =
service.processRequest(requestCtx);
You can only create an ePUB file from a project that includes a reflow article.Notes
A GUIDE TO QUARKXPRESS SERVER 2016 | 57
USING QUARKXPRESS SERVER