2020

Table Of Contents
USING QUARKXPRESS SERVER
Importing data
Imports text or image data into a project. You can use import any text or picture file
format supported by QuarkXPress, including XPress Tags files.
You can import .doc, .docx, .dot, .dotx, and .docm files.
To import text or image data into a project, use the following parameters in the
Modifier schema:
BOX
ID
PICTURE“ (this is not a required element when importing data)
TEXT
STORY
CONTENT
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
model
To edit the properties of an existing text box in a QuarkXPress project, use
the following object hierarchy:ModifierRequest < Project < Layout < Spread
< Box < Picture For a list of the Picture object’s properties, see the JavaDoc
installed with QuarkXPress Manager.
Notes
You cannot replace an image with the Modifier XTensions software.If you
specify <FITPICTURETOBOX>, <FITBOXTOPICTURE>, and
<FITPICTURETOBOXPRO> for a picture, only the first of these elements
will be applied.
114 | A GUIDE TO QUARKXPRESS SERVER 2020