8.1

Table Of Contents
If the request succeeds, a transaction success message is written to the QuarkXPress Server transaction
log file. This message includes the date, time, request type, project name, response type, response
size in bytes, and client IP address. For example:
Logs
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.
This URL renders "sample.qxp" as a PDF with a symmetric bleed:
http://localhost:8080/pdf/sample.qxp?
bleed=symmetric&offsetbleed=2
Example, GET
URL
This URL renders a PDF in which color images are downsampled to a resolution of 300 dpi and
manual medium-quality JPEG compression is applied:
http://localhost:8080/pdf/sample.qxp?
colorimagedownsample=300&colorcompression=true
Request object name: PDFRenderRequest
//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 PDF renderer request
//and embed it in 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);
For more information about the object model, see the samples.
There are three ways to generate PDF files with QuarkXPress Server. You can generate a PDF file in
QuarkXPress Server and return it to the end user, generate the PDF in QuarkXPress server and save
Notes
it to a folder on the server computer, or generate a PostScript file for later distilling and save it to
a folder on the server computer. To choose one of these output methods in QuarkXPress Server,
choose QuarkXPress Server > Preferences, click PDF in the list on the left, and then click PDF
Direct, PDF to Folder, or PostScript for Later Distilling. If you choose either of the last two
options, click Browse and navigate to the target folder, then choose an option from the Default
Name drop-down menu.
QXP SERVER 8.1 WEB INTEGRATION GUIDE | 45
USING THE WEB INTERFACE