8.0

Table Of Contents
If an alert is displayed, an error message is written to the QuarkXPress Server
Error Log file. The transaction entry in the error log contains the date and time of
the request, the error code, and the error message.
The following is a sample of an error log transaction entry:
8/3/2005 11:27:24 - Error - Error Code: 10008 - The renderer for this image type
has no way of rendering the desired objects.
Example GET
URL
http://localhost:8080/png/sample.qxp?pngcompression=1
Example, Object
Model
Request Object Name : PNGRenderRequest
Code Snippet :
//STEP1: Create the QuarkXPress Server Request Context and set the nescessary
properties
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);
Please refer to the samples for further details on the use of the WIG object model.
Notes
To generate a PNG image without using a PNG namespace
Click the Server tab in the Server Configuration dialog box. Choose PNG from
the Type drop-down menu in the Default Render area. Click OK
. Enter the PNG request as:
http://localhost:8080/sample.qxp
Page 57