USING QUARKXPRESS SERVER } else { document.getElementById(“box1File”).name = “”; } document.getElementById(“Page”).name = “Page”; document.getElementById(“Layout”).name = “Layout”; url = prefix + port + renderer + file; document.getElementById(“form1”).action = url; } The Submit_onclick() function reads the values from the formand builds a request URL using the server, port, and render type.
USING QUARKXPRESS SERVER The form’s method is POST. The user agent conducts an HTTP post transaction using the value of the action attribute (the URL), and a message is created according to the content type specified by the enctype attribute. When you use a multipart HTTP post request, you can include in the request any files which are required by the rendering process, including QuarkXPress templates, picture files, modifier XML, and digital publishing assets.
USING QUARKXPRESS SERVER If you’ve written a Server XTensions module, you can extend the XML interface to include any changes it makes to the Modifier DTD by simply modifying an XML file and regenerating the stubs. To exclude empty tags in the request HTML, set the value of the appropriate variable to null. For Javadocs, WSDL schemas, and JSP samples, see the Welcome page that displays when you launch QuarkXPress Server Manager. The following topics describe the general Web services classes.
USING QUARKXPRESS SERVER as a URL. Because the object model works on SOAP, which can be slow when transferring large binary files, you might choose to set this value to “true” if you suspect that the response is going to be several megabytes or larger. Indicates whether file bypassFileInfo info should be fetched Boolean before executing the command. Context in which the context String command is being executed.
USING QUARKXPRESS SERVER Processes the request context and returns the result. Parameter Type Description Argument passed to RequestService. Contains settings processRequest that must be set requestCmd QRequestContext once per request. All chained requests are set inside the request context. Creates a new session and returns a session ID. Parameter Type Description Timeout for the session in milliseconds.
USING QUARKXPRESS SERVER sessionId Parameter Type sessionId String Description Session to be closed. Gets all the open documents in the session. If the session does not exist, an error is returned. getOpenDocs Parameter Type sessionId String Description Session whose open documents are sought. getOpenSessions Gets all open sessions. getPreferences Gets QuarkXPress Server preferences. setPreferences Sets QuarkXPress Server preferences. getXPressDOM Creates a DOM for the specified document.
USING QUARKXPRESS SERVER null, this value is supplied by the load balancer. If the indicated server is not an active registered server, an error is thrown. The port for the port Integer server specified in the host parameter. Session in which sessionId String the document should be opened. Opens the specified document and keeps it open until further notice. If the document is already open, an error is returned. If the session does not exist, an error is returned.
USING QUARKXPRESS SERVER open in another session, an error is returned. If the document is marked dirty, an error is returned (a document is marked dirty when the server that opened the document has become inactive; in such a case, the document must be closed and opened again). Parameter Type reqContextObj QRequestContext Description Request to be executed. Session in which the request should be executed. This value may be null.
USING QUARKXPRESS SERVER an error is returned (a document is marked dirty when the server that opened the document has become inactive; in such a case, the document must be closed and opened again). Parameter Type Description Document to be saved. Must be the same name that docName String was used when opening or creating the document. New name of the document. If null, newName String the document is saved with the old name. Relative path where the document should be saved.
USING QUARKXPRESS SERVER QRequest Base class for all request objects (such as PDFRenderRequest). All request Description objects share some common data members, which are described below. Type Web service data object Name Types Description QuarkXPress Server request that includes Members request QRequest instances of request objects chained together. RequestParameters Generic class for executing any request and for adding dynamic properties Description to a request.
USING QUARKXPRESS SERVER streamValue.) Stream value of the streamValue byte[] 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. Type Web service data object Name Types Description The type of the contentType String response. For example, “text/xml” or “text/plain.” If the response type is textData String text, this contains the text.
USING QUARKXPRESS SERVER multipart, this array contains the multipart response parts. QRequestContext context = new QRequestContext(); context.setDocumentName(“sample.qxp”); context.setResponseAsURL(true); JPEGRenderRequest request = new Example, object model JPEGRenderRequest(); request.setJPEGQuality(“4”); context.setRequest(request); RequestService requestService = new RequestServiceStub(); QContentData response = requestService.processRequest(context); System.out.println(response.
USING QUARKXPRESS SERVER named “ManagerContainerConfig.xml” and instantiates all of the beans listed in the file. QuarkXPress Server Manager then initializes by reading various configuration options from a file named “ManagerConfig.xml.” You can deploy QuarkXPress Server Manager in its own Tomcat container, in an external Tomcat container, or in a shared Spring context. For more information, see “Deploying QuarkXPress Server Manager” in the QuarkXPress Server ReadMe.
USING QUARKXPRESS SERVER selected as the document pool, but the folder is no longer shared. What to do: In the QuarkXPress Server administration interface, choose Administration > Preferences > General and set Document Root Folder to a shared folder. HTTP Error #404 QuarkXPress Server Error #–35 This alert displays if QuarkXPress Server is running on Mac OS and a shared network volume was Cannot find required volume or folder. selected as the document pool, but the volume is no longer shared.
USING QUARKXPRESS SERVER [com.quark.qxps.core.server.ServerRendererMonitor][pool-1-thread1] - The QuarkXPress Server Renderer with processId 2620 had quit while processing the transaction 87212dae-6ba3-4b3f-97bbea8f0c255bf9. To download all logs to a non-server computer, click Show Transaction Log in the QuarkXPress Server Web interface, then click Download Logs on the upper right.
USING QUARKXPRESS SERVER and updating server settings, and presenting and clearing App Studio Publishing Portal credentials. Namespace appstudio Lets you generate an HTML5 article and upload it to the App Studio Publishing Portal. For upload String example:http://localhos t:8080/ appstudio/upload/temp late.qxp? organization=XXX& publication=YYY&issue =ZZZ& article=AAA Lets you generate an HTML5 article and returns it as a .zip file.
USING QUARKXPRESS SERVER layout by name or ID. The first layout is Layout 1. parameters Response page Integer pages String (page range) Lets you specify a page. Lets you specify a range of pages. A .zip file containing an HTML5 article. The renderer for this image type has no way HTTP Error #406 This alert displays if you submit of rendering the desired a render request with the box parameter. objects. Alerts Cannot open this document type. Please select a QuarkXPress document or template.
USING QUARKXPRESS SERVER AVE for iPad dialog box, use document. For example:http://localhos t:8080/ave/ sample.qxp?outputstyle =document Lets you specify an output format. Use format String avemag for AVE-Mag or avedoc for AVE-Doc. The default is avemag. Render modifier parameters Lets you specify a layout layout by name or ID. String The first layout is Layout 1. Response page Integer Lets you specify a page. pages String (page range) Lets you specify a range of pages. A .
USING QUARKXPRESS SERVER service.processRequest(requestCtx); Notes The default AVE output style is used. eps The eps render type returns an EPS rendering of a page or spread. Namespace EPS Lets you specify an output style. To use a named output style, use the name of that output style. For example:http://localhos t:8080/pdf/ sample.qxp?outputstyle =stylename To use outputstyle stylename settings that have been captured with the Capture Settings in the QuarkXPress Print dialog box, use document.
USING QUARKXPRESS SERVER produceblankpages 1 | 0 | true | false | yes | no Lets you specify whether to render blank pages. Lets you specify a Float .1 to 6.92 for scale Windows .1 to 8 on Mac OS scaling percentage. The valid values are from .1 (10%) to 8 (800%) on Mac OS or 6.92 (692%) on Windows. Lets you specify a spread. The first spread spread is spread 1. In a facing- Integer page document, spread 1 consists of the first parameters page. Lets you specify a layout layout by name or ID.
USING QUARKXPRESS SERVER epsreq.setEPSData(request.getParameter(“EPSData”)); epsreq.setEPSFormat(request.getParameter( “EPSFormat”)); epsreq.setEPSPreview(request.getParameter( “EPSPreview”)); requestCtx.setRequest(epsreq); //STEP3: Create the service and call the //processRequest() API RequestService service = new RequestServiceStub(); com.quark.qxpsm.QContentData data = service.processRequest(requestCtx); You can specify an output style and set additional local parameters of that output style.
USING QUARKXPRESS SERVER //processRequest() API RequestService service = new RequestServiceStub(); com.quark.qxpsm.QContentData data = service.processRequest(requestCtx); You can only create an ePUB file from a project that includes a reflow Notes article. jpeg The jpeg render type returns a JPEG rendering of a page or spread. Namespace JPEG Lets you specify the image quality of a rendered JPEG image.
USING QUARKXPRESS SERVER pages true | false Lets you specify a range of pages for request. (58,1-3 etc.) boxes String page Integer Lets you request multiple boxes. Lets you request a single page. Lets you specify a Float .1 to 6.92 for scale Windows .1 to 8 on Mac OS) scaling percentage. The valid values are from .1 (10%) to 8 (800%) on Mac OS or 6.92 (692%) on Windows. Render modifier box parameters String Lets you request a single box. Lets you specify a spread.
USING QUARKXPRESS SERVER The first layout is Layout 1. Lets you specify a outputstyle String Kindle output style by name or ID. Response A Kindle (.mobi) file. The renderer for this image type has no way of rendering the desired objects. Alerts HTTP Error #406 This alert displays if you submit a render request with the pages or box parameter. Kindle not created. There is no reflow HTTP Error #10543This error appears if there is layout in the no reflow layout. document.
USING QUARKXPRESS SERVER box (Administration > Preferences > General) in the QuarkXPress Server Web interface. Logs See “Understanding logging.” Example, GET URL http://localhost:8080/literal/Story.doc Request object name: LiteralRequestcom.quark.qxpsm.QRequestContext rc = new com.quark.qxpsm.QRequestContext(); if(!this.DocumentSettings1.documentName.Text.Equals(“”)) rc.documentName = Example, object model this.DocumentSettings1.documentName.Text; rc.
USING QUARKXPRESS SERVER Lets you specify includehyperlinks 1 | 0 | true | false | yes | whether to include no hyperlinks in the PDF file. Lets you specify whether to export lists exportlistsashyperlinks 1 | 0 | true | false | yes | no as hyperlinks. To use this parameter, you must set includehyperlinks to true. Lets you specify whether to export the exportindexesashyperli 1 | 0 | true | false | yes | nks no index as hyperlinks. To use this parameter, you must set includehyperlinks to true.
USING QUARKXPRESS SERVER whether to include TIFF omittiffandeps and EPS images from an OPI server. Lets you include, omit, registration off, centered, offcenter and configure registration marks. Lets you specify the offset 0–30 (in points) offset of registration marks. bleed pageitemsonly, Lets you specify a bleed symmetric type. Lets you specify a bleed offset to use. This offsetbleed 0–6 (in inches) option is available only when bleed is set to symmetric.
USING QUARKXPRESS SERVER PDF to Folder is selected in QuarkXPress Server PDF preferences. Lets you specify the PostScript file name. This option is available psfile String only when PostScript for later Distilling is selected in QuarkXPress Server PDF preferences. Lets you embed a thumbnail bw | color thumbnail in the PDF file. mode composite | separations Lets you specify the PDF file’s color mode. Lets you turn font download on or off.
USING QUARKXPRESS SERVER number of the first layout to render when you render multiple layouts as separate PDF files. PDF files are saved at the location specified in QuarkXPress Server preferences (Administration > no Preference > General > Server > Document Root Folder). The first layout in a project is layout 0. For example:http://localhos t:8080/pdf/multilayout.
USING QUARKXPRESS SERVER of pages. Lets you specify a spread. The first spread spread is spread 1. In a facing- Integer page document, spread 1 consists of the first page. Lets you specify a layout layout by name or ID. String The first layout is Layout 1. spreads Response invalid No file produced. The project requested contains only blank pages. the output use spreads. HTTP Error #500QuarkXPress Server Error #147This alert displays if you try to render an invalid page range.
USING QUARKXPRESS SERVER = service.processRequest(requestCtx); For more information about the object model, see the samples. 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.
USING QUARKXPRESS SERVER values are: 1 (lowest compression), 2 (medium compression), 3 (high compression), and 4 (highest compression). The default value is 1. Lets you specify transparentpng whether to generate a true | false PNG file that uses transparency. Lets you specify upadateimage true | false whether to update imported pictures. Lets you specify whether to update the updateflow true | false text flow version of a project to the current version.
USING QUARKXPRESS SERVER 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.
USING QUARKXPRESS SERVER Default: prntbleed=sym,yes,0 Lets you specify an output style. To use a named output style, use the name of that output style. For example:http://localhos t:8080/ postscript/ sample.qxp?outputstyle =stylename To use outputstyle stylename, document settings that have been captured with the Capture Settings in the QuarkXPress Print dialog box, use document. For example:http://localhos t:8080/ postscript/ sample.
USING QUARKXPRESS SERVER pages. PostScript printer HTTP Error #500 This alert displays if the mapped to file not PostScript printer or driver is not set to Print to found File. This Output Style does This alert displays if you specify a nonexistent not exist. output style. 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.
USING QUARKXPRESS SERVER component in an article to render. For example:http://localhos t:8080/copydesk/ abc.qcd?component=co mp1 Lets you render an article in lightweight or full-featured format. format lightweight | For fullfeatured example:http://localhos t:8080/qcddoc/ abc.qxp?article=article1 & format=fullfeatured Lets you save a copy of an article that was created in QuarkCopyDesk as a template. The default value is true.
USING QUARKXPRESS SERVER spreadrange=firsthttp:// localhost:8080/saveas/q cddoc/ PagePicture.qxp?includ epagepicture=true Lets you modify the Render modifier modify parameters XML article with XML. For more information, see “XML modify.” Response A QuarkCopyDesk article. There is no box with This alert displays if the box corresoponding to a the specified identifier. referenced component does not exist.
USING QUARKXPRESS SERVER example:http://localhos t:8080/saveas/ qxpdoc/project.qxp?sav eastemplate=trueYou can also use this parameter to save a copy of a template as a project. For example:http://localhos t:8080/saveas/ qxpdoc/template.qpt?sa veastemplate=false Lets you specify a Render modifier layout parameters layout by name or ID. String The first layout is Layout 1. Response A QuarkXPress project.
USING QUARKXPRESS SERVER administration interface (Administration > Preferences > Renderer > PDF) and always sends the PDF file to the browser. Namespace Screenpdf Lets you specify an output style. To use a named output style, use the name of that output style. For example:http://localhos t:8080/screenpdf/ sample.qxp?outputstyle =stylename To use outputstyle stylename settings that have been captured with the Capture Settings in the QuarkXPress Print dialog box, use document.
USING QUARKXPRESS SERVER Lets you specify whether to export lists exportlistsasbookmarks 1 | 0 | true | false | yes | no as bookmarks. To use this parameter, you must set includehyperlinks to true. Lets you specify mode composite or whether the PDF file is separations a composite or includes separations. Lets you specify the color space of the PDF printcolors cmyk, rgb, grayscale, file. This option is cmykandspot, asis available only when mode is set to composite.
USING QUARKXPRESS SERVER lowresolution 1 | 0 | true | false | yes | Lets you request a low- no resolution (36 dpi) PDF. Lets you specify the colorimagedownsample 9–2400 resolution of color images. grayscaleimagedownsa mple monochromeimagedow nsample Lets you specify the 9–2400 resolution of grayscale images. Lets you specify the 9–2400 resolution of monochrome images.
USING QUARKXPRESS SERVER which fonts are downloaded. Lets you specify which layers layers should be String included, as a commaseparated list. transparencyres Integer value from 36 to 3600 Lets you specify the resolution for flattened content. Lets you use PDF/X–1a verification pdfx1a | pdfx3 or PDF/X–3 verification. Lets you specify separate yes | no whether to output each page as a separate file. Lets you specify produceblankplates yes | no whether to include blank plates.
USING QUARKXPRESS SERVER Logs See “Understanding logging.” http://localhost:8080/screenpdf/sample.qxp? Example, GET URL colorimagedownsample=72&colorcompression=0 Request object name: ScreenPDFRenderRequest // STEP1: Create the QuarkXPress Server Request Context // and set the nescessary properties com.quark.qxpsm.QRequestContext requestCtx = new com.quark.qxpsm.QRequestContext(); String docName = request.getParameter(“documentName”) ; requestCtx.
USING QUARKXPRESS SERVER HTML5 Modifier XML Markup The following table pertains to HTML5 publications: Namespace html5 Parameters html A Guide to QuarkXPress Server 2017 | 81
USING QUARKXPRESS SERVER Render modifier parameters layout 82 | A Guide to QuarkXPress Server 2017
USING QUARKXPRESS SERVER page A Guide to QuarkXPress Server 2017 | 83
USING QUARKXPRESS SERVER pages 84 | A Guide to QuarkXPress Server 2017
USING QUARKXPRESS SERVER Response A .zip file containing an HTML5 article. Alerts The renderer for this image type has no way of rendering the desired objects.
USING QUARKXPRESS SERVER Cannot open this document type. Please select a QuarkXPress document or template.
USING QUARKXPRESS SERVER Logs See “Understanding logging.” URL Request to export as HTML5 Multi Device Output Example, object model http://:/html5/.
USING QUARKXPRESS SERVER annotateerrors The annotateerrors render modifier lets you include descriptions of rendering errors as notes in the layout itself. In rendered QuarkXPress files, errors are displayed as notes. In rendered PDFs, errors are displayed as comments. In XML output, errors are displayed as notes XML markup. Includes descriptions of Parameters annotateerrors String Compatible with pdf, qxpdoc, xml, postscript Logs See “Understanding logging.
USING QUARKXPRESS SERVER objects. Logs See “Understanding logging.” Example GET URL http://localhost:8080/png/sample.qxp?box=pictbox To render a box in a particular layout, use a URL like the following:http://localhost:8080/png/sample.qxp? Notes layout=2&page=3&box=textboxWhen you render using the box parameter, the box ID has a higher priority than the box name. boxes The boxes render modifier lets you render multiple boxes. boxes Lets you specify which String boxes to render.
USING QUARKXPRESS SERVER items to return. For example:http://localhos t:8080/xml/sample.qxp ? compoxitionzones=czb ox1, czbox2 Compatible with Alerts Logs xml Invalid box given in Error #10401 This alert displays if you request a Box Param. box that is not a Composition Zones item. See “Understanding logging.” 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.
USING QUARKXPRESS SERVER QuarkXPress layer visibility preferences. Lets you suppress or allow the output of a layer. You can use this parameter in suppressoutput Boolean (1 | 0 | true | false | yes | no) conjunction with the addlayer and layerattribute parameters. This parameter overrides QuarkXPress suppress output preferences. Lets you lock or unlock a layer. You can use this parameter in conjunction with the locked Boolean (1 | 0 | true | addlayer and false | yes | no) layerattribute parameters.
USING QUARKXPRESS SERVER HTTP Error #500 This alert displays if you do not Invalid parameter specify additional attributes or specify attributes value. with invalid values in an addlayer or layerattribute request. This layer has been locked and cannot be modified. HTTP Error #500 This alert displays if you try to add or modify an item on a locked layer. See “Understanding logging.” Logs To render a single layer, use a URL like the following:http://localhost:8080/doc.
USING QUARKXPRESS SERVER layout by its name, use a URL like the following:http://localhost:8080/png/sample.qxp?layout=Layout 2 movepages The movepages render modifier lets you move pages prior to rendering. Lets you specify which pages to move. You can use a single page number (for example, movepages String 2) or a range of pages with the starting and ending page numbers separated by a hyphen (for example, 2–5). Parameters Lets you specify the page after which the page or pages should be moved.
USING QUARKXPRESS SERVER pdfreq.setAfterPage(“7”); requestCtx.setRequest(pdfreq); // STEP3: Create the service and call the // processRequest() API RequestService service = new RequestServiceStub(); com.quark.qxpsm.QContentData data = service.processRequest( requestCtx); The movepages operation executes only after all other modifications are Notes complete. For example, if you use movepages in a modify request, the pages are moved only after the modify request is complete.
USING QUARKXPRESS SERVER To render pages in a particular layout, use a URL like the Notes 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. Lets you specify a scaling percentage. The Parameters scale valid values are from .1 Float (10%) to 8 (800%) on Mac OS or 6.92 (692%) on Windows.
USING QUARKXPRESS SERVER 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 HTTP Error #404 QuarkXPress Server Error #–43 Alerts File not found. This alert displays if the imported file is not available to QuarkXPress Server. If the request succeeds, a transaction success message is written to the QuarkXPress Server transaction log file. For example: 8/3/2005 11:27:42 — jpeg/sample.qxp — Type: image/jpeg — Size: 31715 — Client: 127.0.0.1If Logs an alert displays, an error message is written to the QuarkXPress Server error log file.
USING QUARKXPRESS SERVER Error Log. The transaction entry in the error log contains the date and time of the request, the error code, and the error message. The following is a sample of an error transaction log entry:12/2/2005 16:16:26 — Error — Error Code: –43 — File not found. To apply Comic Sans MS to text in the box named “HeadBox,” use a URL Example, GET URL like the following:http://localhost:8080/png/sample.qxp?HeadBox=Headline&font name=Comic Sans MS Request object name: RequestParameterscom.
USING QUARKXPRESS SERVER Response A preview of the project with the imported picture. HTTP Error #404 QuarkXPress Server Error #–43 File not found. This alert displays if the imported file is not available to QuarkXPress Server. Alerts The specified file failed to load in the picture box. HTTP Error #500 This alert displays if you attempt to import an invalid picture file. If the request succeeds, a transaction success message is written to the QuarkXPress Server transaction log file.
USING QUARKXPRESS SERVER location for the savedas project (other than the document pool). Lets you specify whether the project should be saved to the document pool.The default value for this paramter is true. However, if you specify savetopool true | false a path value, the default value changes to false, which means if you want the project saved to the document pool, you must explicitly set savetopool to true.
USING QUARKXPRESS SERVER 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 Save as request and chain it to the document context SaveAsRequest saveasreq = new SaveAsRequest(); saveasreq.newName = this.newname.Text; if((this.path.Text != null) && (!this.path.Text.Equals(“”))) saveasreq.newFilePath = this.path.Text; saveasreq.replaceFile = this.replace.
USING QUARKXPRESS SERVER only the first page of the paginated layout.If you do not supply an XML string or file (for example: http://localhost:8080/p df/Sample.qxp?paginat e), QuarkXPress Server attempts to use the XML file that was associated with the layout in QuarkXPress. Response The layout with the imported XML. Alerts Invalid XML String HTTP Error #500 This alert displays if you supply an invalid XML string in the thexmldoc parameter.
USING QUARKXPRESS SERVER svc.processRequest(rc); 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. If you use this parameter with updatefromfile, this lets you specify the file in which you want to update the geometry.
USING QUARKXPRESS SERVER com.quark.qxpsm.QRequestContext(); if(!this.DocumentSettings1. documentName.Text.Equals(“”)) rc.documentName = this.DocumentSettings1.documentName.Text; // STEP 2 (SPECIFIC TO REQUESTS): Create the XML Import request XMLImportRequest xmlimportreq = new XMLImportRequest(); xmlimportreq.XMLDocument = this.thexmldoc.Text; rc.request = xmlimportreq; // STEP 3(SPECIFIC TO REQUESTS): Create the JPEG renderer request JPEGRenderRequest jpreq = new JPEGRenderRequest(); xmlimportreq.
USING QUARKXPRESS SERVER Example GET URL http://QXPServer8:8080/project1.qxp?modify=file:sample.xml This XML deletes page 2 of a QuarkXPress layout: Example XML Response The updated QuarkXPress project. If the request succeeds, a transaction success message is written to the QuarkXPress Server transaction log file.
USING QUARKXPRESS SERVER 30 true true 44 30 false 30 30
USING QUARKXPRESS SERVER not valid or well you supply is not well-formed or does not adhere formed. to the Modifier DTD. The XML document contains an invalid tag value. HTTP Error #500 This alert displays if you supply an invalid value in the XML. If the request succeeds, a transaction success message is written to the QuarkXPress Server transaction log file. For example: 8/3/2005 11:27:42 — Logs jpeg/sample.qxp — Type: image/jpeg — Size: 31715 — Client: 127.0.0.
USING QUARKXPRESS SERVER ‘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“ • “ID“ • “TEXT“ • “PICTURE“ • “GEOMETRY“ • “CONTENT“ • “SHADOW“ • “FRAME“ The following XML shows how some of these parameters work.
USING QUARKXPRESS SERVER HTTP Error #500This alert The XML document is not valid displays if the XML you supply or well formed. is not well-formed or does not adhere to the Modifier DTD. The XML document contains an invalid tag value. HTTP Error #500 This alert displays if you supply an invalid value in the XML. If the request succeeds, a transaction success message is written to the QuarkXPress Server transaction log file.
USING QUARKXPRESS SERVER Response A preview of the QuarkXPress project with the box deleted. HTTP Error #404 QuarkXPress Server Error #–43 File not found. This alert displays if you specify an invalid XML file or request a document that is not available to QuarkXPress Server. Bad filename/ pathname.
USING QUARKXPRESS SERVER To add a box to an existing group, use XML like the following: To remove a box from an existing group, use XML like the following:
USING QUARKXPRESS SERVER • “PARAGRAPH“ • “FORMAT“ • “SHADINGSTYLE (Modifier schema)“ • “DROPCAP“ • “TABSPEC“ • “TAB“ • “RULE“ • “RICHTEXT“ The following XML shows how some of these parameters work.
USING QUARKXPRESS SERVER Response A preview of a QuarkXPress project with the values in the ModifierXT tags applied on text boxes. HTTP Error #404 QuarkXPress Server Error #–43 File not found. This alert displays if you specify an invalid XML file or request a document that is not available to QuarkXPress Server. Bad filename/ pathname. This alert displays if you specify an invalid file name or path.
USING QUARKXPRESS SERVER RichText Text ID Box Layout ModifierFileRequestFor ModifierFileRequest, model 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 QUARKXPRESS SERVER –360 and 360 degrees. is invalid. The value of Picture HTTP Error #500 This alert displays if the value Skew must be between of the child text node of the element is –75 and 75 degrees. invalid. The XML document contains an invalid tag value. The specified box cannot be modified. HTTP Error #500 This alert displays if you supply an invalid value in the XML.
USING QUARKXPRESS SERVER the following object hierarchy:ModifierRequest < Project < Layout < model Spread < Box < Picture For a list of the Picture object’s properties, see the JavaDoc installed with QuarkXPress Manager. You cannot replace an image with the Modifier XTensions software.If you specify , , and Notes for a picture, only the first of these elements will be applied. Importing data Imports text or image data into a project.
USING QUARKXPRESS SERVER displays if you specify an invalid XML file or request a document that is not available to QuarkXPress Server. HTTP Error #500 This alert The XML document is not valid displays if the XML you supply or well formed. is not well-formed or does not adhere to the Modifier DTD. HTTP Error #500 This alert There is no box with the displays if the box specified by specified identifier. the child text node of the element does not exist.
USING QUARKXPRESS SERVER When specifying a path, use URLs like the following: http://localhost:8080/Sample.qxp? textboxname@dataimport=file:c:\file.txt http://localhost:8080/Sample.qxp? pictureboxname@dataimport=c:\file.jpg You can import text directly into a box from the URL string. For example: http://localhost:8080/Sample.qxp? textboxname@dataimport=Newdata When you import a file that uses style sheets, you can control how those style sheets are handled.
USING QUARKXPRESS SERVER any accessible network location, or supplied as part of a multipart HTTP request. Exporting Job Jackets files during deconstruction While using the xml namespace to deconstruct a QuarkXPress project, you can specify the jjname parameter in the same request to output the Job Jackets file to the document pool. For example: http://localhost:8080/xml/project.qxp?jjname=jjfilename.
USING QUARKXPRESS SERVER Deconstructing a project The xml namespace returns an XML representation of the target project. To use this namespace, use a URL like the following: http://QXPServer8:8080/xml/project1.qxp When you use the xml namespace, QuarkXPress Server returns an XML file that represents the deconstructed project. This XML file adheres to the Modifier DTD (see “Modifier DTD (annotated)“).
USING QUARKXPRESS SERVER Tells the xml namespace to describe elements using rather than . This relativegeometry allows an item’s position to be defined either in relation to the page or in relation to the entire spread. Use only with the relativegeometry parameter. Tells the xml namespace to describe relativetopage elements using elements in which ORIGIN@RELATIVETO=”page” (as opposed to “spread”).
USING QUARKXPRESS SERVER GAPSHADE=”100%”OPACITY=”100%” SHADE=”100%” STYLE=”Solid” WIDTH=”0 pt”/>
USING QUARKXPRESS SERVER If you are using QuarkXPress Server Manager, you can send a similar command with a QuarkXPress Server Manager URL or through Web services. Every project created with the construct namespace must be based on a Job Ticket in a Job Jackets file. Using construct to create a project is roughly equivalent to using the File > New > Project from Ticket command in QuarkXPress.
USING 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 is HTTP Error #500 This alert displays if the XML not valid or well you supply is not well-formed or do not adhere formed. to the Modifier DTD. The XML document contains an invalid tag value. HTTP Error #500 This alert displays if you supply an invalid value in the XML.
USING QUARKXPRESS SERVER It’s important to understand that although the construct namespace uses the same DTD that you use when you modify an existing project, the construct namespace uses it differently. When you use the construct namespace, the XML you pass simply contains a description of everything in the document you want to create — much as an HTML file describes a page you want to display in a browser.
USING QUARKXPRESS SERVER 90 95 190 195 Master pages are stored in a deconstructed project’s Job Jackets file. To create a page from this master page, insert a MASTER attribute into the PAGE element and indicate the number of the target master page.
USING QUARKXPRESS SERVER To create a layout using a layout specification in the template’s Job Jackets structure, use XML like the following: Scrollable Layout To create a l
USING QUARKXPRESS SERVER This is the Heading This is the text file:MyFile.
USING QUARKXPRESS SERVER 190 195 Working with boxes To add text and pictures to a project, you must add text boxes and picture boxes to the project’s element. Both are represented by elements, but text boxes have a BOXTYPE attribute of CT_TEXT, and picture boxes have a BOXTYPE attribute of CT_PICT.
USING QUARKXPRESS SERVER SHADOW element that describes the box’s drop shadow. Additional BOX elements are described in the following sections. The z-order (stacking order) of boxes in the layout is determined by the order of the elements in the XML, from rearmost to frontmost. Fitting a box to text or a picture The element type lets you automatically adjust the size of a box to fit the text or picture in that box. The default behaivior is to not fix a box to its content.
USING QUARKXPRESS SERVER Test before an anchored text box. file:example.docx Test between anchored text boxes. Text in the second 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:
USING QUARKXPRESS SERVER The order of the elements in a indicates the order in which the boxes were selected prior to grouping. The z-order of boxes in the layout is determined by the order of the elements in the XML, from rearmost to frontmost. Working with pictures The element supports a variety of features, including the ability to specify runaround, opacity, and drop shadow characteristics. For more information, see the Modifier schema.
USING QUARKXPRESS SERVER Working with text Every element for text contains a element, and every element contains a element. A element can contain elements, each of which contains elements. A element can also simply contain elements. A text element can also contain a element that indicates the origin of the text in that box.
USING QUARKXPRESS SERVER Applying local formatting To apply local formatting to text, use the attributes of the element. For example: The sun has risen. To apply paragraph formatting, use a element. For example: The sun has risen.
USING QUARKXPRESS SERVER • • Specify a pre-defined text shading style using the SHADINGSTYLENAME attribute of the element. Specify a pre-defined text shading style using the NAME attribute of the element, within the PARAGRAPH/FORMAT nodes.
USING QUARKXPRESS SERVER The sun has risen. The sun has set. Retrieving copyfitting information In deconstructed projects, a element can contain a element. The element indicates the point where text has overflowed the current box and identifies the box where the text continues. The element also contains attributes that indicate where in the text the break occurs.
USING QUARKXPRESS SERVER ... | ... | |