2020

Table Of Contents
USING QUARKXPRESS SERVER
page
The page render modifier lets you render a single page.
move pages to the end
of a layout, use
afterpage=end.
Compatible with eps, jpeg, png, postscript, qcddoc, qxpdoc, raw, pdf, screenpdf, xml
Alerts
This page does not
exist.
QuarkXPress Server Error #61
Invalid page range. QuarkXPress Server Error #62
The specified page
range cannot be
moved there.
QuarkXPress Server Error #51
This page range is
invalid.
QuarkXPress Server Error #146
Invalid parameter
value.
QuarkXPress Server Error #10108
Logs See “Understanding logging.”
Example GET URL
To move pages 2–3 to after page 5, use a URL like the
following:http://localhost:8080/abc.qxp?movepages=2–3&afterpage=5 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
Example, object
model
To move pages before rendering a layout, use code like the following://
STEP1: Create the QuarkXPress Server Request Context // and set the
nescessary properties 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);
Notes
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.
Parameters page Integer
Lets you specify which
page to render.
Compatible with eps, jpeg, png, postscript, qcddoc, raw, pdf, screenpdf
Alerts
The requested page
does not exist.
HTTP Error #500 This alert displays if you attempt
to render a page that does not exist.
The renderer for this
image type has no
HTTP Error #406 This alert displays if you use a
page parameter with the qxpdoc render type.
90 | A GUIDE TO QUARKXPRESS SERVER 2020