2020

Table Of Contents
USING QUARKXPRESS SERVER
Saving a projects with a new name
The saveas content modifier lets you save modified QuarkXPress projects in any
supported format to the document pool or to any network location accessible to
QuarkXPress Server.
If you send a saveas request to QuarkXPress Server Manager using HTTP or the
Web services interface while the common doc pool switch is set to off in the
QuarkXPress Server Manager client, the file is saved to all registered QuarkXPress
Server instances. If the common doc pool is enabled, the file can be saved to any
one registered QuarkXPress server instance.
Alerts
File not found.
HTTP Error #404 QuarkXPress Server Error #–43
This alert displays if the imported file is not
available to QuarkXPress Server.
The specified file
failed to load in the
picture box.
HTTP Error #500 This alert displays if you attempt
to import an invalid picture file.
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 is displayed, an error message is written to the QuarkXPress Server
error log. The following is a sample of the error log entry:8/10/2005
10:39:07 — Error — Error Code: 10339 — The specified file failed to load
in the picture box.
Example, GET URL http://localhost:8080/sample.qxp? PictureBox=file:FrenchOpen.pdf
Example, object
model
Request object name:
RequestParameterscom.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 Box Param //renderer request and
embed it in RequestParameters request = new RequestParameters();
NameValueParam nameValue1 = new NameValueParam();
nameValue1.paramName = this.boxname1.Text;
if(!this.boxvalue1.Text.Equals(“”)) nameValue1.textValue =
this.boxvalue1.Text; request.params = new
NameValueParam[]{nameValue1}; rc.request = request; //Create the service
and call it with QRequestContext object RequestService svc = new
RequestService(); com.quark.qxpsm.QContentData qc =
svc.processRequest(rc);
Notes
Box names are case-sensitive.You can use “&” to change the contents of
multiple boxes in one request. For
example:http://localhost:8080/sample.qxp?
Logo=file:logo.jpeg&TopPicture=file:TopPicture.eps
Parameters newname String
Lets you specify a
name for the saved-as
project.
96 | A GUIDE TO QUARKXPRESS SERVER 2020