8.0
Table Of Contents
- Overview
- New and enhanced features
- Getting started
- Functions
- Function overview
- Render types
- Content modifiers
- Render modifiers
- XML modify
- XML deconstruct and construct
- About XML deconstruct/construct
- xml
- construct
- Deconstructing a project
- Constructing a project
- Working with pages and spreads
- Working with layers
- Working with boxes
- Working with pictures
- Working with text
- Working with tables
- Working with Composition Zones
- Using server XSLT
- Working with lists
- Working with anchored boxes
- Working with placeholders
- Working with metadata
- Working with hidden text
- Administrative Request handlers
- The Modifier DTD
- Sample applications
- Contact Quark
- Legal notice
a. Deconstruct a QuarkXPress project using the following code snippet:
QManagerSDKSvcService svc = new QManagerSDKSvcService()
Project proj = svc.getDOM("document.qxp");
b. Alter the project by manipulating the XML.
c. Pass the modified Project instance to
ConstructRequest to create a new QuarkXPress project using the following code
snippet:
ConstructRequest cnstrq = new ConstructRequest();
cnstrq.project = proj;
QRequestContext rc = new QRequestContext();
rc.request = cnstrq;
QuarkXPressRenderRequest qxprq = new QuarkXPressRenderRequest();
cnstrq.request = qxprq;
Notes
The construct namespace takes two arguments: The name of the project to be
created and a modify parameter that points to the XML file or string that describes
how to create the project:
http://localhost:8080/construct/project1.qxp?modify=file:path to XML file on
server
http://localhost:8080/construct/project1.qxp?modify=<xml-string>
Related topics:
The Modifier DTD
About XML deconstruct and construct
xml
Deconstructing a project
Constructing a project
Page 154