2020

Table Of Contents
USING QUARKXPRESS SERVER
General preferences
The /getprefs handler lets clients remotely retrieve an XML representation of the
current QuarkXPress Server preferences, as described below.
The /setprefs handler lets clients remotely control QuarkXPress Server
preferences. For example,
http://<servername>:<port>/setprefs?AddConnectionFilter=action=al
low;ipaddr=206.195.80.80;mask=255.255.255.1;pos=0 permits connection
filters and specifies the IP address and the subnet mask of the connection.
Namespace setprefs
Response The message “Preferences successfully set.”
Alerts
Incorrect
administration
realm user
name and
password.
HTTP Error #401 This alert displays if you specify an invalid
administrator user name and password. What to do: Use the
user name and password set in the QuarkXPress Server
Manager client Server Configuration dialog box.
Logs See “Understanding logging.”
Example GET
URL
http://localhost:8080/setprefs?CacheSize=200
Example,
object model
EMailPreferences emailPrefs = new EMailPreferences(); emailPrefs.emailFrom =
“from@email.com”; emailPrefs.emailTo = “to@email.com”; emailPrefs.smtpPort =
“25”; emailPrefs.smtpServerIP = “SMTPServerIP”; Preferences prefs = new
Preferences(); prefs.setEmailPreferences(emailPrefs); // Create the service and call
setPreferences method RequestService svc = new RequestService();
svc.setPreferences(“ServerName”, “ServerPort”, “Username”, “Password”, prefs);
Notes
If a user name and password have been set in the Server Configuration dialog
box, the browser requests that user name and password when you submit a
setprefs parameter request.
Attribute Type Description
CacheSize integer
Specifies the memory cache size from 1MB to
1024MB.
DocumentRootFolder string Specifies the document root directory.
LogTiming Boolean
Specifies whether to include timing information
(such as processing time and opening time) in the
transaction log.
ForceServedDocumentsClosed Boolean
Causes QuarkXPress Server to close projects that are
loaded into cache from the document pool after
rendering them.
AllowMemoryCaching Boolean
Specifies whether to store disk-based projects in a
memory-resident cache.
DefaultRenderType string
Sets the default. Valid values include PNG, PDF, EPS,
PSCR, QXPD, RAW, RLER, and JPEG.
LogDocProblems Boolean Specifies whether to log any project problems.
178 | A GUIDE TO QUARKXPRESS SERVER 2020