2017

Table Of Contents
USING QUARKXPRESS SERVER
116 | A Guide to QuarkXPress Server 2017
–360 and 360 degrees. is invalid.
The value of Picture
Skew must be between
–75 and 75 degrees.
HTTP Error #500 This alert displays if the value
of the child text node of the <SKEW> element is
invalid.
The XML document
contains an invalid tag
value.
HTTP Error #500 This alert displays if you supply
an invalid value in the XML.
The specified box
cannot be modified.
H
TTP Error #500 This alert displays if you try to
modify picture properties on a box that is not a
picture box.
Logs
If the request succeeds, a transaction success message is written to the
QuarkXPress Server transaction log file. For example: 8/3/2005 11:27:42 —
jpeg/sample.qxp — Type: image/jpeg — Size: 31715 — Client: 127.0.0.1If
an alert displays, an error message is written to the QuarkXPress Server
error log file. For example:8/10/2005 10:39:07 — Error — Error Code:
10339 — The specified file failed to load in the picture box.
Example GET URL
When QuarkXPress Server is running on Windows, use a URL like the
following:http://localhost:8080/sample.qxp?modify=
file:C:\imageProperties.xml When QuarkXPress Server is running on Mac
OS, use a URL like the
following:http://localhost:8080/sample.qxp?modify=
file:MacHD:xml:imageProperties.xml You can also supply a string that
consists of valid XML commands. For example:
http://localhost:8080/sample.qxp?modify= <PROJECT><LAYOUT><ID
UID=”1”/><SPREAD> <ID UID=”1”/><BOX BOXTYPE=”CT_PICT”> <ID
NAME=”EVEREST”/> <PICTURE SCALEACROSS=”50”
OFFSETDOWN=”20” ANGLE=”30” FIT=”CENTERPICTURE” SKEW=”30”
FLIPHORIZONTAL=”false”/></BOX></SPREAD> </LAYOUT></PROJECT>
Example 1, object
model
Request object names:ModifierRequest ModifierStreamRequest Project Box
Picture Layout ModifierFileRequestFor ModifierFileRequest, the member
contents are used to set the file path or send the XML itself.
com.quark.qxpsm.QRequestContext rc = new
com.quark.qxpsm.QRequestContext();
if(!this.DocumentSettings1.documentName.Text.Equals(“”))
rc.documentName = this.DocumentSettings1.documentName.Text; //
STEP 2(SPECIFIC TO REQUESTS):Create the Image // Modifier renderer
request and embed it in ModifierRequest imgReq = new ModifierRequest();
Project contents = new Project(); Picture picture1 = new Picture();
picture1.scaleAcross = this.scaleacross1.Text; picture1.scaleDown =
this.scaledown1.Text; if(this.fitpicturebox1.Checked == true)
picture1.fitPictureToBox = “true”; if(this.flipvertical1.Checked == true)
picture1.flipVertical = “true”; if(this.fliphorizontal1.Checked == true)
picture1.flipHorizontal = “true”; Box box1 = new Box(); box1.UID =
txtBox1; box1.picture = picture1; Layout layout1 = new Layout();
layout1.name = layoutText; imgReq.contents = contents; contents.layouts
= new Layout[]{layout1}; layout1.boxes = new Box[]{box1}; rc.request =
imgReq; // Create the service and call it with QRequestContext object
RequestService svc = new RequestService();
com.quark.qxpsm.QContentData qc = svc.processRequest(rc);
Example 2, object To edit the properties of an existing text box in a QuarkXPress project, use