8.1

Table Of Contents
http://localhost:8080/pdf/sample.qxp?spreads=true
Example, GET
URL
Using content modifiers
Content modifiers let you alter the content and formatting of boxes in layouts without using
the XML modify parameter.
Inserting text
This topic explains how to import text into a box. Any existing text in the box is replaced.
The name of the target box.String[box name]Parameters
Specify the name and location of the imported file with the file:
prefix. The imported file must be present in the document pool.
To import a file that is in a subfolder of the document pool on
Mac OS, use a path like the following:
file:subfolder:MyFile.ext
To import a file that is in a subfolder of the document pool on
Windows, use a path like the following:
file:subfolder\MyFile.ext
A preview of the project with the imported text.Response
HTTP Error #404File not found.Alerts
QuarkXPress Server Error #43
This alert displays if the imported file is not present in the
document pool.
If the request succeeds, a transaction success message is written to the QuarkXPress Server transaction
log file. This message includes the date, time, request type, project name, response type, response
size in bytes, and client IP address. For example:
Logs
8/3/2005 11:27:42 jpeg/sample.qxp Type: image/jpeg Size: 31715 Client: 127.0.0.1
If 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.
http://localhost:8080/sample.qxp?Author=NewText
http://localhost:8080/sample.qxp?TopStory=file:TopStory.doc
Example, GET
URL
Request object name: RequestParameters
sdk.QRequestContext rc = new sdk.QRequestContext();
Example, object
model
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};
QXP SERVER 8.1 WEB INTEGRATION GUIDE | 69
USING THE WEB INTERFACE