2017

Table Of Contents
USING QUARKXPRESS SERVER
A Guide to QuarkXPress Server 2017 | 123
Constructing a project
The construct namespace takes two arguments: The name of the project to be
created, and a
modify parameter that points to the XML file or string that describes
how to create the project. For example:
http://QXPServer8:8080/construct/project1.qxp?
modify=file:path to XML file on server
or:
http://QXPServer8:8080/construct/project1.qxp?modify=XML string
There is a length limitation of 4096 characters on URLs, so you will probably want
to use an XML file rather than an XML string.
GAPSHADE=”100%”OPACITY=”100%” SHADE=”100%”
STYLE=”Solid” WIDTH=”0 pt”/> <TEXT> <STORY>
<COPYFIT FITAMOUNT=”0.033”“ NUMBEROFCHARACTERS=”6”
NUMBEROFLINES=”1” NUMBEROFWORDS=”1”
STATE=”underFit”/> <PARAGRAPH PARASTYLE=”launch”>
<RICHTEXT CHARSTYLE=”launch”>LAUNCH</RICHTEXT>
</PARAGRAPH> </STORY> </TEXT> </BOX>
<
BOX BOXTYPE=”CT_PICT” COLOR=”None” OPACITY=”100%”
SHADE=”100%”> <ID NAME=”Sunrise” UID=”6”/>
<PICTURE SCALEACROSS=”100%” SCALEDOWN=”100%”/>
<CONTENT> Macintosh HD:QuarkXPress Server
Documents:sunrise.tif </CONTENT> <GEOMETRY
LAYER=”Default” PAGE=”1” SHAPE=”SH_RECT”>
<POSITION> <TOP>0</TOP> <LEFT>0</LEFT>
<BOTTOM>800</BOTTOM> <RIGHT>600</RIGHT>
</POSITION>
<SUPPRESSOUTPUT>false</SUPPRESSOUTPUT>
<RUNAROUND BOTTOM=”0” LEFT=”0” RIGHT=”0” TOP=”0”
TYPE=”ITEM”/> </GEOMETRY> <FRAME
GAPCOLOR=”White” GAPOPACITY=”100%”
GAPSHADE=”100%” OPACITY=”100%” SHADE=”100%”
STYLE=”Solid” WIDTH=”0”/> <PICTURE/> </BOX>
</SPREAD> </LAYOUT> </PROJECT>
Logs
If the request succeeds, a transaction success message is written to
the QuarkXPress Server transaction log file. For example:
8/3/2004 17:16:11 — xml/sample.qxp — Type: text/xml — Size:
2364 — Client: 127.0.0.1
Example GET URL
http://localhost:8080/xml/sample.qxp You can also deconstruct
QuarkCopyDesk articles. To deconstruct a QuarkCopyDesk article,
use the following: http://localhost:8080/xml/copydesk/abc.qcd
Example, Object Model
Request object name: XMLRequestXMLRequest xmlRequest =
new XMLRequest(); QRequestContext context = new
QRequestContext();
context.setDocumentName(“SAMPLE_DOCUMENT.qxp”);
context.setResponseAsURL(false);
context.setRequest(xmlRequest); QContentData response = new
RequestServiceStub().processRequest(context);
System.out.println(response.getTextData());