2017

Table Of Contents
USING QUARKXPRESS SERVER
46 | A Guide to QuarkXPress Server 2017
an error is returned (a document is marked dirty when the
server that opened the document has become inactive; in
such a case, the document must be closed and opened
again).
Parameter Type Description
docName String
Document to be
saved. Must be the
s
ame name that
was used when
opening or
creating the
document.
newName String
New name of the
document. If null,
the document is
saved with the old
name.
relativePath String
Relative path
where the
document should
be saved. The
relative path can
also contain the
new name of the
document. If this
is provided, a copy
of the open
document with
changes made so
far is saved in the
new location. The
open document is
not saved but has
all of the changes
made so far.
sessionId String
Session in which
the document
exists.
getXPressDOMEx
Lets you create a DOM of a particular layout or portion of a
layout.
getXMLFromXPres
sDOM
Creates an XML string out of the DOM.
getXPressDOMFro
mXML
Takes a raw XML representation of a project as a string and
returns an object model representing that project, with
Project as the root class.
Example, object
model
QRequestContext rc = new QRequestContext(); rc.documentName = “test.qxp”;
rc.responseAsURL = false; JPEGRenderRequest jpegRequest = new
JPEGRenderRequest(); rc.request = jpegRequest; RequestService svc = new
RequestService(); QContextData response = svc.processRequest(rc);