2020

Table Of Contents
USING QUARKXPRESS SERVER
Preflight
Use the preflight request handler to check a project for missing fonts and missing
pictures prior to output. You can also use this request handler to determine if the
platform on which a project was created is different from the platform on which
QuarkXPress Server is running.
The preflight request handler has been deprecated. Use the evaluate request
handler instead. For more information, see “Evaulate.”
Setprefs
The setprefs request handler lets you set server preferences. To use this request
handler, issue a getprefs request, determine the name of the tag that needs to be
modified, and then submit a setprefs request with the using the name of this tag.
For example, to turn off memory caching, you would first submit a getprefs
request to the server. In the resulting XML, you would note that the name of the tag
for memory caching tag is AllowMemoryCaching. Finally, you would submit a
setprefs request to the server, like so:
http://localhost:8080/setprefs?AllowMemoryCaching=false
For a full list of preferences, see “General preferences“ and “Renderer preferences.”
the browser requests that user name and password when you submit a
getrendererprefs parameter request.
Namespace preflight
Response
The XML response looks like the following:<?xml version=”1.0”
encoding=”UTF-8” standalone=”no” ?> <PREFLIGHT>
<PLATFORMMISMATCH>TRUE</PLATFORMMISMATCH>
<MISSINGFONT>MidashiGoPro-MB31</MISSINGFONT>
<MISSINGPICTURE>/QuarkXPress Server Documents/images/illus_eps.eps
</MISSINGPICTURE> </PREFLIGHT>
Alerts File not found
HTTP Error #404 QuarkXPress Server Error #–43
This alert displays if you try to delete a file that is
not available to QuarkXPress Server.
Logs See “Understanding logging.”
Example GET URL
To preflight a project in the root
folder:http://localhost:8080/preflight/abc.qxpTo preflight a binary file in a
subfolder:http://localhost:8080/preflight/sub1/abc.qxp
Example, object
model
Request object name: PreflightRequest
com.quark.qxpsm.QRequestContext rc = new
com.quark.qxpsm.QRequestContext();
if(!this.DocumentSettings1.documentName.Text.Equals(“”))
rc.documentName = this.DocumentSettings1.documentName.Text;
rc.request = new PreflightRequest(); //Create the service and call it with
QRequestContext object RequestService svc = new RequestService();
com.quark.qxpsm.QContentData qc = svc.processRequest(rc);
A GUIDE TO QUARKXPRESS SERVER 2020 | 177