A Guide to QuarkXPress Server 2016
CONTENTS Contents Conventions..................................................................................9 Getting started with QuarkXPress Server.................................10 QuarkXPress Server architecture....................................................................10 Understanding QuarkXPress Server...............................................................10 Server templates and static projects.......................................................................
CONTENTS Getting started: Web services.................................................................................41 QXP Server Manager...............................................................................................49 Using the Web interface..................................................................................49 Understanding rendering........................................................................................50 Understanding logging..............................
CONTENTS BOTTOM (Modifier schema)..........................................................................209 BOTTOMGRID (Modifier schema).................................................................209 BOX (Modifier schema).................................................................................210 BOXATTRIBUTE (Modifier schema)...............................................................212 BOXREF (Modifier schema)...........................................................................
CONTENTS GROWDOWN (Modifier schema)..................................................................242 HEADER (Modifier schema)...........................................................................242 HEADTROWSTYLE (Modifier schema)...........................................................243 HEIGHT(Modifier schema).............................................................................243 HIDDEN (Modifier schema)...........................................................................
CONTENTS PARENTTABLE (Modifier schema).................................................................266 PICTURE (Modifier schema)...........................................................................266 PLACEHOLDER (Modifier schema)................................................................269 POSITION (Modifier schema)........................................................................269 PROJECT (Modifier schema)..........................................................................
CONTENTS TCONTINUED (Modifier schema)..................................................................304 TEXT (Modifier schema)................................................................................304 TEXTATTRIBUTE (Modifier schema)..............................................................306 TEXTNODEPH (Modifier schema).................................................................306 TEXTPH (Modifier schema)............................................................................
CONTENTS Naming items and groups.....................................................................................324 Uploading templates.............................................................................................324 Uploading missing or modified pictures...............................................................326 QuarkXPress Server Manager..................................................327 Understanding QuarkXPress Server Manager..............................................
CONVENTIONS Conventions Formatting conventions highlight information to help you quickly find what you need. • Bold type style: The names of all dialog boxes, fields, and other controls are set in bold type. For example: "Click OK." • References: In descriptions of features, parenthetical references guide you in accessing those features. For example: "The Find/Change dialog box (Edit menu) lets you find and replace text." • Arrows: You will often see arrows (>), which map out the menu path to a feature.
GETTING STARTED WITH QUARKXPRESS SERVER Getting started with QuarkXPress Server QuarkXPress Server lets you render QuarkXPress projects in a variety of formats. QuarkXPress Server architecture The QuarkXPress Server architecture is shown in the following diagram.
GETTING STARTED WITH QUARKXPRESS SERVER application, all you need to do is enter a URL into your Web browser's address field. For example, the following URL instructs the QuarkXPress Server application named "QXPServer" to return the file "MyProject.qxp" as a PDF file: http://QXPServer:8080/pdf/MyProject.
GETTING STARTED WITH QUARKXPRESS SERVER QuarkXPress Server through a file system or an FTP server. You can use any of the following methods to place files in the document pool: • Drag the files to the document pool directory. • Use the Add Files command in the Document Pool screen of the QuarkXPress Server Web interface. • Upload the files using FTP to the document pool directory. • Use Telegraph XTensions® software to upload the files to the document pool from within QuarkXPress.
GETTING STARTED WITH QUARKXPRESS SERVER Caching To maximize efficiency, QuarkXPress Server uses cached versions of all rendered projects whenever possible. You can configure projects so that they are never cached, so that they are cached for a particular amount of time, or so that they are rendered every time they are served.
GETTING STARTED WITH QUARKXPRESS SERVER renderers as they become available. The number of renderers available for launch is determined by the number of licenses available from the QLA server.
GETTING STARTED WITH QUARKXPRESS SERVER 5 To define the logging level for other activity, scroll to the . The structure is as follows: 6 Save and close "log4j.xml." Understanding QuarkXPress Server XTensions software QuarkXPress Server ships with a collection of XTensions software that adds capabilities to QuarkXPress Server.
GETTING STARTED WITH QUARKXPRESS SERVER • Post-processing • Removing slugs while running the QuarkXPress project renderer • Analyzing the server after a transaction is complete • Pre- and post-transaction callback Configuring QuarkXPress Server for launch To configure QuarkXPress Server prior to launch, open the file [QuarkXPress Server application folder]/conf/ServerApp.
GETTING STARTED WITH QUARKXPRESS SERVER If you want to launch QuarkXPress Server as an application on Windows Server 2008 Quark recommends executing "ServerStartup.bat" as an administrator. For information on launching QuarkXPress Server in a separate Tomcat installation, see "Deploying QuarkXPress Server externally" in the QuarkXPress Server ReadMe. QuarkXPress Server offers a browser-based user interface instead of a conventional user interface.
THE QUARKXPRESS SERVER USER INTERFACE The QuarkXPress Server user interface QuarkXPress Server offers a browser-based user interface instead of a conventional user interface. This chapter describes that interface and explains how you can use it to configure and customize your QuarkXPress Server application and manage your server XTensions modules.
THE QUARKXPRESS SERVER USER INTERFACE Status Monitor screen If you click Manage Logs, the Logs screen displays the current transaction log. Logs screen • To download the active log, including recent crash reports, click Download Logs at the top of the Logs header. • To make the log scroll automatically as events occur, check Auto Scroll. • To clear all logs, click Clear All Logs. • To clear the current log, click Clear Log. • To display the Log Settings dialog box, click Log Settings.
THE QUARKXPRESS SERVER USER INTERFACE Fonts screen To search fonts, use the list search box in the top right corner. To add fonts to the Server machine, click the Add Fonts button. This will copy the fonts to the "privatefonts" folder in the QuarkXPress Renderer folder. Administration menu The administration menu lets you manage QuarkXPress Server. You do not have to restart the server in GUI mode to set preferences.
THE QUARKXPRESS SERVER USER INTERFACE Use the Allow Memory Caching check box to control whether memory is cached. Use the Max Memory Cache Size field to specify the maximum memory size allocated to the cache memory. Valid values are from 10MB to 1024MB. Use the Force Served Documents Closed check box to control whether QuarkXPress Server closes projects from the document pool after it renders them, regardless of the Telegraph XTensions software setting.
THE QUARKXPRESS SERVER USER INTERFACE • QuarkXPress Server Log.log: The log for the Java process. This log contains source code-level logging information that can be useful in troubleshooting. • QuarkXPress Server Transaction Log.log: This log lists all transactions and all errors. Detailed application logging is enabled for these log files only if it is enabled in the "log4j.xml" file. To log detailed transaction timing data, check Log Timing Data.
THE QUARKXPRESS SERVER USER INTERFACE Use the Port field to specify the port number of the e-mail server that QuarkXPress Server should use to send messages. Valid values are from 0 to 255. Use the From to specify the source e-mail address the QuarkXPress Server application should use to send messages (for example, QXPSserver1@quark.com). Use the To to specify the e-mail address to which the QuarkXPress Server application should send messages (for example, QXPServerAdmin@quark.com).
THE QUARKXPRESS SERVER USER INTERFACE Check Smart Quotes to force QuarkXPress to replace feet (')and inches (") marks automatically with the specified quotation marks. Use the Format drop-down menu to specify the default characters to be used with the Smart Quotes feature and Convert Quotes option in the Get Text dialog box (File > Get Text). To change the separators used for indicating sequential ranges for output, enter a value in the Sequential Page Range Separator.
THE QUARKXPRESS SERVER USER INTERFACE To specify default replacement fonts, check Specify Default Replacement Font and choose options from the Roman and East Asian drop-down menu. To highlight characters that are in a Traditional Chinese encoding's UDA/VDA (User Defined Area/Vendor Defined Area) range so that these characters can be visually verified, check Highlight character ranges defined by Traditional Chinese font vendors.
THE QUARKXPRESS SERVER USER INTERFACE The default path to the log file is /Documents. If you choose to change the default, the log folder specified must be a pre-existing folder on the system. Preferences — Project General Settings The Project General Settings pane (Administration > Preferences > Renderer > Project General Settings) includes the following controls. Check Use OpenType Kerning to activate the default kerning values for OpenType fonts.
THE QUARKXPRESS SERVER USER INTERFACE Use the Points/Inch field to override the default value of 72 points per inch. The application uses the value here as the basis for all point and pica measurements, as well as for all point- and pica-to-inch conversions. The desktop publishing standard for points per inch is 72. However, the traditional typographic standard used on most metal typographic rulers is usually approximately 72.27 or 72.
THE QUARKXPRESS SERVER USER INTERFACE Use the Superscript fields to control the placement and scale (size) of superscript characters. The Superscript Offset value determines how far below the baseline the application places a superscript character. The Superscript Offset value is measured as a percentage of font size. The default value is 33%. The Superscript VScale value determines the vertical size of the character and is a percentage of font size.
THE QUARKXPRESS SERVER USER INTERFACE QuarkXPress. This option is checked by default, with a 4-point threshold (range = 0 to 72 pt, measurement system = various [", pt, cm, etc.], smallest increment = .001). Check Standard Em Space to specify an em-space equivalent to the point size of the text (for example, 24pt text has a 24pt em space). If Standard Em Space is unchecked, the application uses the width of the two zeros in the current font as the em-space width. This option is checked by default.
THE QUARKXPRESS SERVER USER INTERFACE Trap Information or (–) specified in the Trap Information palette (Window > Trap Information). • Choose Overprint to cause overprinting for object and background colors with an Auto Amount specified in the Trap Specifications dialog box (Edit > Colors > Edit Trap), as well as for items with an Auto Amount (+) or (–) specified in the Trap Information palette (Window > Trap Information).
THE QUARKXPRESS SERVER USER INTERFACE white paper. Defined by Sources uses the rendering intents defined in source setup for all colors and images. To color manage vector content in imported EPS and PDF files, check Color Manage Vector EPS/PDF. Note that this preference applies only to EPS and PDF files imported after this box is checked. To color manage vector content in EPS and PDF files that have already been imported in the active project, check Include Existing Vector EPS/PDF in Layout.
THE QUARKXPRESS SERVER USER INTERFACE 4 In the Job Jacket dialog box, click Choose File and select the modified Job Jackets file. 5 Click Submit. The QuarkXPress Server Job Jackets file is replaced with the modified version. App Studio preferences The AppStudio dialog box lets you specify credentials and proxy settings so that QuarkXPress Server can upload HTML5 App Studio articles to the App Studio Publishing Portal.
USING QUARKXPRESS SERVER Using QuarkXPress Server The xml namespace deconstructs a project according to the Modifier DTD. The construct namespace lets the server turn an XML representation of a QuarkXPress project back into an actual project. With these namespaces, you can deconstruct a project into an XML representation, change the XML in accordance with the Modifier DTD, and then have the server generate an updated version of the QuarkXPress project.
USING QUARKXPRESS SERVER Understanding URL requests QuarkXPress Server URL requests should use the following format: http://server:port/namespace/path/projectname?parameter=value • server: Indicates the name or IP address of the QuarkXPress Server computer. • port: Indicates the QuarkXPress Server application's port number. The default port number is 8080. • namespace: Sets the render type (or indicates another server functionality to access).
USING QUARKXPRESS SERVER software's xml namespace, Modifier XTensions software can return an XML representation of the project. Looking up a namespace This guide lists the namespaces for every QuarkXPress Server function. There is no single list of namespaces because some functions do not require a particular namespace or are available in multiple namespaces. To determine which namespace you want to use: 1 In this Guide, go to the page that documents the render type you want to use.
USING QUARKXPRESS SERVER that supports HTTP requests. For more information, see "Getting started: HTTP and HTTPS". • HTTPS: Provides secure HTTP access. • Web services: Lets you interact with the server via Web services using the QuarkXPress Server Manager object model. You can write client applications in Java, .NET, or any other programming language that can consume SOAP-based Web services. For more information, see "Getting started: Web services".
USING QUARKXPRESS SERVER plus a front-end application (usually Web-based) that provides a graphical user interface (GUI) for end users. The front-end application translates end users' input into HTTP or HTTPS requests and sends the requests to QuarkXPress Server or QuarkXPress Server Manager, which processes the requests and returns rendered content.
USING QUARKXPRESS SERVER Manager cannot process the request, it returns an XML response describing the error, plus any header error codes returned by QuarkXPress Server. For example: 500 -43 File not found.
USING QUARKXPRESS SERVER
USING QUARKXPRESS SERVER Using HTTP GET with QXP Server Manager HTTP GET with QuarkXPress Server Manager works the same way as HTTP GET with QuarkXPress Server (see "Using HTTP GET with QXP Server"), except that Quark does not recommend using GET if you are working with non-ASCII characters. The behavior of GET requests with characters is highly browser-dependent, and there is no standard that all browsers follow. Instead, use POST.
USING QUARKXPRESS SERVER These classes can be chained together to form compound QuarkXPress Server requests. The sample applications (see "Sample applications") show how to use these classes to invoke a QuarkXPress Server command and manipulate the response. For more information, see "Using the Web interface." In addition to the classes listed there, the Web services interface includes the following: • RequestService processes QuarkXPress Server requests.
USING QUARKXPRESS SERVER serverName String Server name. Default is NULL. Load balancer searches for the host itself in this case. serverPort Integer Port at which the desired server is listening. userName String Server admin username. userPassword String Server admin password. maxRetries Integer Max number of times to try executing the command before returning failure. requestTimeout Integer Max time out in milliseconds.
USING QUARKXPRESS SERVER timeout closeAlldocs closeDoc closeSession getOpenDocs Long Timeout for the session in milliseconds. If no call is executed in that time, session is expired and all the open documents in that session are closed without saving. If 0 is passed as value of timeout, default timeout is used. If a negative value is passed as timeout, the session never expires. Closes all open documents in the session without saving them. If the session does not exist, an error is returned.
USING QUARKXPRESS SERVER openDoc docName String Document to be opened for modification. Provide the name only. You can proivde a relative path when you save the document. jobJacketName String Name of the Job Jackets file to be used. The Job Jackets file is assumed to be already available on the QuarkXPress server computer. jobTicketName String Name of the Job Ticket to be used. host String The QuarkXPress Server instance that should be used for this document modification.
USING QUARKXPRESS SERVER sessionId saveAllDocs saveDoc getXPressDOMEx String Session in which the request should be executed. This value may be null. If a session ID is provided, the document is kept open. If no session ID is provided, the request is executed normally, as if processRequest had been called. Saves all open documents in the session. The documents are saved one by one. If error occurs while saving a document, an error is returned immediately and the rest of the documents remain unsaved.
USING QUARKXPRESS SERVER getXPressDOMFromXML Takes a raw XML representation of a project as a string and returns an object model representing that project, with Project as the root class. Example, object model QRequestContext rc = new QRequestContext(); rc.documentName = "test.qxp"; rc.responseAsURL = false; JPEGRenderRequest jpegRequest = new JPEGRenderRequest(); rc.request = jpegRequest; RequestService svc = new RequestService(); QContextData response = svc.
USING QUARKXPRESS SERVER paramName String Name of the parameter. In most cases this will be the name/ID of the box. textValue String Text value of the box. (You can set either textValue or streamValue.) streamValue byte[] Stream value of the box. (You can set either textValue or streamValue.) contentType String The MIME content type of the parameter. QContentData Description A response to a Web Services call to QuarkXPress Server.
USING QUARKXPRESS SERVER Example, object model httpResponseCode String HTTP response code. managerErrorCode String QuarkXPress Server Manager error code. managerErrorMessage String QuarkXPress Server Manager localized error message. serverErrorCode String QuarkXPress Server error code. serverErrorMessage String QuarkXPress Server response message. serverExtendedMessage String QuarkXPress Server extended error message. String docName = "notexisting.
USING QUARKXPRESS SERVER • Content modifiers let you alter the content and formatting of boxes in layouts without using the XML modify parameter. • XML modify lets you modify QuarkXPress projects using XML. • The xml namespace deconstructs a project according to the Modifier DTD. The construct namespace lets you turn an XML representation of a QuarkXPress project back into a QuarkXPress project. • Administrative request handlers let you change the behavior of QuarkXPress Server.
USING QUARKXPRESS SERVER Example, GET URL http://localhost:8080/sample.qxp Notes There are two ways to specify a render format: 1. Enter the render type directly in the browser address field:http://localhost:8080/pdf/project.qxp. 2. In the QuarkXPress Server administration interface, choose Administration > Preferences > General and choose the default render type from the Default Renderer Type drop-down menu.
USING QUARKXPRESS SERVER Function Description QuarkXPress Server Manager object model classes png Returns a PNG image. PNGRenderRequest postscript Returns a PostScript file. PostScriptRenderRequest qcddoc Returns a QuarkCopyDesk article. CopyDeskDocRequest qxpdoc Returns a QuarkXPress project file. QuarkXPressRenderRequest qxpr Returns an RLE Raw Custom format image. RLERawCustomRenderRequest raw Returns a project in a QuarkXPress internal RawCustomRenderRequest format.
USING QUARKXPRESS SERVER clearcredential String Lets you log out of the App Studio Publishing Portal. For example: http://localhost:8080/ appstudio/clearcredential config String Lets you retrieve the current publication hierarchy from the App Studio Publishing Portal. For example: http://qxpserver:port/ appstudio/config Render modifier parameters layout String Lets you specify a layout by name or ID. The first layout is Layout 1. page Integer Lets you specify a page.
USING QUARKXPRESS SERVER Parameters outputstyle stylename Lets you specify an output style. To use a named output style, use the name of that output style. For example: http://localhost:8080/ave/ sample.qxp?outputstyle=stylename To use settings that have been captured with the Capture Settings in the QuarkXPress Export AVE for iPad dialog box, use document. For example: http://localhost:8080/ave/ sample.
USING QUARKXPRESS SERVER AVERenderRequest avereq = new AVERenderRequest(); avereq.setAVEData(request.getParameter("AVEData")); avereq.setFormat(request.getParameter( "Format")); avereq.setLayout(request.getParameter( "Layout")); requestCtx.setRequest(avereq); //STEP3: Create the service and call the //processRequest() API RequestService service = new RequestServiceStub(); com.quark.qxpsm.QContentData data = service.processRequest(requestCtx); Notes The default AVE output style is used.
USING QUARKXPRESS SERVER .1 to 8 on Mac OS from .1 (10%) to 8 (800%) on Mac OS or 6.92 (692%) on Windows. 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. downloadlayoutFonts 1 | 0 | true | false | yes | no Lets you specify whether to download all fonts used in the layout and all system fonts.
USING QUARKXPRESS SERVER Notes 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/eps/sample.qxp? outputstyle=mystylename?bleed=symmetric You can override settings in an output style.
USING QUARKXPRESS SERVER jpeg The jpeg render type returns a JPEG rendering of a page or spread. Namespace JPEG Parameters jpegquality 1|2|3|4 Lets you specify the image quality of a rendered JPEG image. The valid values are: 1 (highest quality), 2 (high quality), 3 (medium quality), and 4 (lowest quality). The default value is 1. upadateimage true | false Lets you specify whether to update imported pictures.
USING QUARKXPRESS SERVER JPEGRenderRequest jpreq = new JPEGRenderRequest(); jpreq.setJPEGQuality(request.getParameter("jpegQuality")); jpreq.setLayout(request.getParameter("Layout")); requestCtx.setRequest(jpreq); // STEP3: Create the service and // call the processRequest() API RequestService service = new RequestServiceStub(); com.quark.qxpsm.QContentData data = service.processRequest(requestCtx); kindle The kindle render type returns a rendering of a layout that can be viewed on Amazon Kindle readers.
USING QUARKXPRESS SERVER literal The literal render type returns the contents of a file without any attempt to process it as a template. Depending on the file's MIME type, the requested project can be displayed within the browser (for example, if the response is a JPEG file) or saved to disk (for example, if the response is a Microsoft Word document). Namespace literal Response The requested file returned in the HTTP response.
USING QUARKXPRESS SERVER exportlistsashyperlinks 1 | 0 | true | Lets you specify whether to export lists as false | yes | no hyperlinks. To use this parameter, you must set includehyperlinks to true. Lets you specify whether to export the index exportindexesashyperlinks 1 | 0 | true | false | yes | no as hyperlinks. To use this parameter, you must set includehyperlinks to true. exportlistsasbookmarks 1 | 0 | true | Lets you specify whether to export lists as false | yes | no bookmarks.
USING QUARKXPRESS SERVER colorcompression true | false Lets you specify whether medium-quality manual JPEG compression should be applied to color images. grayscalecompression true | false Lets you specify whether medium-quality manual JPEG compression should be applied to grayscale images. monochromecompression true | false Lets you specify whether ZIP compression should be applied to monochrome images. pdffile String Lets you specify the PDF name.
USING QUARKXPRESS SERVER location specified in QuarkXPress Server preferences (Administration > Preference > General > Server > Document Root Folder). The first layout in a project is layout 0. For example: http://localhost:8080/pdf/multilayout.qxp? layoutstart=0&layoutend=3 updateimage true | false Lets you specify whether to update imported pictures. updateflow true | false Lets you specify whether to update the text flow version of a project to the current version.
USING QUARKXPRESS SERVER 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.
USING QUARKXPRESS SERVER png The png render type returns a PNG rendering of a page or spread. Namespace PNG Parameters pngcompression 1 | 2 | 3 | 4 Lets you specify the compression of a PNG response. The valid values are: 1 (lowest compression), 2 (medium compression), 3 (high compression), and 4 (highest compression). The default value is 1. transparentpng true | false Lets you specify whether to generate a PNG file that uses transparency.
USING QUARKXPRESS SERVER postscript The postscript render type returns a PostScript rendering of a project. Namespace PostScript Parameters prntbleed Page | asym, clip, top, bottom, left, right | sym, clip, amount Lets you specify bleed values for a page. To specify an asymmetric bleed, use the following format: prntbleed=asym,clip,top,bottom, left, right The clip value is Boolean (yes/no). The top, bottom, left, and right values are float values.
USING QUARKXPRESS SERVER This alert displays if you try to render an invalid page range. No file produced. HTTP Error #500 The document This alert displays if you try to render a a project that contains only blank requested pages. contains only blank pages. PostScript printer HTTP Error #500 mapped to file This alert displays if the PostScript printer or driver is not set to Print to not found File. This Output Style This alert displays if you specify a nonexistent output style. does not exist.
USING QUARKXPRESS SERVER Namespace qcddoc Parameters article String Lets you specify which article in a project to render. For example: http://localhost:8080/qcddoc/ abc.qxp?article=article1 component String Lets you specify which component in an article to render. For example: http://localhost:8080/copydesk/ abc.qcd?component=comp1 format lightweight | fullfeatured Lets you render an article in lightweight or full-featured format. For example: http://localhost:8080/qcddoc/ abc.
USING QUARKXPRESS SERVER Example, GET URL http://localhost:8080/qcddoc/copydesk/sample.qcd Example, object model Request object name: CopyDeskDocRequest qxpdoc The qxpdoc render type returns a QuarkXPress project. Namespace qxpdoc Parameters qxpdocver 8|9 Indicates the QuarkXPress version format to use. For example: http://localhost:8080/qxpdoc/ construct/project1.
USING QUARKXPRESS SERVER requestCtx.setDocumentName(docName); // STEP 2(SPECIFIC TO REQUESTS):Create the QuarkXPress // renderer request and embed it in the request context. QuarkXPressRenderRequest qxpreq = new QuarkXPressRenderRequest(); qxpreq.setDocumentVersion(request.getParameter( "XpressDocVersion")); qxpreq.setLayout(request.getParameter("Layout")); requestCtx.setRequest(qxpreq); // STEP3: Create the service and call the processRequest() API RequestService service = new RequestServiceStub(); com.
USING QUARKXPRESS SERVER printcolors cmyk, rgb, grayscale, cmykandspot, asis Lets you specify the color space of the PDF file. This option is available only when mode is set to composite. plates inripseps Lets you specify a separation method. This option is available only when mode is set to separations. produceblankpages 1 | 0 | true | false | yes | no Lets you specify whether to include blank pages. This option is available only when mode is set to composite.
USING QUARKXPRESS SERVER Render modifier parameters thumbnail bw | color Lets you embed a thumbnail in the PDF file. mode composite | separations Lets you specify the PDF file's color mode. fontdownload yes | no Lets you turn font download on or off. You cannot specify which fonts are downloaded. layers String Lets you specify which layers should be included, as a comma-separated list. transparencyres Integer value from Lets you specify the resolution for flattened 36 to 3600 content.
USING QUARKXPRESS SERVER // STEP 2(SPECIFIC TO REQUESTS): // Create the QuarkXPress renderer // request and embed it in the request context. ScreenPDFRenderRequest screenpdfRequest = new ScreenPDFRenderRequest(); screenpdfRequest.setColorImageDownSample( request.getParameter("ColorImageDownSample")); screenpdfRequest.setCompression(request.getParameter( "Compression")); requestCtx.
USING QUARKXPRESS SERVER Property Description box The box render modifier lets you render a single box. boxes The boxes render modifier lets you render multiple boxes. layer The layer render modifier lets you show and hide layers prior to rendering. This render modifier also lets you add and remove layers from a project on the server. layout The layout render modifier lets you render a particular layout. movepages The movepages render modifier lets you move pages prior to rendering.
USING QUARKXPRESS SERVER Logs See Understanding logging Example GET URL http://localhost:8080/png/sample.qxp?box=appenderrors Notes Descriptions of rendering errors are formatted in 10-point magenta Arial. box The box render modifier lets you render a single box. Parameters box String Lets you specify which box to render. overlap String Lets you specify whether to show the area overlapped by the specified box.
USING QUARKXPRESS SERVER within the page boundaries. The renderer for this HTTP Error #406 image type has no This alert displays if you try to use the boxes parameter with the eps, way of rendering the pdf, or qxpdoc render types. desired objects. Logs See Understanding logging Example GET URL http://server:port/jpeg/doc.qxp?boxes=box1,box2 Notes To render boxes in a particular layout, use a URL like the following: http://localhost:8080/png/sample.
USING QUARKXPRESS SERVER layerattribute String Lets you modify the attributes of a layer. You can modify one layer per request. name String Lets you specify a new name for a layer. You must use this parameter in conjunction with the layerattribute parameter. visible Boolean (1 | 0 | true Lets you make a layer visible or invisible. You can | false | yes | no) use this parameter in conjunction with the addlayer and layerattribute parameters.
USING QUARKXPRESS SERVER Example GET URL To render a single layer, use a URL like the following: http://localhost:8080/doc.qxp?layer=layer1 To add a layer, use a URL like the following: http://localhost:8080/qxpdoc/doc.qxp?addlayer= NewLayer&visible=yes&suppressoutput=yes&locked=no To delete a layer, use a URL like the following: http://localhost:8080/qxpdoc/doc.qxp?deletelayer=Layer1 To render all layers in a project, use a URL like the following: http://localhost:8080/qxpdoc/doc.
USING QUARKXPRESS SERVER movepages The movepages render modifier lets you move pages prior to rendering. Parameters movepages String Lets you specify which pages to move. You can use a single page number (for example, 2) or a range of pages with the starting and ending page numbers separated by a hyphen (for example, 2–5). afterpage String Lets you specify the page after which the page or pages should be moved. To move pages to the beginning of a layout, use afterpage=start.
USING QUARKXPRESS SERVER page The page render modifier lets you render a single page. Parameters page Integer Lets you specify which page to render. Compatible with eps, jpeg, png, postscript, qcddoc, raw, pdf, screenpdf Alerts The requested page does HTTP Error #500 not exist. This alert displays if you attempt to render a page that does not exist.
USING QUARKXPRESS SERVER Example, GET URL http://localhost:8080/pdf/sample.qxp?pages=2–4 Notes To render pages in a particular layout, use a URL like the following: http://localhost:8080/pdf/sample.qxp?layout=2&pages=2,3 scale The scale render modifier lets you specify the scale at which content is rendered. Parameters scale Float 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.
USING QUARKXPRESS SERVER Parameters spreads Boolean (1 | 0 | true | false | yes | no) Lets you specify whether to render spreads (true) or individual pages (false). Compatible with eps, jpeg, png, postscript, raw, pdf, screenpdf Logs See Understanding logging Example, GET URL http://localhost:8080/pdf/sample.qxp?spreads=true suppresserrors The suppresserrors render modifier forces QuarkXPress Server to render as much of a layout as it can, despite any errors that occur.
USING QUARKXPRESS SERVER Example, GET URL http://localhost:8080/sample.qxp?Author=NewText http://localhost:8080/sample.qxp?TopStory=file:TopStory.doc Example, object Request object name: RequestParameters model com.quark.qxpsm.QRequestContext rc = new com.quark.qxpsm.QRequestContext();; if(!this.DocumentSettings1.documentName.Text.Equals("")) rc.documentName = this.DocumentSettings1.documentName.
USING QUARKXPRESS SERVER Example, object Request object name: RequestParameters model com.quark.qxpsm.QRequestContext rc = new com.quark.qxpsm.QRequestContext(); if(!this.DocumentSettings1.documentName.Text.Equals("")) rc.documentName = this.DocumentSettings1.documentName.Text; // STEP 2(SPECIFIC TO REQUESTS):Create the fontname // renderer request and embed it in RequestParameters request = new RequestParameters(); NameValueParam nameValue1 = new NameValueParam(); nameValue1.paramName = this.boxname.
USING QUARKXPRESS SERVER rc.documentName = this.DocumentSettings1.documentName.Text; //STEP 2(SPECIFIC TO REQUESTS):Create the Box Param //renderer request and embed it in RequestParameters request = new RequestParameters(); NameValueParam nameValue1 = new NameValueParam(); nameValue1.paramName = this.boxname1.Text; if(!this.boxvalue1.Text.Equals("")) nameValue1.textValue = this.boxvalue1.Text; request.params = new NameValueParam[]{nameValue1}; rc.
USING QUARKXPRESS SERVER This alert displays if you supply an invalid path parameter. What to do: Specify the correct file path with the path parameter. The specified folder is Read-Only. Logs HTTP Error #500 This alert displays if you try to save a project to a folder with read-only access. If the request succeeds, a transaction success message is written to the QuarkXPress Server transaction log file. For example: 11/16/2005 15:41:42 — saveas/5mb.qxp — Type: — Size: 28 — Client: 127.0.0.
USING QUARKXPRESS SERVER This parameter works only with the pdf, postscript, and qxp render types. If you use it with any other render type, the server returns only the first page of the paginated layout. If you do not supply an XML string or file (for example: http://localhost:8080/pdf/Sample.qxp?paginate), QuarkXPress Server attempts to use the XML file that was associated with the layout in QuarkXPress. Response The layout with the imported XML.
USING QUARKXPRESS SERVER Updating article geometry and content This topic explains how to update the geometry and contents of a QuarkCopyDesk article using another article file or an article in a QuarkXPress project. Parameter updategeometry String If you use this parameter with updatefromfile, this lets you specify the file in which you want to update the geometry.
USING QUARKXPRESS SERVER Highlighting text in rendered output To apply highlighting to text in rendered output, use XML like the following. This text is highlighted. Highlighting is applied only to rendered output. It is not retained in the QuarkXPress project. Using XML modify The modify parameter lets you modify a QuarkXPress project using XML. This topic covers the modify parameter when it is used without the construct namespace.
USING QUARKXPRESS SERVER Modifying box properties and content To modify box properties and content, use the following parameters in the Modifier DTD: • "BOX (Modifier schema)" • "ID (Modifier schema)" • "TEXT (Modifier schema)" • "PICTURE (Modifier schema)" • "GEOMETRY (Modifier schema)" • "CONTENT (Modifier schema)" • "SHADOW (Modifier schema)" • "FRAME (Modifier schema)" • "PLACEHOLDER (Modifier schema)" • "METADATA (Modifier schema)" The following XML shows how some of these parameters work.
USING QUARKXPRESS SERVER If you know the UID attribute of a element, you can insert content into that element without having to specify where it is. For example: NewPicture.jpg You an also use a element to insert additional text between two elements, like so: Text before external file file:NewText.
USING QUARKXPRESS SERVER Example 1, object model Request object names: ModifierRequest ModifierRequestContents Layout ID Box Geometry Runaround ModifierFileRequest For ModifierFileRequest, the member contents are used to set the file path or send the XML itself. com.quark.qxpsm.QRequestContext rc = new com.quark.qxpsm.QRequestContext(); if(!this.DocumentSettings1.documentName.Text.Equals("")) rc.documentName = this.DocumentSettings1.documentName.
USING QUARKXPRESS SERVER page position (of type 'Position') runaround (of type 'Runaround') shape shrinkAcross shrinkDown stackingOrder suppressOutput The Runaround object has the following properties: bottom edited invert left noise outset outsideOnly pathName restrictToBox right smoothness threshold top type Creating boxes To create a new box, use the following parameters in the Modifier DTD: • "BOX (Modifier schema)" • "ID (Modifier schema)" • "TEXT (Modifier schema)" • "PICTURE (Modifier schema)" • "G
USING QUARKXPRESS SERVER QuarkXPress Server Error #–43 This alert displays if you specify an invalid XML file or request a document that is not available to QuarkXPress Server. Bad filename/ pathname. HTTP Error #404 QuarkXPress Server Error #–37 This alert displays if you specify an invalid file name or path. The XML document HTTP Error #500 is not valid or well This alert displays if the XML you supply is not well-formed or does not formed. adhere to the Modifier DTD.
USING QUARKXPRESS SERVER Use the following object hierarchy: ModifierRequest < Project < Layout < Spread < Box < Geometry Deleting boxes To delete a box, use the following parameters in the Modifier DTD: • "BOX (Modifier schema)" • "ID (Modifier schema)" The following XML shows how these parameters work.
USING QUARKXPRESS SERVER Notes You can use the xml namespace or Telegraph XTensions software to determine the ID or name of the box you want to delete.
USING QUARKXPRESS SERVER Modifying text attributes You can use the modify parameter to change the attributes of text in a QuarkXPress project. All modifications are done on a text box basis.
USING QUARKXPRESS SERVER Alerts File not found. HTTP Error #404 QuarkXPress Server Error #–43 This alert displays if you specify an invalid XML file or request a document that is not available to QuarkXPress Server. Bad filename/ pathname. HTTP Error #404 QuarkXPress Server Error #–37 This alert displays if you specify an invalid file name or path. The XML HTTP Error #500 document is not This alert displays if the XML you supply is not well-formed or does not adhere valid or well to the Modifier DTD.
USING QUARKXPRESS SERVER This is text. Example 1, object model Request object names: ModifierRequest ModifierStreamRequest Project RichText Text ID Box Layout ModifierFileRequest For ModifierFileRequest, the member contents are used to set the file path or send the XML itself. com.quark.qxpsm.QRequestContext rc = new com.quark.qxpsm.QRequestContext(); if(!this.DocumentSettings1.documentName.Text.Equals("")) rc.documentName = this.
USING QUARKXPRESS SERVER Modifying picture properties You can modify the properties (such as origin, scale, angle, skew, and orientation) of pictures in a QuarkXPress project with XML. To modify picture properties, use the following parameters in the Modifier DTD: • "BOX (Modifier schema)" • "ID (Modifier schema)" • "PICTURE (Modifier schema)" The following XML shows how some of these parameters work.
USING QUARKXPRESS SERVER should be between 10% and 1000%. This alert displays if the value of the child text node of a element is invalid. The Value of Scale Down should be between 10% and 1000%. HTTP Error #500 This alert displays if the value of the child text node of a element is invalid. The value of HTTP Error #500 Offset Across is This alert displays if the value of the child text node of the in invalid range. element is invalid.
USING QUARKXPRESS SERVER FLIPHORIZONTAL="false"/> Example 1, object model Request object names: ModifierRequest ModifierStreamRequest Project Box Picture Layout ModifierFileRequest For ModifierFileRequest, the member contents are used to set the file path or send the XML itself. com.quark.qxpsm.QRequestContext rc = new com.quark.qxpsm.QRequestContext(); if(!this.DocumentSettings1.documentName.Text.Equals("")) rc.documentName = this.DocumentSettings1.documentName.
USING QUARKXPRESS SERVER To import text or image data into a project, use the following parameters in the Modifier DTD: • "BOX (Modifier schema) " • "ID (Modifier schema)" • "PICTURE (Modifier schema)" (this is not a required element when importing data) • "TEXT (Modifier schema)" • "STORY (Modifier schema)" • "CONTENT (Modifier schema)" The following XML shows how some of these parameters work.
USING QUARKXPRESS SERVER Unable to read picture (#106) HTTP Error #500 QuarkXPress Server Error #–109 This alert displays if you try to import a text file into a picture box. Bad filename/ pathname HTTP Error #404 QuarkXPress Server Error #–37 This alert displays if you try to import an invalid or nonexistent file into a box. Logs If the request succeeds, a transaction success message is written to the QuarkXPress Server transaction log file. For example: 8/5/2005 18:11:54 — sample.
USING QUARKXPRESS SERVER For ModifierFileRequest, the member contents are used to set the file path or send the XML itself. com.quark.qxpsm.QRequestContext rc = new com.quark.qxpsm.QRequestContext(); if(!this.DocumentSettings1.documentName.Text.Equals("")) rc.documentName = this.DocumentSettings1.documentName.
USING QUARKXPRESS SERVER Using XML deconstruct and construct The xml namespace deconstructs a project according to the Modifier DTD. The construct namespace lets you turn an XML representation of a QuarkXPress project back into a QuarkXPress project. This means you can deconstruct a project into an XML representation, change the XML in accordance with the Modifier DTD, and then have the server generate an updated version of the QuarkXPress project.
USING QUARKXPRESS SERVER The above information is included in the deconstructed project’s XML file. The definition of the “BodyText” style sheet, however, is stored in the Job Jackets file. The URL of a deconstructed Job Jackets file is indicated by the PROJECT@JOBJACKET attribute. If you need access to new colors, style sheets, master pages, or other resources, add them to the Job Jackets file indicated by this URL.
USING QUARKXPRESS SERVER SUPPRESS="false" VISIBLE="true"> 39.064 39.026 63.951 214.
USING QUARKXPRESS SERVER Logs If the request succeeds, a transaction success message is written to the QuarkXPress Server transaction log file. For example: 8/3/2004 17:16:11 — xml/sample.qxp — Type: text/xml — Size: 2364 — Client: 127.0.0.1 Example GET URL http://localhost:8080/xml/sample.qxp You can also deconstruct QuarkCopyDesk articles. To deconstruct a QuarkCopyDesk article, use the following: http://localhost:8080/xml/copydesk/abc.
USING QUARKXPRESS SERVER DTD Modifier DTD Parameters modify String The string or the path of the XML file that describes how to create the project. Use the file: indicator to specify the path. qxpdocver 8|9 Indicates the QuarkXPress version format to use. For example: http://QXPServer8:8080/construct/ qxpdoc/project1.qxp?qxpdocver=8 Example GET URL http://QXPServer8:8080/construct/ project1.qxp?modify=file:sample.xml Example XML PAGE 111USING QUARKXPRESS SERVER ConstructFileRequest ConstructStreamRequest To construct a new QuarkXPress project by editing an existing document, first deconstruct a QuarkXPress project using code like the following: XMLRequest dcnstrq = new XMLRequest(); rc.request = dcnstrq; Next, alter the project by manipulating the XML. When you're done, pass the modified XML document to ConstructStreamRequest to create a new QuarkXPress project.
USING QUARKXPRESS SERVER ConstructFileRequest ConstructStreamRequest To construct a new QuarkXPress project by editing an existing document, first deconstruct a QuarkXPress project using code like the following: XMLRequest dcnstrq = new XMLRequest(); rc.request = dcnstrq; Next, alter the project by manipulating the XML. When you're done, pass the modified XML document to ConstructStreamRequest to create a new QuarkXPress project.
USING QUARKXPRESS SERVER must contain commands that show how you want QuarkXPress Server to modify the project. For more information, see "Modifier schema (annotated)." Working with pages and spreads The root element of a deconstructed QuarkXPress project is . Within each element are one or more elements. Each layout contains one or more elements, and each contains one or more elements.
USING QUARKXPRESS SERVER 3 = the first user-defined master page in the Job Jackets file (by default, the master page named "A-Master A") For example, to create a master page based on the first user-defined master page in the Job Jackets file, you could use XML like the following: PAGE 114USING QUARKXPRESS SERVER To create a layout using a specific height and width, use XML like the following: Scrollable Layout To create a layout and flow content into it in one go, without a spread/page
USING QUARKXPRESS SERVER When QuarkXPress Server creates a new layout this way, it adds an automatic text box. If you want to flow content into this automatic text box, address it by any name you like, and QuarkXPress Server will assign that name to the automatic text box on the first page. Working with layers To create a layer in XML, use the LAYER element.
USING QUARKXPRESS SERVER Macintosh HD:DocPool:flower1.jpg This example will work for a construct request. For a modify request, add the attribute value OPERATION="CREATE" in the BOX element.
USING QUARKXPRESS SERVER To use this feature, you must have FitBoxToContent XTensions software loaded. For pictures, is equivalent to PICTURE@FIT="FITBOXTOPICTURE". and have no effect. Using inline boxes The Inline Boxes feature makes it easy to create an anchored box.
USING QUARKXPRESS SERVER Automatic text flow example The INLINEBOX element allows to have autommatic column balanced sections. This allows you to have the text flow and bottom-align across multiple columns on a page automatically. Automatic column balancing The INLINEBOX@WIDTH attribute lets you specify the width of the anchored box as a percentage of its parent column or box.
USING QUARKXPRESS SERVER file:Images/2pdf.PNG openfile 1 PDF/EconomicResearch.
USING QUARKXPRESS SERVER You can nest one group within another by adding a that refers to the child group, like so: To anchor a group in a text box, use XML like the fo
USING QUARKXPRESS SERVER SHADE="90" OPACITY="90"/> image.
USING QUARKXPRESS SERVER Story IDs are unique across layouts. Applying style sheets Like other resources, style sheets are defined in a deconstructed project’s Job Jackets file. To apply a paragraph style sheet to text, use the PARASTYLE attribute of the element. For example, to apply the paragraph style sheet named “BodyText” to a paragraph, use XML like the following: The sun has risen.
USING QUARKXPRESS SERVER Formatting across paragraph boundaries You can use two methods to describe a run of formatting that crosses a paragraph boundary. The first is to simply close the first element and then open a new one. For example: The sun has risen. The sun has set. The second is to use a &hardReturn; entity to create the paragraph break.
USING QUARKXPRESS SERVER SHADE="100%" STYLE="Solid" WIDTH="1"/> ... ... Note that the position of each row and column within the table is indicated by the ROWCOUNT and COLUMNCOUNT attributes, respectively. elements can describe text cells or picture cells; see the following sections for details.
USING QUARKXPRESS SERVER Logs If the request succeeds, a transaction success message is written to the QuarkXPress Server transaction log file. For example: 4/10/2007 17:54:37 — tab.qxp — Type: image/jpeg — Size: 9049 — Client: 127.0.0.1 Example GET URL When QuarkXPress Server is running on Windows, use a URL like the following: http://localhost:8080/sample.qxp?modify= file:C:\createTable.xml When QuarkXPress Server is running on Mac OS, use a URL like the following: http://localhost:8080/sample.
USING QUARKXPRESS SERVER To add a picture cell, use XML like the following: MacintoshHD:DocPool:flower1.jpg Merging and splitting table cells To merge table cells, use XML like the following:
USING QUARKXPRESS SERVER Using inline tables The Inline Tables feature makes it easy to create an anchored table.
USING QUARKXPRESS SERVER The childPICTUREATTRIBUTES element lets you specify several picture attributes, including flip horizontal, flip vertical, angle, background and color, on picture cells of the table. This does not create a breakable table. The table will be confined to a single page. If the number of rows is greater than the available rectangular size of the parent box, an error is returned stating the table cannot be fit into the available size.
USING QUARKXPRESS SERVER For example, assume you want to create a table where alternating rows are shaded, the grid is a particular color, the insets are a particular amount, and so forth.
USING QUARKXPRESS SERVER Here, we've created a cell that spans five columns by supplying only one , and we've specified a black, one-point top line and a red, one-point bottom line for that row only. Working with sections The Section feature lets you change the numbering system for a layout or a range of pages in a layout. To use this feature, you create a section start on a particular page. In that section start, you can specify a number format, a starting page number, and an optional prefix.
USING QUARKXPRESS SERVER Composition Zones items must be created in QuarkXPress. elements are ignored by the construct namespace and the modify parameter. ...
USING QUARKXPRESS SERVER To make the returned XML use the Modifier DTD, uncheck Use default XSLT and do not use the XSL parameter in your calls to the construct namespace. QuarkXPress Server currently supports only XML output from XSL transformation. Working with lists The element allows you to construct and deconstruct QuarkXPress lists. Lists allow a user to automatically create a table of contents (TOC) or list of figures. For more information, see the Modifier DTD .
USING QUARKXPRESS SERVER 36 36 112 210 Hello Box7 , world
USING QUARKXPRESS SERVER There are two types of placeholders supported in Modifier XML: Text placeholders and Text Node placeholders. Text placeholders can be placed around a run of text to identify particular metadata with that text content.
USING QUARKXPRESS SERVER RICHTEXT elements become siblings. In this case, the PARACHAR attribute is not applied, and the Modifier XML should include the &hardReturn; entity to represent paragraph break characters. The OWNER attribute of the TEXTPH and TEXTNODEPH elements refers to the ID of the XTensions software that is responsible for the placeholder. The xml namespace returns all placeholders from all XTensions software.
USING QUARKXPRESS SERVER in a copy of QuarkXPress that does not have the corresponding XTensions module. You can use hidden text in Modifier XML to interpret information added by a custom QuarkXPress XTension or to send instructions to a QuarkXPress Server XTensions during a modify or construct request. Each piece of hidden text is identified by an opcode. An opcode is a four-digit hexadecimal number which specifies: • The developer ID of the developer who created the XTensions module.
USING QUARKXPRESS SERVER encoded, and must be a valid structure in the format which the XTensions module is expecting. You can use hidden text in different ways by using different hidden text types. For example, the Notes XTensions module uses the OPENPAREN and CLOSEPAREN hidden text type. This XTensions module lets users embed user comments at particular locations in text and view these comments can in a “sticky note” window.
USING QUARKXPRESS SERVER Using interactivity The element describes an asset used as an interactive element for a format such as App Studio and ePUB. The specific schema for an interactive element is determined by the XTensions module that owns that element, so such schemas are not defined here. The best way to create or modify an element is to deconstruct it and then use the deconstructed XML as a template. Below are some examples of App Studio interactivity.
USING QUARKXPRESS SERVER 2 Applies the Vertical Scrolling Slideshow interactivity Below is an example of App Studio Slideshow interactivity.
USING QUARKXPRESS SERVER false false false 1 Video\abc.mp4 false false Audio interactivity Below is an example of App Studio Audio interactivity.
USING QUARKXPRESS SERVER 2 http://www.gsmarena.com true Picture Zoom interactivity Below is an example of App Studio Picture Zoom interactivity.
USING QUARKXPRESS SERVER 0 0 0 false 65536 0 65536 65536 true Specifying colors When specifying colors, you can use named Web colors such as "Si
USING QUARKXPRESS SERVER < PARAGRAPH PARASTYLE="Sub-Section Title"> < RICHTEXT>Edit Menu Use the RANGE element with a value of NUMBEROFPARAGRAPHS to specify that a range should end after a specified number of paragraphs. File Menu File ....
USING QUARKXPRESS SERVER BEFORE-CROSS-REFERENCE="" CROSS-REFERENCE-STYLE="" LEVELFORMAT="NESTED"/> Rendering: The INDEX OPERATION element is used to render indexes. /> Working with cross references The cross references feature makes it easy to create cross references.
USING QUARKXPRESS SERVER continues. . . . Support Loss History Creating and using hyperlinks There are three types of hyperlink: • Web (WWWURL). • Anchor (ANCHOR). You must define Anchor hyperlinks at the level. • Page (PAGE).
USING QUARKXPRESS SERVER To link to this Page hyperlink, use something like this: Page2 You can use a Page hyperlink without creating it at the level, but this is not the preferred method. Using the Streaming Document Provider The Streaming Document Provider feature allows all of the assets required for a transaction to be provided as part of a multi-part HTTP request. Assets that can be streamed include: • QuarkXPress templates.
USING QUARKXPRESS SERVER parameter of this API is a pointer to a request handler function implemented in QuarkXPress Server XTensions software. The second parameter is a namespace string that identifies the request. When a user submits a request that has the same namespace string as a suffix to the request URL, QuarkXPress Server calls the request handler function with all the user-specified parameters in the ServerRequest structure.
USING QUARKXPRESS SERVER Example, object model Request object name: AddFileRequest // STEP 1 (COMMON FOR ALL REQUESTS): com.quark.qxpsm.QRequestContext rc = new com.quark.qxpsm.QRequestContext(); if(!this.DocumentSettings1.documentName.Text.Equals("")) rc.documentName = this.DocumentSettings1.documentName.Text; Stream theStream = uplTheFile.PostedFile.InputStream; long length = theStream.
USING QUARKXPRESS SERVER The following example demonstrates how to use an HTML form to create a POST request that uses the addfile request handler. The form looks like this: To use this form: 1 Enter the name or IP address of the computer on which QuarkXPress Server is running. 2 Enter the port number in the port number field. 3 Enter the file name along with the extension in the file field. Click Browse if you need to find the file on your computer. The file will be uploaded with this name.
USING QUARKXPRESS SERVER NAME="uploadFile">