9.5

Table Of Contents
QuarkXPress Server Error #146This page range is
invalid.
QuarkXPress Server Error #10108Invalid parameter
value.
See Understanding loggingLogs
To move pages 23 to after page 5, use a URL like the following:
http://localhost:8080/abc.qxp?movepages=23&afterpage=5
Example GET
URL
To move page 7 to the beginning of a layout, use a URL like the following:
http://localhost:8080/abc.qxp?movepages=7&afterpage=
start
To move pages before rendering a layout, use code like the following:
// 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 PDF
// renderer request and embed it in the request context. the request context.
PDFRenderRequest pdfreq = new PDFRenderRequest();
pdfreq.setMovePages("2-4");
pdfreq.setAfterPage("7");
requestCtx.setRequest(pdfreq);
// STEP3: Create the service and call the
// processRequest() API
RequestService service = new RequestServiceStub();
com.quark.qxpsm.QContentData data = service.processRequest(
requestCtx);
The movepages operation executes only after all other modifications are complete. For example,
if you use movepages in a modify request, the pages are moved only after the modify request is
complete.
Notes
page
The page render modifier lets you render a single page.
Lets you specify which page to render.Integer
page
Parameters
eps, jpeg, png, postscript, qcddoc, raw, pdf, screenpdf, swf
Compatible with
HTTP Error #500The requested page does
not exist.
Alerts
This alert displays if you attempt to render a page that does not exist.
HTTP Error #406The renderer for this
image type has no way
This alert displays if you use a page parameter with the qxpdoc render
type.
of rendering the desired
objects.
See Understanding loggingLogs
84 | A GUIDE TO QUARKXPRESS SERVER 9.5
USING QUARKXPRESS SERVER