8.0

Table Of Contents
page
Returns a single page.
Parameters
page
integer
Specifies the single page to be rendered.
Response
Single page in rendered format
Alerts
The requested page
does not exist.
HTTP Error #500
This alert is displayed when you attempt to render a page that
does not exist.
What to do: Submit the request with a valid page number.
The renderer for
this image type has
no way of rendering
the desired objects.
HTTP Error #406
This alert is displayed when you give a page parameter with
the qxpdoc render type.
What to do: Do not use a page parameter with the qxpdoc
render type. The qxpdoc render type does not support the
page parameter.
Logs
If the project is successfully rendered, a transaction success message is written to
the QuarkXPress Server Transaction Log file. The transaction entry consists of the
date and time of the request, render type, project name, type of response
produced by server, size of response returned in bytes, and client IP address.
The following is a sample of a transaction entry:
8/3/2005 12:24:13 - png/sample.qxp - Type: image/png - Size: 2645 - Client:
127.0.0.1
If an alert is displayed, an error message is written to the QuarkXPress Server
Error Log file. The transaction entry in an 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:
8/3/2005 12:48:15 - Error - Error Code: 10000 - The requested page does not
exist.
Example GET
URL
http://localhost:8080/png/sample.qxp?page=2
Example, Object
Model
Creating a new Page: You can add a new page to an existing spread in a
QuarkXPress project by using the following code snippet with the Page object:
Spread spread = new Spread();
Page page = new Page();
page.UID = "5";
page.operation = "CREATE";
spread.page = new Page[]{page};
Page is linked to spread, spread is linked to Layout, which is further linked
with ModifierRequestContents
An existing page can be deleted by providing the ID for the page and the
operation attribute as “DELETE”
Notes
To render a page lying in another layout
Page 108