2020

Table Of Contents
USING QUARKXPRESS SERVER
postscript
The postscript render type returns a PostScript rendering of a project.
parameters
multiple boxes.
page Integer
Lets you specify a
single page.
scale
Float .1 to 6.92 for
Windows .1 to 8 on
macOS
Lets you specify a
scaling percentage.
The valid values are
from .1 (10%) to 8
(800%) on
macOSmacOSor 6.92
(692%) on Windows.
box String
Lets you request a
single box.
spread Integer
Lets you specify a
spread. The first
spread is spread 1. In a
facing-page
document, spread 1
consists of the first
page.
layout String
Lets you specify a
layout by name or ID.
The first layout is
Layout 1.
Response A PNG file.
Logs See “Understanding logging.”
Example, GET URL http://localhost:8080/png/sample.qxp?pngcompression=1
Example, object
model
Request object name: PNGRenderRequest // STEP1: Create the
QuarkXPress Server Request // Context and set the nescessary properties
com.quark.qxpsm.QRequestContext rc = new
com.quark.qxpsm.QRequestContext(); Boolean responseAsURL = false;
rc.setDocumentName(docName); // STEP 2(SPECIFIC TO
REQUESTS):Create the PNG renderer // request and embed it in the request
context. PNGRenderRequest pngreq = new PNGRenderRequest();
pngreq.setPNGCompression(request.getParameter( “PNGCompression”));
pngreq.setLayout(request.getParameter(“Layout”));
pngreq.setSpread(request.getParameter(“Spread”));
pngreq.setPage(request.getParameter(“mPage”)); rc.setRequest(pngreq); //
STEP3: Create the service and // call the processRequest() API
RequestService service = new RequestServiceStub();
com.quark.qxpsm.QContentData data = service.processRequest(rc);
Namespace PostScript
A GUIDE TO QUARKXPRESS SERVER 2020 | 69