2017

Table Of Contents
USING QUARKXPRESS SERVER
58 | A Guide to QuarkXPress Server 2017
epub
The epub render type returns an ePUB rendering of a layout.
epsreq.setEPSData(request.getParameter(“EPSData”));
epsreq.setEPSFormat(request.getParameter( “EPSFormat”));
epsreq.setEPSPreview(request.getParameter( “EPSPreview”));
requestCtx.setRequest(epsreq); //STEP3: Create the service and call the
//processRequest() API RequestService service = new RequestServiceStub();
com.quark.qxpsm.QContentData data =
service.processRequest(requestCtx);
Notes
Y
ou 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 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.
Namespace ePUB
Render modifier
parameters
layout String
Lets you specify a
layout by name or ID.
The first layout is
Layout 1.
outputstyle String
Lets you specify an
ePUB output style by
name or ID.
Response An ePUB (.epub) file.
Alerts
The renderer for this
image type has no way
of rendering the desired
objects.
HTTP Error #406 This alert displays if you submit
a render request with the pages or box
parameter.
ePub not created. There
is no reflow layout in
the document.
HTTP Error #10543This error appears if there is
no reflow layout.
Logs See “Understanding logging.”
Example, GET URL http://localhost:8080/epub/sample.qxp? outputstyle=epub1&layout=2
Example, object model
Request object name: EPubRenderRequest //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); //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