8.5

Table Of Contents
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, ppml, qcddoc, qxpdoc, raw, pdf, screenpdf, swf, 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.
If the request succeeds, a transaction success message is written to the QuarkXPress Server transaction
log file. This message includes the date, time, request type, project name, response type, response
size in bytes, and client IP address. For example:
Logs
3/24/2009 10:42:01 pdf/5pagedoc.qxp?movepages=AB-AD&afterpage=end Type:
application/pdf Size: 12074 Client: 127.0.0.1
If an error occurs, an error message is written to the QuarkXPress Server Error Log. The transaction
entry in the error log contains the date and time of the request, the error code, and the error
message. The following is a sample of an error log transaction entry:
3/24/2009 10:45:45 Error Error Code: 61 This page does not exist. RequestURL:
pdf/5pagedoc.qxp?movepages=AB-AD&afterpage=AF.
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
sdk.QRequestContext requestCtx = new sdk.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);
64 | QXP SERVER 8.5 WEB INTEGRATION GUIDE
USING THE WEB INTERFACE