8.0
Table Of Contents
- Overview
- New and enhanced features
- Getting started
- Functions
- Function overview
- Render types
- Content modifiers
- Render modifiers
- XML modify
- XML deconstruct and construct
- About XML deconstruct/construct
- xml
- construct
- Deconstructing a project
- Constructing a project
- Working with pages and spreads
- Working with layers
- Working with boxes
- Working with pictures
- Working with text
- Working with tables
- Working with Composition Zones
- Using server XSLT
- Working with lists
- Working with anchored boxes
- Working with placeholders
- Working with metadata
- Working with hidden text
- Administrative Request handlers
- The Modifier DTD
- Sample applications
- Contact Quark
- Legal notice
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, the render type, the project name, the type of
response produced by the server, the size of the response returned in bytes, and
the client IP. The following is a sample of a transaction entry:
11/17/2005 17:19:48 - qxpdoc/layerlayout.qxp - Type:
application/vnd.Quark.QuarkXPress - Size: 84992 - 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 an
error log transaction entry:
11/16/2005 19:42:48 - Error - Error Code: 10358 - A layer with the same name
already exists.
Example GET
URL
This URL renders the layer1 of QuarkXPress project (doc.qxp):
http://localhost:8080/doc.qxp?layer=layer1
Addlayer example:
http://localhost:8080/qxpdoc/doc.qxp?addlayer=NewLayer&visible=yes&suppres
soutput=yes&locked=no
Deletelayer example:
http://localhost:8080/qxpdoc/doc.qxp?deletelayer=Layer1
Alllayers example:
http://localhost:8080/qxpdoc/doc.qxp?alllayers=true
Layerattribute example:
http://localhost:8080/qxpdoc/doc.qxp?layerattribute=Layer1&name=Layer2&visib
le=true&keeprunaround=true
Example, Object
Model
Creating a new Layer: You can add a new layer to an existing layout of a
QuarkXPress project using the following code snippet with the Layer object.
Layer layer = new Layer();
layer.name = "New Layer";
layer.operation = "CREATE";
RGBColor rgbcolor = new RGBColor();
layer.RGBColor = rgbcolor;
layout.layer = new Layer[]{layer};
The rgbcolor parameter can have attributes: red, blue, and green
Layer is linked to Layout, which is further linked with
ModifierRequestContents
An existing layer can be deleted by providing the ID name for the layer and
including the operation attribute as “DELETE”
Notes
Can I add, modify, or delete multiple layers in one request?
No. You cannot add, modify, or delete multiple layers in a single request.
Can layers with the visible and suppressoutput properties set to false
be printed?
No. You cannot print layers whose visible and suppressoutput properties
Page 105