2016

Table Of Contents
jpeg
The jpeg render type returns a JPEG rendering of a page or spread.
JPEG
Namespace
Lets you specify the image quality of a rendered JPEG
image. The valid values are: 1 (highest quality), 2 (high
1 | 2 | 3 | 4
jpegquality
Parameters
quality), 3 (medium quality), and 4 (lowest quality). The
default value is 1.
Lets you specify whether to update imported pictures.true | false
upadateimage
Lets you specify whether to update the text flow version
of a project to the current version.
true | false
updateflow
Lets you specify whether to display pasteboard items.
Works only with spread parameter. The default value
is true. For example:
http://localhost:8080/jpeg/document.qxp?
spread=1&pasteboard=true
true | false
pasteboard
Lets you specify whether to include bounding box
outlines in the response JPEG image even if the boxes
have no content.. The default value is false.
true | false
showboxoutline
Renders the images in a Zip package for download.true | false
download
Lets you specify a range of pages for request. (5-8,1-3
etc.)
true | false
pages
Lets you request multiple boxes.String
boxes
Render
modifier
parameters
Lets you request a single page.Integer
page
Lets you specify a scaling percentage. The valid values
are from .1 (10%) to 8 (800%) on Mac OS or 6.92 (692%)
on Windows.
Float .1 to 6.92 for
Windows .1 to 8
on Mac OS)
scale
Lets you request a single box.String
box
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
A JPEG file.Response
See Understanding loggingLogs
http://localhost:8080/jpeg/sample.qxp?jpegquality=1
Example, GET
URL
Request object name: JPEGRenderRequest
// STEP1: Create the QuarkXPress Server Request
// Context and set the necessary properties
Example,
object model
com.quark.qxpsm.QRequestContext requestCtx =
new com.quark.qxpsm.QRequestContext();
Boolean responseAsURL = false;
requestCtx.setDocumentName(docName);
// STEP2: Create the JPEG renderer request and attach it
// to the request context.
58 | A GUIDE TO QUARKXPRESS SERVER 2016
USING QUARKXPRESS SERVER