8.5

Table Of Contents
http://localhost:8080/png/sample.qxp?pngcompression=1
Example, GET
URL
Request object name: PNGRenderRequest
//STEP1: Create the QuarkXPress Server Request
//Context and set the nescessary properties
Example, object
model
sdk.QRequestContext rc = new sdk.QRequestContext();
Boolean responseAsURL = false;
rc.setDocumentName(docName);
//STEP 2(SPECIFIC TO REQUESTS):Create the PNG renderer
//request and embed it in the request context.
PNGRenderRequest pngreq = new PNGRenderRequest();
pngreq.setPNGCompression(request.getParameter(
"PNGCompression"));
pngreq.setLayout(request.getParameter("Layout"));
pngreq.setSpread(request.getParameter("Spread"));
pngreq.setPage(request.getParameter("mPage"));
rc.setRequest(pngreq);
//STEP3: Create the WIG service and call the processRequest(
//) API
QManagerSDKSvcServiceLocator serviceLocator =
new QManagerSDKSvcServiceLocator();
QManagerSDKSvc service = serviceLocator.getqxpsmsdk();
sdk.QContentData data = service.processRequest(rc);
postscript
The postscript render type returns a PostScript rendering of a project.
PostScript
Namespace
Lets you specify bleed values for a page.Page | asym,
clip<Boolean>,
prntbleed
Parameters
To specify an asymmetric bleed, use the following format:
prntbleed=asym,clip,top,bottom,
left, right
top<float>,
bottom<float>,
left<float>,
The clip value is Boolean (yes/no). The top, bottom, left,
and right values are float values. For example:
http://localhost:8080/
postscript/Sample.qxp?
prntbleed=asym,true,1,2,2,1
right<float> | sym,
clip<Boolean>,
amount<float>
The above example results in an asymmetric bleed of 1 on
the top, 2 on the bottom, 2 on the left, and 1 on the right.
To specify a symmetric bleed, use the following format:
prntbleed=sym,clip,amount
The clip value is Boolean (yes/no). The amount value is a
float value. For example:
http://localhost:8080/
postscript/Sample.qxp?
prntbleed=sym,true,1
The above example results in a symmetric bleed of 1 on all
sides. Default: prntbleed=sym,yes,0
46 | QXP SERVER 8.5 WEB INTEGRATION GUIDE
USING THE WEB INTERFACE