10.2.1

Table Of Contents
Lets you specify whether to update the text
flow version of a project to the current version.
true | false
updateflow
Lets you specify a single page.Integer
page
Render modifier
parameters
Lets you specify a range of pages.String (page
range)
pages
Lets you specify a spread. The first spread is
spread 1. In a facing-page document, spread 1
consists of the first page.
Integer
spread
Lets you specify a layout by name or ID. The
first layout is Layout 1.
String
layout
Lets you specify that the output use spreads.Boolean 1 | 0 |
true | false |
yes | no
spreads
A PDF file.Response
HTTP Error #500This page range is invalidAlerts
QuarkXPress Server Error #147
This alert displays if you try to render an invalid
page range.
HTTP Error #500No file produced. The project
requested contains only blank
pages.
This alert displays if you try to render a a project
that contains only blank pages.
This alert displays if you specify a nonexistent output style.This Output Style does not
exist.
This alert displays if you specify an output style that is
incompatible with this render type.
This Output Style cannot be
used with this render type.
See Understanding loggingLogs
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
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"));
A GUIDE TO QUARKXPRESS SERVER 10.2.1 | 63
USING QUARKXPRESS SERVER