10.2.1

Table Of Contents
rc.request = xmlimportreq;
// STEP 3(SPECIFIC TO REQUESTS): Create the JPEG renderer request
JPEGRenderRequest jpreq = new JPEGRenderRequest();
xmlimportreq.request = jpreq;
// Create the service and call it with QRequestContext object
RequestService svc = new RequestService();
com.quark.qxpsm.QContentData qc = svc.processRequest(rc);
Updating article geometry and content
This topic explains how to update the geometry and contents of a QuarkCopyDesk
article using another article file or an article in a QuarkXPress project.
If you use this parameter with updatefromfile, this lets you specify
the file in which you want to update the geometry. If you use this
String
updategeometry
Parameter
parameter with updatetofile, this lets you specify the QuarkXPress
project with which you want to update the geometry of an article.
Lets you specify the file in which you want to update the content.
Can be used only with updatefromfile.
String
updatecontent
WHAT DOES THIS RETURN?Response
WHAT
ERRORS
APPLY?
Alerts
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
Logs
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 address. The following is a sample
of a transaction entry:
8/5/2005 18:11:54 sample.qxp Type: image/jpeg Size: 65982 Client: 127.0.0.1
If an alert displays, an error message is written to the QuarkXPress Server error log file. For
example:
8/9/2005 12:38:42 Error Error Code: 10396 Invalid XML String.
To update the geometry of an article using the geometry of another article, use a URL like the
following:
http://localhost:8080/updategeometry/destination.qcd?updatefromfile=source.qcd
Example, GET
URL
To update the geometry of an article in a QuarkXPress file using the geometry of a
QuarkCopyDesk article file, use a URL like the following:
http://localhost:8080/updatecontent/destination.qxp?updatefromfile=source.qcd&articleid=1
To update the geometry of a QuarkCopyDesk article file using the geometry of an article in a
QuarkXPress project, use a URL like the following:
http://localhost:8080/updategeometry/source.qxp?updatetofile=destination.qcd&articleid=1
CAN YOU DO THIS WITH QXPSM? IF SO, HOW?Example, object
model
Request object names: XMLImportRequest
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 XML Import request
XMLImportRequest xmlimportreq = new XMLImportRequest();
xmlimportreq.XMLDocument = this.thexmldoc.Text;
A GUIDE TO QUARKXPRESS SERVER 10.2.1 | 89
USING QUARKXPRESS SERVER