8.1

Table Of Contents
layer.operation = "CREATE";
RGBColor rgbcolor = new RGBColor();
layer.RGBColor = rgbcolor;
layout.layer = new Layer[]{layer};
To edit the properties of an existing layer, use the following object hierarchy:
ModifierRequest < Project < Layout < Layer
To delete a layer, set its operation attribute to "DELETE".
You cannot add, modify, or delete multiple layers in a single request.Notes
You cannot print layers whose visible and suppressoutput properties are set to false.
You can render a hidden or suppressed layer by referencing it with the layer parameter.
Suppressed layers are rendered for the jpeg, png, and qxpdoc render types, but not for the pdf,
postscript, and eps render types.
You can use the deconstruct and getdocinfo request handlers to view information about the
layers in a project.
When you add a layer using addlayer, any unspecified attributes use the settings in the
QuarkXPress Server layer preferences (QuarkXPress Server > Preferences > Default Print Layout >
Layers).
If the visible property is set to false, the suppressoutput property is automatically set to
true.
Layout
The layout render modifier lets you render a specific layout.
Lets you specify which layout to render. The first layout is layout
1.
String
layout
Parameters
eps, jpeg, png, postscript, ppml, raw, pdf, screenpdf, swf
Compatible with
HTTP Error #500The requested
layout does not
exist.
Alerts
This alert displays if you supply an invalid layout 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
12/1/2005 10:41:14 jpeg/sample.qxp Type: image/jpeg Size: 63940 Client: 127.0.0.1
If an alert is displayed, 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 a transaction entry:
12/1/2005 10:39:45 Error Error Code: 10125 The requested layout does not exist.
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.
64 | QXP SERVER 8.1 WEB INTEGRATION GUIDE
USING THE WEB INTERFACE