2017

Table Of Contents
USING QUARKXPRESS SERVER
94 | A Guide to QuarkXPress Server 2017
page
T
he
p
age
r
ender modifier lets you render a single page.
pages
The pages render modifier lets you render multiple pages. The pdf and
postscript namespaces support this parameter.
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 way
of rendering the desired
objects.
HTTP Error #406 This alert displays if you use a
page parameter with the qxpdoc render type.
Logs See “Understanding logging.”
Example GET URL http://localhost:8080/png/sample.qxp?page=2
Example, object model
To add a new page to an existing spread in a project, use code like the
following:Spread spread = new Spread(); Page page = new Page(); page.UID
= “5”; page.operation = “CREATE”; spread.page = new Page[]{page}; To edit
the properties of an existing page, use the following object
hierarchy:ModifierRequest < Project < Layout < Spread < PageTo delete a
page, set its operation attribute to “DELETE”.
Notes
To render a page in a particular layout, use a URL like the
following:http://localhost:8080/png/sample.qxp?layout=2&page=3
Parameters pages String (page range)
Lets you specify which
pages to render.
Compatible with eps, jpeg, png, postscript, raw, pdf, screenpdf
Alerts
This page range is
invalid.
HTTP Error #500 QuarkXPress Server Error #147
This alert displays if you try to render a page
range that exceeds the number of pages in the
project.
The renderer for this
image type has no way
of rendering the desired
objects.
HTTP Error #406 This alert displays if you use
the pages parameter with the jpeg, eps, png, or
qxpdoc render type.
Logs See “Understanding logging.”
Example, GET URL http://localhost:8080/pdf/sample.qxp?pages=2–4