10.1

Table Of Contents
HTTP Error #500The requested
layout does not
exist.
Alerts
This alert displays if you supply an invalid layout value.
See Understanding loggingLogs
To render a layout by its layer ID, use a URL like the following:
http://localhost:8080/png/sample.qxp?layout=2
Example GET
URL
To render a layout by its name, use a URL like the following:
http://localhost:8080/png/sample.qxp?layout=Layout 2
movepages
The movepages render modifier lets you move pages prior to rendering.
Lets you specify which pages to move. You can use a single
page number (for example, 2) or a range of pages with the
String
movepages
Parameters
starting and ending page numbers separated by a hyphen
(for example, 25).
Lets you specify the page after which the page or pages
should be moved. To move pages to the beginning of a
String
afterpage
layout, use afterpage=start. To move pages to the end
of a layout, use afterpage=end.
eps, jpeg, png, postscript, qcddoc, qxpdoc, raw, pdf, screenpdf, xml
Compatible with
QuarkXPress Server Error #61This page does not
exist.
Alerts
QuarkXPress Server Error #62Invalid page range.
QuarkXPress Server Error #51The specified page
range cannot be
moved there.
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();
A GUIDE TO QUARKXPRESS SERVER 10.1 | 79
USING QUARKXPRESS SERVER