8.0

Table Of Contents
of the request, render type, project name, type of response produced by server, size of
response returned in bytes, and client IP address.
The following is a sample of a transaction entry:
8/2/2005 17:17:17 - pdf/sample.qxp - Type: application/pdf - Size: 1927016 - Client:
127.0.0.1.
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/2/2005 18:17:44 - Error - Error Code: 10364 - Invalid Parameter Value.
Examp
le GET
URL
This URL renders the "sample.qxp" file in PDF with symmetric bleed applied on output:
http://localhost:8080/pdf/sample.qxp?bleed=symmetric&offsetbleed=2
This URL renders a PDF in which the color images are downsampled to a resolution of 300
dpi and Manual JPEG Medium compression is applied to the output:
http://localhost:8080/pdf/sample.qxp?colorimagedownsample=300&colorcompression=true
Exampl
e,
Object
Model
Request Object Name : PDFRenderRequest
Code Snippet :
//STEP1: Create the QuarkXPress Server Request Context and set the nescessary properties
sdk.QRequestContext requestCtx = new sdk.QRequestContext();
boolean responseAsURL = false;
requestCtx.setDocumentName(docName);
//STEP 2(SPECIFIC TO REQUESTS):Create the PDF renderer request and embed it in the
request context. the request context.
PDFRenderRequest pdfreq = new PDFRenderRequest();
pdfreq.setAuthor(request.getParameter("Author"));
pdfreq.setTitle(request.getParameter("Title"));
pdfreq.setLayout(request.getParameter("Layout"));
pdfreq.setSpread(request.getParameter("Spread"));
pdfreq.setPage(request.getParameter("mPage"));
pdfreq.setPages(request.getParameter("Pages"));
if( strLowResolution !=null && strLowResolution.equals("True"))
pdfreq.setLowResolution("true");
requestCtx.setRequest(pdfreq);
//STEP3: Create the WIG service and call the processRequest() API
QManagerSDKSvcServiceLocator serviceLocator = new
QManagerSDKSvcServiceLocator();
QManagerSDKSvc service = serviceLocator.getqxpsmsdk();
sdk.QContentData data = service.processRequest(requestCtx);
Please refer to the samples for further details on the use of the WIG object model.
Notes
To generate PDF directly
Choose the menu option QuarkXPress Server > Preferences to display the
Preferences dialog box. Select the PDF option and choose PDF Direct from the
Destination drop-down menu in the Workflow area. This generates a PDF directly
when you enter a command in the browser:
http://localhost:8080/pdf/Sample.qxp
To generate PDF to folder
Page 66