2017

Table Of Contents
USING QUARKXPRESS SERVER
A Guide to QuarkXPress Server 2017 | 93
movepages
The movepages render modifier lets you move pages prior to rendering.
layout by its name, use a URL like the
following:http://localhost:8080/png/sample.qxp?layout=Layout 2
Parameters
m
ovepages
S
tring
Lets you specify which
pages to move. You can
use a single page
number (for example,
2
) or a range of pages
with the starting and
ending page numbers
separated by a hyphen
(for example, 2–5).
afterpage String
Lets you specify the
page after which the
page or pages should be
moved. To move pages
to the beginning of a
layout, use
afterpage=start. To
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”);