2020

Table Of Contents
USING QUARKXPRESS SERVER
Applying a font at import
This topic explains how to apply a font to a new text flow. When you use this
method, QuarkXPress Server ignores the original font of the target text box and
inserts the new text with the font specified by the parameter.
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:32:57 — Error — Error Code: –43
— File not found.
Example, GET URL
http://localhost:8080/sample.qxp?Author=NewText
http://localhost:8080/sample.qxp?TopStory=file:TopStory.doc
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.Use “&” to change the contents of multiple
boxes in one request. The general URL for the multiple-box request
is:http://localhost:8080/sample.qxp?text1= NewText1&text2=NewText2
where text1 and text2 are the names of the two different boxes.You can
use “&” to change the contents of multiple boxes in one request. For
example:http://localhost:8080/sample.qxp?
Headline=headline.txt&Story=file:Story.docYou can import an XTags file
generated by QuarkXPress.
Parameters fontname String
The name of the font
to be applied.
Response A preview of the project with the font applied to the imported text.
Alerts
The specified font is
not available.
This alert displays if you specify a font that is
unavailable.
Logs
If the request succeeds, a transaction success message is written to the
QuarkXPress Server transaction log file. For example:12/2/2005 16:24:13 —
project2.qxp — Type: image/jpeg — Size: 11380 — Client: 127.0.0.1If an
error occurs, the error message is written to the QuarkXPress Server Error
Log. The transaction entry in the error log contains the date and time of
the request, the error code, and the error message. The following is a
sample of an error transaction log entry:12/2/2005 16:16:26 — Error —
94 | A GUIDE TO QUARKXPRESS SERVER 2020