2020

Table Of Contents
USING QUARKXPRESS SERVER
This Output Style
cannot be used with
this render type.
This alert displays if you specify an output style
that is incompatible with this render type.
Logs See “Understanding logging.”
Example, GET URL
This URL renders “sample.qxp” as a PDF with a symmetric bleed:
http://localhost:8080/pdf/sample.qxp? bleed=symmetric&offsetbleed=2
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
Example, object
model
Request object name: PDFRenderRequest // STEP1: Create the QuarkXPress
Server Request Context // and set the nescessary properties
com.quark.qxpsm.QRequestContext requestCtx = new
com.quark.qxpsm.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 service and // call the
processRequest() API RequestService service = new RequestServiceStub();
com.quark.qxpsm.QContentData data =
service.processRequest(requestCtx); For more information about the object
model, see the samples.
Notes
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 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 Administration > Preferences > Renderer >
PDF) and then click DirectPDF, PDFtoFolder, or PS4D (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.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/pdf/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 PDF output style, the default PDF output style
is used. The default PD output style is Screen - Low Quality/Low
Resolution.You can still obtain a high resolution PDF by specifying the
A GUIDE TO QUARKXPRESS SERVER 2020 | 67