2020

Table Of Contents
USING QUARKXPRESS SERVER
Inserting a picture
This topic explains how to import a picture into an empty box or replace an
existing picture with a new one.
Error Code: –43 — File not found.
Example, GET URL
To apply Comic Sans MS to text in the box named “HeadBox,” use a URL
like the
following:http://localhost:8080/png/sample.qxp?HeadBox=Headline&font
name=Comic Sans MS
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 fontname // renderer request
and embed it in RequestParameters request = new RequestParameters();
NameValueParam nameValue1 = new NameValueParam();
nameValue1.paramName = this.boxname.Text;
if(!this.boxvalue1.Text.Equals(“”)) nameValue1.textValue =
this.fontname.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);
Parameters [box name[ String
The name of the
target box.Specify the
name and location of
the imported file with
the file: prefix. The
imported file must be
available to
QuarkXPress Server.To
import a file that is in
a subfolder of the
document pool on
macOS, use a path like
the following:
file:subfolder:MyFile.e
xtTo import a file that
is in a subfolder of the
document pool on
Windows, use a path
like the following:
file:subfolder\MyFile.e
xt
Response A preview of the project with the imported picture.
A GUIDE TO QUARKXPRESS SERVER 2020 | 95