10.2.1

Table Of Contents
Lets you specify that the output use spreads.
Applicable only to Print layouts.
Boolean 1 | 0 |
true | false |
yes | no
spreads
Lets you specify whether to update imported
pictures.
true | false
updateimage
Lets you specify whether to update the text
flow version of a project to the current version.
true | false
updateflow
A single SWF file or a multipart reply containing an SWF file and a set of support files.Response
A multipart reply can result if you render an Interactive layout that uses external assets -- for
example, if the layout includes a Video object containing a video file that has been specified
by choosing Choose from a drop-down menu. In this case, the reply includes a "RelativePath"
parameter for each file, and each file is saved in the directory indicated by this "RelativePath"
parameter
You can use the saveas request handler to save the files that are included in a multipart reply
in a particular directory, using the relative folder hierarchy that was specified in the multipart
reply.
This alert displays if you try to render a nonexistent page.The requested page does not
exist.
Alerts
This alert displays if you try to render an invalid page range.This page range is invalid.
This alert displays if you try to render a nonexistent leyout.The requested layout does not
exist.
This alert displays if you specify an invalid version parameter.
Unknown swf player version.
This alert displays if you specify an invalid jpegquality
parameter.
Value of jpegquality is outside
range, valid values are 1 - 100.
See Understanding loggingLogs
This URL renders the Interactive layout named "Presentation" in the "sample.qxp" file as a
free-standing SWF file set to display in full-screen mode:
http://localhost:8080/swf/sample.qxp?
layout=Presentation&fullscreen=true
Example, GET
URL
Request object name: SWFRenderRequest
// STEP1: Create the QuarkXPress Server Request Context
// and set the nescessary 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 SWF renderer request
// and embed it in the request context.
SWFRenderRequest swfreq = new SWFRenderRequest();
swfreq.setVersion(request.getParameter("Version"));
swfreq.setLayout(request.getParameter("Layout"));
swfreq.setPage(request.getParameter("Page"));
swfreq.setFullscreen(request.getParameter("Fullscreen"));
swfreq.setEmbedallfonts(request.getParameter(
"Embedallfonts"));
swfreq.setCompressswf(request.getParameter("Compressswf"));
swfreq.setCompressaudio(request.getParameter(
"Compressaudio"));
swfreq.setJpegquality(request.getParameter("Jpegquality"));
swfreq.setDownload(request.getParameter("Download"));
requestCtx.setRequest(swfreq);
// STEP3: Create the service and
74 | A GUIDE TO QUARKXPRESS SERVER 10.2.1
USING QUARKXPRESS SERVER