2020

Table Of Contents
USING QUARKXPRESS SERVER
addlayer and
layerattribute
parameters. This
parameter overrides
QuarkXPress Keep
Runaround
preferences.
Compatible with eps, jpeg, png, postscript, qcddoc, qxpdoc, raw, pdf, screenpdf, swf, xml
Alerts
This layer does not
exist. Please verify
the layer name.
HTTP Error #500 This alert displays if you specify
an invalid layer name with the layer, layerattribute,
or deletelayer parameter.
Specify a layer name.
HTTP Error #500 This alert displays if you do not
specify a layer name with the layer, layerattribute,
addlayer, or deletelayer parameter.
A layer with the
same name already
exists.
HTTP Error #500 This alert displays if you try to
add a layer that already exists or change the name
of a layer to a name is already used in the project.
Cannot change the
name of the default
layer.
HTTP Error #500 This alert displays if you try to
change the name of the default layer.
Cannot delete the
default layer.
HTTP Error #500 This alert displays if you try to
delete the default layer.
Invalid parameter
value.
HTTP Error #500 This alert displays if you do not
specify additional attributes or specify attributes
with invalid values in an addlayer or layerattribute
request.
This layer has been
locked and cannot
be modified.
HTTP Error #500 This alert displays if you try to
add or modify an item on a locked layer.
Logs See “Understanding logging.”
Example GET URL
To render a single layer, use a URL like the
following:http://localhost:8080/doc.qxp?layer=layer1 To add a layer, use a
URL like the following:http://localhost:8080/qxpdoc/doc.qxp?addlayer=
NewLayer&visible=yes&suppressoutput=yes&locked=no To delete a layer,
use a URL like the following:
http://localhost:8080/qxpdoc/doc.qxp?deletelayer=Layer1 To render all
layers in a project, use a URL like the following:
http://localhost:8080/qxpdoc/doc.qxp?alllayers=true To set layer
attributes, use a URL like the
following:http://localhost:8080/qxpdoc/doc.qxp?layerattribute=
Layer1&name=Layer2&visible=true&keeprunaround=true
Example, object
model
To add a new layer to a project, use code like the following:Layer layer =
new Layer(); layer.name = “New Layer”; 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 <
LayerTo delete a layer, set its operation attribute to “DELETE”.
88 | A GUIDE TO QUARKXPRESS SERVER 2020