8.5

Table Of Contents
http://localhost:8080/postscript/Sample.qxp
Example, GET
URL
Request object name: PostScriptRenderRequest
//STEP1: Create the QuarkXPress Server Request
//Context and set the nescessary properties
Example, object
model
sdk.QRequestContext requestCtx = new sdk.QRequestContext();
Boolean responseAsURL = false;
requestCtx.setDocumentName(docName);
//STEP 2(SPECIFIC TO REQUESTS):
//Create the Post Script renderer
//request and embed it in the request context.
PostScriptRenderRequest pscreq =
new PostScriptRenderRequest();
pscreq.setPrintBleed(request.getParameter("PrintBleed"));
pscreq.setPrintPPD(request.getParameter("PrintPPD"));
pscreq.setPages(request.getParameter("Pages"));
requestCtx.setRequest(pscreq);
//STEP3: Create the WIG service and call the
//processRequest() API
QManagerSDKSvcServiceLocator serviceLocator =
new QManagerSDKSvcServiceLocator();
QManagerSDKSvc service = serviceLocator.getqxpsmsdk();
sdk.QContentData data = service.processRequest(requestCtx);
To create a PostScript file, you must have a PostScript driver on the server computer.Notes
You can specify an output style and set additional local parameters of that output style. For example,
if no bleed setting is specified in the output style named "mystylename", you can specify a bleed
setting with a URL like the following:
http://localhost:8080/eps/sample.qxp?
outputstyle=mystylename&bleed=symmetric
You can override settings in an output style. For example, if an asymmetric bleed is specified in
the output style named "mystylename," you could override it with the same URL.
If you do not specify a PostScript-compatible output style, the default PostScript-compatible output
style is used.
ppml
The ppml render type returns a PPML rendering of a page or spread.
PPML
Namespace
Lets you specify an output style. To use a named output style,
use the name of that output style. For example:
http://localhost:8080/ppml/
sample.qxp?outputstyle=stylename
stylename
outputstyle
Parameters
To use settings that have been captured with the Capture
Settings in the QuarkXPress Print dialog box, use document.
For example:
http://localhost:8080/ppml/
sample.qxp?outputstyle=document
Lets you specify a location for PPML output. For example:
path=C:\output
String
path
48 | QXP SERVER 8.5 WEB INTEGRATION GUIDE
USING THE WEB INTERFACE