com.priint.comet.port.whiteboard
Interface CometWhiteboard


@MTOM(threshold=4096)
public interface CometWhiteboard


Nested Class Summary
static class CometWhiteboard.DocumentInfo
           
static class CometWhiteboard.DocumentStatus
           
static class CometWhiteboard.DocumentType
           
static class CometWhiteboard.RecordID
           
static class CometWhiteboard.Renderer
           
static class CometWhiteboard.ReorganizeLevel
           
static class CometWhiteboard.SessionInfo
           
 
Method Summary
 javax.activation.DataHandler adapterCreateDocument(java.lang.String sessionID, java.lang.String documentID, java.lang.String options)
          Adapt and download a document.
 java.lang.String adapterCreateDocumentOnServer(java.lang.String sessionID, java.lang.String documentID, java.lang.String options, java.lang.String newDocumentID)
          Adapt a document and create an InDesign® document on the Server.
 javax.activation.DataHandler adapterCreatePDF(java.lang.String sessionID, java.lang.String documentID, java.lang.String options, java.lang.String pdfProfile)
          Adapt a document to the size and specification given in options and generate a PDF.
 javax.activation.DataHandler adapterCreatePreview(java.lang.String sessionID, java.lang.String documentID, java.lang.String options, double resolution)
          Adapt a document to the size and specification given in options and generate a preview.
 boolean cometGroupAddToGroup(java.lang.String sessionID, java.lang.String documentID, int groupID, int[] elementIDs, boolean asSubGroup, java.lang.String options)
          Add elements to a comet group.
 void cometGroupDeleteGroup(java.lang.String sessionID, java.lang.String documentID, int groupID, CometWhiteboard.ReorganizeLevel reorganize, java.lang.String options)
          Delete a comet group.
 javax.activation.DataHandler cometGroupGetElements(java.lang.String sessionID, java.lang.String documentID, int groupID, java.lang.String options)
          Get all elements of a comet group.
 javax.activation.DataHandler cometGroupGetNotes(java.lang.String sessionID, java.lang.String documentID, int groupID, java.lang.String options)
          Get all notes of a comet group.
 javax.activation.DataHandler cometGroupGetPlaceholders(java.lang.String sessionID, java.lang.String documentID, int groupID, boolean evaluateSyncState, java.lang.String options)
          Get the placeholders of a comet group.
 javax.activation.DataHandler[] cometGroupGetPreviews(java.lang.String sessionID, java.lang.String documentID, int groupID, double resolution, java.lang.String options)
          Get a comet group previews.
 int cometGroupInsertAfter(java.lang.String sessionID, java.lang.String documentID, int groupID, CometWhiteboard.RecordID recordID, int templateID, CometWhiteboard.ReorganizeLevel reorganize, java.lang.String options)
          Insert a new comet group (i.e. link a product with a template) after an existing group.
 int cometGroupInsertBefore(java.lang.String sessionID, java.lang.String documentID, int groupID, CometWhiteboard.RecordID recordID, int templateID, CometWhiteboard.ReorganizeLevel reorganize, java.lang.String options)
          Insert a new comet group (i.e. link a product with a template) before an existing group.
 int cometGroupJoinGroups(java.lang.String sessionID, java.lang.String documentID, int[] groupIDs, boolean asSubGroups, java.lang.String options)
          Join comet groups.
 void cometGroupLoadPlaceholders(java.lang.String sessionID, java.lang.String documentID, int groupID, int[] placeholderIDs, CometWhiteboard.RecordID recordID)
          Load all placeholders linked with Record recordID found on group groupID.
 boolean cometGroupRemoveFromGroup(java.lang.String sessionID, java.lang.String documentID, int groupID, int[] elementIDs, java.lang.String options)
          Remove elements from a comet group.
 int cometGroupReplaceGroup(java.lang.String sessionID, java.lang.String documentID, int groupID, CometWhiteboard.RecordID recordID, int templateID, CometWhiteboard.ReorganizeLevel reorganize, java.lang.String options)
          Replace an existing comet group by a new one.
 boolean cometGroupResolveGroup(java.lang.String sessionID, java.lang.String documentID, int groupID, boolean resolveSubGroups, java.lang.String options)
          Resolve a comet group.
 boolean cometGroupSetNotes(java.lang.String sessionID, java.lang.String documentID, int groupID, javax.activation.DataHandler notes)
          Set (i.e. replace the formerly) notes of a comet group.
 void cometGroupSetPlaceholderImage(java.lang.String sessionID, java.lang.String documentID, int groupID, int placeholderID, CometWhiteboard.RecordID recordID, javax.activation.DataHandler data, boolean executeSaveMethod)
          Apply image to all placeholders linked with Record recordID found on group groupID overriding the default load method.
 void cometGroupSetPlaceholderImagePath(java.lang.String sessionID, java.lang.String documentID, int groupID, int placeholderID, CometWhiteboard.RecordID recordID, java.lang.String path, boolean executeSaveMethod)
          Apply image path to all placeholders linked with Record recordID found on group groupID overriding the default load method.
 void cometGroupSetPlaceholderValue(java.lang.String sessionID, java.lang.String documentID, int groupID, int placeholderID, CometWhiteboard.RecordID recordID, java.lang.String value, boolean executeSaveMethod)
          Apply value to all placeholders linked with Record recordID found on group groupID overriding the default load method.
 void cometGroupSyncPlaceholders(java.lang.String sessionID, java.lang.String documentID, int groupID, int[] placeholderIDs, CometWhiteboard.RecordID recordID)
          Sync all placeholders linked with Record recordID found on group groupID.
 boolean cometGroupUpdatePlaceholders(java.lang.String sessionID, java.lang.String documentID, int groupID)
          Update the placeholder definitions of all placeholders found in a comet group.
 CometWhiteboard.SessionInfo connectionGetNewChildSession(java.lang.String sessionID)
          Get Child Session of Current Session.
 CometWhiteboard.SessionInfo connectionLogin(java.lang.String user, java.lang.String password, java.lang.String datasetName)
          Login to comet server.
 void connectionLogout(java.lang.String sessionID)
          Logout from comet server.
 boolean connectionSetUserProperty(java.lang.String sessionID, java.lang.String key, java.lang.String value)
          Set a user property.
 java.lang.String copyMasterdocument(java.lang.String sessionID, java.lang.String masterdocName, java.lang.String newDocumentID)
          Copy a masterdocument.
 javax.activation.DataHandler createPDF(java.lang.String sessionID, java.lang.String masterdocName, javax.activation.DataHandler itemsXML, CometWhiteboard.Renderer renderer, java.lang.String pdfProfile, java.lang.String options)
          Place products in a document (either blank or copied from a masterdocument) and return a PDF
 javax.activation.DataHandler createProductPDF(java.lang.String sessionID, java.lang.String masterdocName, CometWhiteboard.RecordID recordID, int templateID, java.lang.String pdfProfile, java.lang.String options)
          Link a product with a template and create a PDF
 javax.activation.DataHandler createProductPreview(java.lang.String sessionID, java.lang.String masterdocName, CometWhiteboard.RecordID recordID, int templateID, double resolution, java.lang.String options)
          Link a template with a product and create a preview.
 boolean documentClose(java.lang.String sessionID, java.lang.String documentID)
          Close a document.
 boolean documentCloseImmediately(java.lang.String sessionID, java.lang.String documentID)
          Close a document immediately if the server policies allow to do so.
 java.lang.String documentCreate(java.lang.String sessionID, java.lang.String newDocumentID, java.lang.String setupParams)
          Create a document.
 java.lang.String documentCreateAs(java.lang.String sessionID, java.lang.String newDocumentID, java.lang.String filename, java.lang.String setupParams)
          Create a document and preserve the filename.
 boolean documentDelete(java.lang.String sessionID, java.lang.String documentID)
          Delete a document.
 javax.activation.DataHandler documentDownload(java.lang.String sessionID, java.lang.String documentID)
          Download a document.
 java.lang.String documentDuplicate(java.lang.String sessionID, java.lang.String documentID, java.lang.String newDocumentID)
          Duplicate a document.
 java.lang.String documentExecCScript(java.lang.String sessionID, java.lang.String documentID, int scriptID, java.lang.String arguments)
          Execute a predefined cscript on a document.
 boolean documentExists(java.lang.String sessionID, java.lang.String documentID)
          Check whether a document exists.
 boolean documentForceClose(java.lang.String sessionID, java.lang.String documentID)
          Close a document regardless of the configuration and current state in other sessions.
 javax.activation.DataHandler documentGeneratePDF(java.lang.String sessionID, java.lang.String documentID, java.lang.String pdfProfileName, java.lang.String options)
          Create a pdf of all pages / spreads of a document.
 javax.activation.DataHandler documentGetCometGroups(java.lang.String sessionID, java.lang.String documentID, java.lang.String options)
          Get all comet groups of a document.
 javax.activation.DataHandler documentGetElements(java.lang.String sessionID, java.lang.String documentID, java.lang.String options)
          Get all elements of a document.
 CometWhiteboard.DocumentInfo documentGetInfo(java.lang.String sessionID, java.lang.String documentID)
          Get information about a document, such as type, status and filename.
 javax.activation.DataHandler documentGetItems(java.lang.String sessionID, java.lang.String documentID, java.lang.String options)
          Get items (i.e.
 java.util.List<java.lang.String> documentGetLayers(java.lang.String sessionID, java.lang.String documentID)
          Get all document layers.
 java.util.List<CometWhiteboard.DocumentInfo> documentGetList(java.lang.String sessionID)
          Get a list of all documents available in the current session.
 javax.activation.DataHandler documentGetNotes(java.lang.String sessionID, java.lang.String documentID, java.lang.String options)
          Get all notes of a document.
 int documentGetPageCount(java.lang.String sessionID, java.lang.String documentID)
          Get the number of pages of a document
 javax.activation.DataHandler documentGetPackage(java.lang.String sessionID, java.lang.String documentID, java.lang.String options)
          Get a zipped package of the document.
 javax.activation.DataHandler documentGetPlaceholders(java.lang.String sessionID, java.lang.String documentID, boolean evaluateSyncState, java.lang.String options)
          Get all placeholders of a document.
 java.util.List<CometWhiteboard.DocumentInfo> documentGetSessionDocs(java.lang.String sessionID)
          Get all documents opened in the current session
 int documentGetSpreadCount(java.lang.String sessionID, java.lang.String documentID)
          Get the number of spreads of a document
 javax.activation.DataHandler documentGetSpreads(java.lang.String sessionID, java.lang.String documentID, java.lang.String options)
          Get spread information a document.
 java.util.List<java.lang.String> documentGetVisibleLayers(java.lang.String sessionID, java.lang.String documentID)
          Get all document layers visible in the current session.
 boolean documentHideAllLayers(java.lang.String sessionID, java.lang.String documentID)
          Hide all layers for the current session / document.
 boolean documentHideLayers(java.lang.String sessionID, java.lang.String documentID, java.util.List<java.lang.String> layers)
          Hide the given layers for the current session / document.
 boolean documentIsRegistered(java.lang.String sessionID, java.lang.String documentID)
          Check if a document is registered on ComeServer.
 void documentLoadPlaceholders(java.lang.String sessionID, java.lang.String documentID, int[] placeholderIDs, CometWhiteboard.RecordID recordID)
          Load all placeholders linked with Record recordID found in the document.
 javax.activation.DataHandler documentMatchItems(java.lang.String sessionID, java.lang.String documentID, javax.activation.DataHandler items, java.lang.String options)
          Compare a list of items (i.e.
 java.lang.String documentMoveFile(java.lang.String sessionID, java.lang.String documentID, java.lang.String newDocumentID)
          This will turn a document into something else - provided the newDocumentID has been registered or is known in a publication system.
 java.lang.String documentMoveTmpFile(java.lang.String sessionID, java.lang.String tmpDocumentID, java.lang.String newDocumentID)
          This will move a tmp file into something else.
 boolean documentOpen(java.lang.String sessionID, java.lang.String documentID)
          Open a document on the server.
 java.lang.String documentRegister(java.lang.String sessionID, java.lang.String newDocumentID, java.lang.String path)
          This will register an arbitrary file on comet server.
 boolean documentReorganize(java.lang.String sessionID, java.lang.String documentID, int pageIndex, CometWhiteboard.ReorganizeLevel reorganize)
          Reorganize a document starting at page pageIndex.
 boolean documentSave(java.lang.String sessionID, java.lang.String documentID)
          Save a document.
 java.lang.String documentSaveAs(java.lang.String sessionID, java.lang.String documentID, java.lang.String newDocumentID)
          Just like documentDuplicate except that the new document will be opened right afterward the operation.
 boolean documentSetActiveLayer(java.lang.String sessionID, java.lang.String documentID, java.lang.String layerName)
          Set the active layer for the current session / document.
 boolean documentSetItems(java.lang.String sessionID, java.lang.String documentID, javax.activation.DataHandler data, java.lang.String options)
          Replace the items currently placed in this document
 void documentSetNotes(java.lang.String sessionID, java.lang.String documentID, javax.activation.DataHandler notes)
          Set (i.e. replace the formerly) notes of a document.
 void documentSetPlaceholderImage(java.lang.String sessionID, java.lang.String documentID, int placeholderID, CometWhiteboard.RecordID recordID, javax.activation.DataHandler data, boolean executeSaveMethod)
          Apply image to all placeholders linked with Record recordID found in the document overriding the default load method.
 void documentSetPlaceholderImagePath(java.lang.String sessionID, java.lang.String documentID, int placeholderID, CometWhiteboard.RecordID recordID, java.lang.String path, boolean executeSaveMethod)
          Apply image path to all placeholders linked with Record recordID found in the document overriding the default load method.
 void documentSetPlaceholderValue(java.lang.String sessionID, java.lang.String documentID, int placeholderID, CometWhiteboard.RecordID recordID, java.lang.String value, boolean executeSaveMethod)
          Apply value to all placeholders linked with Record recordID found in the document overriding the default load method.
 boolean documentSetup(java.lang.String sessionID, java.lang.String documentID, java.lang.String setupParams, boolean applyAdaption)
          Setup a document, i.e.: change page size, margins, bleed and slug with or without page adaption.
 boolean documentShowAllLayers(java.lang.String sessionID, java.lang.String documentID)
          Show all layers for the current session / document.
 boolean documentShowDefaultLayers(java.lang.String sessionID, java.lang.String documentID)
          Show the default layers within the current session.
 boolean documentShowLayers(java.lang.String sessionID, java.lang.String documentID, java.util.List<java.lang.String> layers)
          Show the given layers for the current session / document.
 void documentSyncPlaceholders(java.lang.String sessionID, java.lang.String documentID, int[] placeholderIDs, CometWhiteboard.RecordID recordID)
          Sync all placeholders linked with Record recordID found in the document.
 java.lang.String documentTmpCopy(java.lang.String sessionID, java.lang.String documentID)
          Create a temporary copy of a document.
 boolean documentUnregister(java.lang.String sessionID, java.lang.String documentID)
          Unregister a document.
 boolean documentUpdatePlaceholders(java.lang.String sessionID, java.lang.String documentID)
          Update placeholder definitions in a document.
 java.lang.String documentUpload(java.lang.String sessionID, java.lang.String newDocumentID, javax.activation.DataHandler data)
          This will upload data to the server.
 java.lang.String documentUploadAs(java.lang.String sessionID, java.lang.String newDocumentID, javax.activation.DataHandler data, java.lang.String filename)
          Like documentUpload, the filename is preserved for later downloads.
 boolean elementDelete(java.lang.String sessionID, java.lang.String documentID, int elementID)
          Delete an element.
 boolean elementDeleteParagraph(java.lang.String sessionID, java.lang.String documentID, int elementID, int paragraph)
          Delete a text paragraph.
 javax.activation.DataHandler elementGetPlaceholders(java.lang.String sessionID, java.lang.String documentID, int elementID, boolean evaluateSyncState, java.lang.String options)
          Get the placeholders of a page.
 javax.activation.DataHandler elementGetPreview(java.lang.String sessionID, java.lang.String documentID, int elementID, double resolution, java.lang.String options)
          Get the preview of an element.
 boolean elementInsertParagraphAfter(java.lang.String sessionID, java.lang.String documentID, int elementID, int paragraph, java.lang.String value, java.lang.String options)
          Insert a text paragraph after an existing paragraph.
 boolean elementInsertParagraphBefore(java.lang.String sessionID, java.lang.String documentID, int elementID, int paragraph, java.lang.String value, java.lang.String options)
          Insert a text paragraph before an existing paragraph.
 void elementLoadPlaceholders(java.lang.String sessionID, java.lang.String documentID, int elementID, int[] placeholderIDs, CometWhiteboard.RecordID recordID)
          Load all placeholders linked with Record recordID found in an element
 boolean elementMoveBy(java.lang.String sessionID, java.lang.String documentID, int elementID, double offsetX, double offsetY)
          Move an element by offsetX / offsetY dpi within a spread
 boolean elementSetCellValue(java.lang.String sessionID, java.lang.String documentID, int tableID, int column, int row, java.lang.String value, java.lang.String options)
          Set the value of a table cell.
 boolean elementSetImage(java.lang.String sessionID, java.lang.String documentID, int elementID, javax.activation.DataHandler data)
          Set an element image.
 boolean elementSetImagePath(java.lang.String sessionID, java.lang.String documentID, int elementID, java.lang.String path)
          Set an elements image path.
 boolean elementSetValue(java.lang.String sessionID, java.lang.String documentID, int elementID, int paragraph, java.lang.String value, java.lang.String options)
          Set an element value.
 void elementSetVisible(java.lang.String sessionID, java.lang.String documentID, int[] elementIDs, boolean visibleState, java.lang.String options)
           
 void elementSyncPlaceholders(java.lang.String sessionID, java.lang.String documentID, int elementID, int[] placeholderIDs, CometWhiteboard.RecordID recordID)
          Sync all placeholders linked with Record recordID found in an element.
 boolean elementTransform(java.lang.String sessionID, java.lang.String documentID, int elementID, java.lang.String options)
          Transform an element.
 boolean elementUpdatePlaceholders(java.lang.String sessionID, java.lang.String documentID, int elementID)
          Update the placeholder definitions of all placeholders found in an element.
 java.lang.String execTemplate(java.lang.String sessionID, java.lang.String masterdocName, CometWhiteboard.RecordID recordID, int templateID, java.lang.String setupOptions)
          Link a template with a product and save it as a new document.
 java.util.List<java.lang.String> getPdfProfiles(java.lang.String sessionID, java.lang.String documentID, java.lang.String options)
          Get the names of all available PDF profiles.
 boolean pageAddPages(java.lang.String sessionID, java.lang.String documentID, int behindPage, int numberOfPages, java.lang.String masterpageName, java.lang.String options)
          Add pages to a document.
 boolean pageApplyGrid(java.lang.String sessionID, java.lang.String documentID, int pageIndex, int gridID, CometWhiteboard.ReorganizeLevel reorganize)
          Apply a grid to a page.
 int pageBuild(java.lang.String sessionID, java.lang.String documentID, int pageIndex, javax.activation.DataHandler itemsXML, java.lang.String options)
          Build a list of products starting at pageIndex.
 int pageBuildAt(java.lang.String sessionID, java.lang.String documentID, int pageIndex, javax.activation.DataHandler itemsXML, double absLeft, double absTop, java.lang.String options)
          Build a list of products starting at pageIndex, position absLeft / absTop.
 boolean pageDeletePages(java.lang.String sessionID, java.lang.String documentID, int firstPage, int numberOfPages, java.lang.String options)
          Delete pages in a document.
 javax.activation.DataHandler pageGeneratePDF(java.lang.String sessionID, java.lang.String documentID, java.lang.String pageList, java.lang.String pdfProfileName, java.lang.String options)
          Generate a PDF of a single, a list of or all pages of a document.
 javax.activation.DataHandler pageGetCometGroups(java.lang.String sessionID, java.lang.String documentID, int pageIndex, java.lang.String options)
          Get all comet groups of a page.
 javax.activation.DataHandler pageGetElements(java.lang.String sessionID, java.lang.String documentID, int pageIndex, java.lang.String options)
          Get all elements of a page.
 javax.activation.DataHandler pageGetNotes(java.lang.String sessionID, java.lang.String documentID, int pageIndex, java.lang.String options)
          Get all notes of a page.
 javax.activation.DataHandler pageGetPlaceholders(java.lang.String sessionID, java.lang.String documentID, int pageIndex, boolean evaluateSyncState, java.lang.String options)
          Get the placeholders of a page.
 javax.activation.DataHandler pageGetPreview(java.lang.String sessionID, java.lang.String documentID, int pageIndex, double resolution, java.lang.String options)
          Get a preview of a page.
 javax.activation.DataHandler pageGetPreviewOfClipping(java.lang.String sessionID, java.lang.String documentID, int pageIndex, double resolution, double absLeft, double absTop, double width, double height, java.lang.String options)
          Get the preview of a certain area within a page.
 int pageGetTemplateID(java.lang.String sessionID, java.lang.String documentID, int pageIndex)
          Get the ID of the pagetemplate applied to a page.
 int pageImportGroup(java.lang.String sessionID, java.lang.String documentID, java.lang.String documentIDFrom, int pageIndex, int groupID, double absLeft, double absTop)
          Import a comet group from a document into another document, page, position absLeft / absTop.
 void pageLoadPlaceholders(java.lang.String sessionID, java.lang.String documentID, int pageIndex, int[] placeholderIDs, CometWhiteboard.RecordID recordID)
          Load all placeholders linked with Record recordID found on page pageIndex.
 boolean pageMoveCometGroupTo(java.lang.String sessionID, java.lang.String documentID, int pageIndex, int groupID, double absLeft, double absTop, java.lang.String options)
          Move a comet group to position absLeft / absTop on a page.
 boolean pageMoveElementTo(java.lang.String sessionID, java.lang.String documentID, int pageIndex, int elementID, double absLeft, double absTop)
          Move an element to position absLeft / absTop on a page.
 boolean pageMovePages(java.lang.String sessionID, java.lang.String documentID, int behindPage, int firstPage, int numPages, java.lang.String options)
          Move pages in a document
 int pagePlaceTemplate(java.lang.String sessionID, java.lang.String documentID, int pageIndex, CometWhiteboard.RecordID recordID, int templateID, double absLeft, double absTop, CometWhiteboard.ReorganizeLevel reorganize, java.lang.String options)
          Place a template at position absLeft / absTop on a page.
 boolean pageSetNotes(java.lang.String sessionID, java.lang.String documentID, int pageIndex, javax.activation.DataHandler notes)
          Set (i.e. replace the formerly) notes of a page.
 void pageSetPlaceholderImage(java.lang.String sessionID, java.lang.String documentID, int pageIndex, int placeholderID, CometWhiteboard.RecordID recordID, javax.activation.DataHandler data, boolean executeSaveMethod)
          Apply image to all placeholders linked with Record recordID found on page pageIndex overriding the default load method.
 void pageSetPlaceholderImagePath(java.lang.String sessionID, java.lang.String documentID, int pageIndex, int placeholderID, CometWhiteboard.RecordID recordID, java.lang.String path, boolean executeSaveMethod)
          Apply image path to all placeholders linked with Record recordID found on page pageIndex overriding the default load method.
 void pageSetPlaceholderValue(java.lang.String sessionID, java.lang.String documentID, int pageIndex, int placeholderID, CometWhiteboard.RecordID recordID, java.lang.String value, boolean executeSaveMethod)
          Apply value to all placeholders linked with Record recordID found on page pageIndex overriding the default load method.
 boolean pageSetTemplateID(java.lang.String sessionID, java.lang.String documentID, int pageIndex, int templateID, java.lang.String options)
          Apply a pagetemplate to a page.
 void pageSyncPlaceholders(java.lang.String sessionID, java.lang.String documentID, int pageIndex, int[] placeholderIDs, CometWhiteboard.RecordID recordID)
          Sync all placeholders linked with Record recordID found on page pageIndex.
 boolean pageUpdatePlaceholders(java.lang.String sessionID, java.lang.String documentID, int pageIndex)
          Update the placeholder definitions of all placeholders found on a page.
 boolean reloadConfiguration(java.lang.String adminSessionID, java.lang.String dataset)
          Reload configuration.
 boolean spreadAddSpreads(java.lang.String sessionID, java.lang.String documentID, int behindSpread, int numberOfSpreads, java.lang.String masterpageName, java.lang.String options)
          Add spreads to an document.
 boolean spreadApplyGrid(java.lang.String sessionID, java.lang.String documentID, int spreadIndex, int gridID, CometWhiteboard.ReorganizeLevel reorganize)
          Apply a grid to a spread.
 int spreadBuild(java.lang.String sessionID, java.lang.String documentID, int spreadIndex, javax.activation.DataHandler itemsXML, java.lang.String options)
          Build a list of products starting at spreadIndex.
 int spreadBuildAt(java.lang.String sessionID, java.lang.String documentID, int spreadIndex, javax.activation.DataHandler itemsXML, double absLeft, double absTop, java.lang.String options)
          Build a list of products starting at spreadIndex, position absLeft / absTop.
 boolean spreadDeleteSpreads(java.lang.String sessionID, java.lang.String documentID, int firstSpread, int numberOfSpreads, java.lang.String options)
          Delete spreads in a document.
 javax.activation.DataHandler spreadExportCometGroups(java.lang.String sessionID, java.lang.String documentID, int spreadIndex, int[] groupIDs, java.lang.String options)
          Export a list of comet groups to an InDesign® document
 javax.activation.DataHandler spreadExportElements(java.lang.String sessionID, java.lang.String documentID, int spreadIndex, int[] elementIDs, java.lang.String options)
          Export a list of elements (frames) to an InDesign® document
 javax.activation.DataHandler spreadGeneratePDF(java.lang.String sessionID, java.lang.String documentID, java.lang.String spreadList, java.lang.String pdfProfileName, java.lang.String options)
          Generate a PDF of a single, a list of or all spreads of a document.
 javax.activation.DataHandler spreadGetCometGroups(java.lang.String sessionID, java.lang.String documentID, int spreadIndex, java.lang.String options)
          Get all comet groups of a spread.
 javax.activation.DataHandler spreadGetCometGroupsPreview(java.lang.String sessionID, java.lang.String documentID, int spreadIndex, int[] groupIDs, double resolution, java.lang.String options)
          Get a preview of several CometGroups
 javax.activation.DataHandler spreadGetElements(java.lang.String sessionID, java.lang.String documentID, int spreadIndex, java.lang.String options)
          Get all elements of a spread.
 javax.activation.DataHandler spreadGetElementsPreview(java.lang.String sessionID, java.lang.String documentID, int spreadIndex, int[] elementIDs, double resolution, java.lang.String options)
          Get a preview of several elements
 javax.activation.DataHandler spreadGetNotes(java.lang.String sessionID, java.lang.String documentID, int spreadIndex, java.lang.String options)
          Get all notes of a spread.
 int[] spreadGetPages(java.lang.String sessionID, java.lang.String documentID, int spreadIndex)
          Get the indexes of all pages in a spread.
 javax.activation.DataHandler spreadGetPlaceholders(java.lang.String sessionID, java.lang.String documentID, int spreadIndex, boolean evaluateSyncState, java.lang.String options)
          Get the placeholders of a spread.
 javax.activation.DataHandler spreadGetPreview(java.lang.String sessionID, java.lang.String documentID, int spreadIndex, double resolution, java.lang.String options)
          Get a preview of a spread.
 javax.activation.DataHandler spreadGetPreviewOfClipping(java.lang.String sessionID, java.lang.String documentID, int spreadIndex, double resolution, double absLeft, double absTop, double width, double height, java.lang.String options)
          Get a preview of a certain area within a spread.
 int spreadGetTemplateID(java.lang.String sessionID, java.lang.String documentID, int spreadIndex)
          Get the ID of the pagetemplate applied to a spread.
 int spreadImportGroup(java.lang.String sessionID, java.lang.String documentID, java.lang.String documentIDFrom, int spreadIndex, int groupID, double absLeft, double absTop)
          Import a comet group from a document into another document, spread, position absLeft / absTop.
 void spreadLoadPlaceholders(java.lang.String sessionID, java.lang.String documentID, int spreadIndex, int[] placeholderIDs, CometWhiteboard.RecordID recordID)
          Load all placeholders linked with Record recordID found on spread spreadIndex.
 boolean spreadMoveCometGroupTo(java.lang.String sessionID, java.lang.String documentID, int spreadIndex, int groupID, double absLeft, double absTop, java.lang.String options)
          Move a comet group to a certain position within a spread.
 boolean spreadMoveElementTo(java.lang.String sessionID, java.lang.String documentID, int spreadIndex, int elementID, double absLeft, double absTop)
          Move an element to position absLeft / absTop on a spread.
 boolean spreadMoveSpreads(java.lang.String sessionID, java.lang.String documentID, int behindSpread, int firstSpread, int numSpreads, java.lang.String options)
          Move spreads in a document
 int spreadPlaceDocument(java.lang.String sessionID, java.lang.String documentID, int spreadIndex, javax.activation.DataHandler data, double absLeft, double absTop, boolean createCometGroup, java.lang.String options)
          Import and place an InDesign® document
 int spreadPlaceTemplate(java.lang.String sessionID, java.lang.String documentID, int spreadIndex, CometWhiteboard.RecordID recordID, int templateID, double absLeft, double absTop, CometWhiteboard.ReorganizeLevel reorganize, java.lang.String options)
          Place a template at position absLeft / absTop on a spread.
 boolean spreadSetNotes(java.lang.String sessionID, java.lang.String documentID, int spreadIndex, javax.activation.DataHandler notes)
          Set (i.e. replace the formerly) notes of a spread.
 void spreadSetPlaceholderImage(java.lang.String sessionID, java.lang.String documentID, int spreadIndex, int placeholderID, CometWhiteboard.RecordID recordID, javax.activation.DataHandler data, boolean executeSaveMethod)
          Apply image to all placeholders linked with Record recordID found on spread spreadIndex overriding the default load method.
 void spreadSetPlaceholderImagePath(java.lang.String sessionID, java.lang.String documentID, int spreadIndex, int placeholderID, CometWhiteboard.RecordID recordID, java.lang.String path, boolean executeSaveMethod)
          Apply image path to all placeholders linked with Record recordID found on spread spreadIndex overriding the default load method.
 void spreadSetPlaceholderValue(java.lang.String sessionID, java.lang.String documentID, int spreadIndex, int placeholderID, CometWhiteboard.RecordID recordID, java.lang.String value, boolean executeSaveMethod)
          Apply value to all placeholders linked with Record recordID found on spread spreadIndex overriding the default load method.
 boolean spreadSetTemplateID(java.lang.String sessionID, java.lang.String documentID, int spreadIndex, int templateID, java.lang.String options)
          Apply a pagetemplate to a spread.
 void spreadSyncPlaceholders(java.lang.String sessionID, java.lang.String documentID, int spreadIndex, int[] placeholderIDs, CometWhiteboard.RecordID recordID)
          Sync all placeholders linked with Record recordID found on spread spreadIndex.
 boolean spreadUpdatePlaceholders(java.lang.String sessionID, java.lang.String documentID, int spreadIndex)
          Update the placeholder definitions of all placeholders found on a spread.
 

Method Detail

adapterCreateDocument

javax.activation.DataHandler adapterCreateDocument(java.lang.String sessionID,
                                                   java.lang.String documentID,
                                                   java.lang.String options)
                                                   throws com.priint.comet.common.CometException
Adapt and download a document. The original document will not be modified, no InDesign® document will be created.

Parameters:
sessionID - session ID obtained from connectionLogin
documentID - the document ID
options - command options
Returns:
InDesign® document
Throws:
com.priint.comet.common.CometException

adapterCreateDocumentOnServer

java.lang.String adapterCreateDocumentOnServer(java.lang.String sessionID,
                                               java.lang.String documentID,
                                               java.lang.String options,
                                               java.lang.String newDocumentID)
                                               throws com.priint.comet.common.CometException
Adapt a document and create an InDesign® document on the Server. The new document can be referenced with the documentID returned.

Parameters:
sessionID - session ID obtained from connectionLogin
documentID - the document ID,
options - command options
newDocumentID - new document ID. If the ID is null or empty a unique ID will be generated and returned.
Returns:
document ID of the generated document
Throws:
com.priint.comet.common.CometException

adapterCreatePDF

javax.activation.DataHandler adapterCreatePDF(java.lang.String sessionID,
                                              java.lang.String documentID,
                                              java.lang.String options,
                                              java.lang.String pdfProfile)
                                              throws com.priint.comet.common.CometException
Adapt a document to the size and specification given in options and generate a PDF. The original document will not be modified, no InDesign® document will be created.

Parameters:
sessionID - session ID obtained from connectionLogin
documentID - the document ID
options - command options
pdfProfile -
Returns:
pdf
Throws:
com.priint.comet.common.CometException

adapterCreatePreview

javax.activation.DataHandler adapterCreatePreview(java.lang.String sessionID,
                                                  java.lang.String documentID,
                                                  java.lang.String options,
                                                  double resolution)
                                                  throws com.priint.comet.common.CometException
Adapt a document to the size and specification given in options and generate a preview. The original document will not be modified, no InDesign® document will be created.

Parameters:
sessionID - session ID obtained from connectionLogin
documentID - the document ID
options - command options
resolution - resolution in dpi
Returns:
jpeg (or other image format depending on options)
Throws:
com.priint.comet.common.CometException

cometGroupAddToGroup

boolean cometGroupAddToGroup(java.lang.String sessionID,
                             java.lang.String documentID,
                             int groupID,
                             int[] elementIDs,
                             boolean asSubGroup,
                             java.lang.String options)
                             throws com.priint.comet.common.CometException
Add elements to a comet group.

Parameters:
sessionID - session ID obtained from connectionLogin
documentID - the document ID
groupID - ID of the comet group
elementIDs - elements to be added to the group
asSubGroup - add the new elements as a subgroup
options - command options
Returns:
true on success, false otherwise
Throws:
com.priint.comet.common.CometException

cometGroupDeleteGroup

void cometGroupDeleteGroup(java.lang.String sessionID,
                           java.lang.String documentID,
                           int groupID,
                           CometWhiteboard.ReorganizeLevel reorganize,
                           java.lang.String options)
                           throws com.priint.comet.common.CometException
Delete a comet group.

Parameters:
sessionID - session ID obtained from connectionLogin
documentID - the document ID
groupID - ID of the comet group
reorganize - reorganize the document after deleting. Can be one of "NONE", "FULL", "PAGE", "SUBSEQUENT"
options - command options
Throws:
com.priint.comet.common.CometException

cometGroupGetElements

javax.activation.DataHandler cometGroupGetElements(java.lang.String sessionID,
                                                   java.lang.String documentID,
                                                   int groupID,
                                                   java.lang.String options)
                                                   throws com.priint.comet.common.CometException
Get all elements of a comet group.

Parameters:
sessionID - session ID obtained from connectionLogin
documentID - the document ID
groupID - ID of the comet group
options - command options
Returns:
a XML document as specified here.
Throws:
com.priint.comet.common.CometException

cometGroupGetNotes

javax.activation.DataHandler cometGroupGetNotes(java.lang.String sessionID,
                                                java.lang.String documentID,
                                                int groupID,
                                                java.lang.String options)
                                                throws com.priint.comet.common.CometException
Get all notes of a comet group.

Parameters:
sessionID - session ID obtained from connectionLogin
documentID - the document ID
groupID - ID of the comet group
options - command options
Returns:
a XML document as specified here
Throws:
com.priint.comet.common.CometException

cometGroupGetPlaceholders

javax.activation.DataHandler cometGroupGetPlaceholders(java.lang.String sessionID,
                                                       java.lang.String documentID,
                                                       int groupID,
                                                       boolean evaluateSyncState,
                                                       java.lang.String options)
                                                       throws com.priint.comet.common.CometException
Get the placeholders of a comet group.

Parameters:
sessionID - session ID obtained from connectionLogin
documentID - the document ID
groupID - ID of the comet group
evaluateSyncState - evaluate sync state using the sync script assigned to the placeholder
options - command options
Returns:
a XML document as specified here.
Throws:
com.priint.comet.common.CometException

cometGroupGetPreviews

javax.activation.DataHandler[] cometGroupGetPreviews(java.lang.String sessionID,
                                                     java.lang.String documentID,
                                                     int groupID,
                                                     double resolution,
                                                     java.lang.String options)
                                                     throws com.priint.comet.common.CometException
Get a comet group previews. A comet group can be spread over several pages, the method will return a preview for each page comet group elements can be found on.

Parameters:
sessionID - session ID obtained from connectionLogin
documentID - the document ID
groupID - ID of the comet group
resolution - resolution in dpi resolution in dpi.
options - command options
Returns:
jpeg (or other image format depending on options)
Throws:
com.priint.comet.common.CometException

cometGroupInsertAfter

int cometGroupInsertAfter(java.lang.String sessionID,
                          java.lang.String documentID,
                          int groupID,
                          CometWhiteboard.RecordID recordID,
                          int templateID,
                          CometWhiteboard.ReorganizeLevel reorganize,
                          java.lang.String options)
                          throws com.priint.comet.common.CometException
Insert a new comet group (i.e. link a product with a template) after an existing group.

Parameters:
sessionID - session ID obtained from connectionLogin
documentID - the document ID
groupID - ID of the comet group
recordID - ID of the record
templateID - ID of the template
reorganize - reorganize the document after inserting. Can be one of "NONE", "FULL", "PAGE", "SUBSEQUENT"
options - command options
Returns:
the ID of the newly generated comet group
Throws:
com.priint.comet.common.CometException

cometGroupInsertBefore

int cometGroupInsertBefore(java.lang.String sessionID,
                           java.lang.String documentID,
                           int groupID,
                           CometWhiteboard.RecordID recordID,
                           int templateID,
                           CometWhiteboard.ReorganizeLevel reorganize,
                           java.lang.String options)
                           throws com.priint.comet.common.CometException
Insert a new comet group (i.e. link a product with a template) before an existing group.

Parameters:
sessionID - session ID obtained from connectionLogin
documentID - the document ID
groupID - ID of the comet group
recordID - ID of the record
templateID - ID of the template
reorganize - reorganize the document after inserting. Can be one of "NONE", "FULL", "PAGE", "SUBSEQUENT"
options - command options
Returns:
the ID of the newly generated comet group
Throws:
com.priint.comet.common.CometException

cometGroupJoinGroups

int cometGroupJoinGroups(java.lang.String sessionID,
                         java.lang.String documentID,
                         int[] groupIDs,
                         boolean asSubGroups,
                         java.lang.String options)
                         throws com.priint.comet.common.CometException
Join comet groups.

Parameters:
sessionID - session ID obtained from connectionLogin
documentID - the document ID
groupIDs - IDs of comet groups
asSubGroups - preserve former group membership and create subgroups
options - command options
Returns:
id of the newly created group
Throws:
com.priint.comet.common.CometException

cometGroupLoadPlaceholders

void cometGroupLoadPlaceholders(java.lang.String sessionID,
                                java.lang.String documentID,
                                int groupID,
                                int[] placeholderIDs,
                                CometWhiteboard.RecordID recordID)
                                throws com.priint.comet.common.CometException
Load all placeholders linked with Record recordID found on group groupID.

Parameters:
sessionID - session ID obtained from connectionLogin
documentID - the document ID
groupID - ID of the group
placeholderIDs -
recordID - ID of the record
Throws:
com.priint.comet.common.CometException

cometGroupRemoveFromGroup

boolean cometGroupRemoveFromGroup(java.lang.String sessionID,
                                  java.lang.String documentID,
                                  int groupID,
                                  int[] elementIDs,
                                  java.lang.String options)
                                  throws com.priint.comet.common.CometException
Remove elements from a comet group. The elements will not be deleted but the membership to the group will be dissolved.

Parameters:
sessionID - session ID obtained from connectionLogin
documentID - the document ID
groupID - ID of the comet group
elementIDs -
options - command options
Returns:
true on success, false otherwise
Throws:
com.priint.comet.common.CometException

cometGroupReplaceGroup

int cometGroupReplaceGroup(java.lang.String sessionID,
                           java.lang.String documentID,
                           int groupID,
                           CometWhiteboard.RecordID recordID,
                           int templateID,
                           CometWhiteboard.ReorganizeLevel reorganize,
                           java.lang.String options)
                           throws com.priint.comet.common.CometException
Replace an existing comet group by a new one.

Parameters:
sessionID - session ID obtained from connectionLogin
documentID - the document ID
groupID - ID of the comet group
recordID - ID of the record
templateID - ID of the template
reorganize - reorganize the document after deleting and inserting. Can be one of "NONE", "FULL", "PAGE", "SUBSEQUENT"
options - command options
Returns:
the ID of the newly generated comet group
Throws:
com.priint.comet.common.CometException

cometGroupResolveGroup

boolean cometGroupResolveGroup(java.lang.String sessionID,
                               java.lang.String documentID,
                               int groupID,
                               boolean resolveSubGroups,
                               java.lang.String options)
                               throws com.priint.comet.common.CometException
Resolve a comet group.

Parameters:
sessionID - session ID obtained from connectionLogin
documentID - the document ID
groupID - ID of the comet group
resolveSubGroups - recursively resolve subgroups
options - command options
Returns:
true on success, false otherwise
Throws:
com.priint.comet.common.CometException

cometGroupSetNotes

boolean cometGroupSetNotes(java.lang.String sessionID,
                           java.lang.String documentID,
                           int groupID,
                           javax.activation.DataHandler notes)
                           throws com.priint.comet.common.CometException
Set (i.e. replace the formerly) notes of a comet group.

Parameters:
sessionID - session ID obtained from connectionLogin
documentID - the document ID
groupID - ID of the comet group
notes - a XML document as specified here
Returns:
true on success, false otherwise
Throws:
com.priint.comet.common.CometException

cometGroupSetPlaceholderImage

void cometGroupSetPlaceholderImage(java.lang.String sessionID,
                                   java.lang.String documentID,
                                   int groupID,
                                   int placeholderID,
                                   CometWhiteboard.RecordID recordID,
                                   javax.activation.DataHandler data,
                                   boolean executeSaveMethod)
                                   throws com.priint.comet.common.CometException
Apply image to all placeholders linked with Record recordID found on group groupID overriding the default load method. The image will be uploaded to the server and saved in a directory named "Images" in the documents parent folder. If this directory doesn't exist it will be created.

Parameters:
sessionID - session ID obtained from connectionLogin
documentID - the document ID
groupID - ID of the group
placeholderID -
recordID - ID of the record
data - binary data
executeSaveMethod - save new value to databse or not
Throws:
com.priint.comet.common.CometException

cometGroupSetPlaceholderImagePath

void cometGroupSetPlaceholderImagePath(java.lang.String sessionID,
                                       java.lang.String documentID,
                                       int groupID,
                                       int placeholderID,
                                       CometWhiteboard.RecordID recordID,
                                       java.lang.String path,
                                       boolean executeSaveMethod)
                                       throws com.priint.comet.common.CometException
Apply image path to all placeholders linked with Record recordID found on group groupID overriding the default load method. The image file must exist under the path provided and be a valid image.

Parameters:
sessionID - session ID obtained from connectionLogin
documentID - the document ID
groupID - ID of the group
placeholderID -
recordID - ID of the record
path - path of the image on the server
executeSaveMethod -
Throws:
com.priint.comet.common.CometException

cometGroupSetPlaceholderValue

void cometGroupSetPlaceholderValue(java.lang.String sessionID,
                                   java.lang.String documentID,
                                   int groupID,
                                   int placeholderID,
                                   CometWhiteboard.RecordID recordID,
                                   java.lang.String value,
                                   boolean executeSaveMethod)
                                   throws com.priint.comet.common.CometException
Apply value to all placeholders linked with Record recordID found on group groupID overriding the default load method.

Parameters:
sessionID - session ID obtained from connectionLogin
documentID - the document ID
groupID - ID of the group
placeholderID -
recordID - ID of the record
value - the value to be applied new value
executeSaveMethod - write the new value to database or not
Throws:
com.priint.comet.common.CometException

cometGroupSyncPlaceholders

void cometGroupSyncPlaceholders(java.lang.String sessionID,
                                java.lang.String documentID,
                                int groupID,
                                int[] placeholderIDs,
                                CometWhiteboard.RecordID recordID)
                                throws com.priint.comet.common.CometException
Sync all placeholders linked with Record recordID found on group groupID.

Parameters:
sessionID - session ID obtained from connectionLogin
documentID - the document ID
groupID - ID of the group
placeholderIDs -
recordID - ID of the record
Throws:
com.priint.comet.common.CometException

cometGroupUpdatePlaceholders

boolean cometGroupUpdatePlaceholders(java.lang.String sessionID,
                                     java.lang.String documentID,
                                     int groupID)
                                     throws com.priint.comet.common.CometException
Update the placeholder definitions of all placeholders found in a comet group.

Parameters:
sessionID - session ID obtained from connectionLogin
documentID - the document ID
groupID - ID of the comet group
Returns:
true on success, false otherwise
Throws:
com.priint.comet.common.CometException

connectionGetNewChildSession

CometWhiteboard.SessionInfo connectionGetNewChildSession(java.lang.String sessionID)
                                                         throws com.priint.comet.common.CometException
Get Child Session of Current Session.

Parameters:
sessionID - session ID obtained from connectionLogin
Throws:
com.priint.comet.common.CometException

connectionLogin

CometWhiteboard.SessionInfo connectionLogin(java.lang.String user,
                                            java.lang.String password,
                                            java.lang.String datasetName)
                                            throws com.priint.comet.common.CometException
Login to comet server.

Parameters:
user - user name (login)
password - the password
datasetName - name of the dataset
Returns:
a SessionInfo object on success
Throws:
com.priint.comet.common.CometException

connectionLogout

void connectionLogout(java.lang.String sessionID)
                      throws com.priint.comet.common.CometException
Logout from comet server.

Parameters:
sessionID - session ID obtained from connectionLogin
Throws:
com.priint.comet.common.CometException

connectionSetUserProperty

boolean connectionSetUserProperty(java.lang.String sessionID,
                                  java.lang.String key,
                                  java.lang.String value)
                                  throws com.priint.comet.common.CometException
Set a user property. User properties will be saved in a XML file and be be accessed in csript / InDesign® Server using the $USERDATA alias. The XML file wil look somewhat like
<?xml version="1.0"?>
        <properties sessionid="3049838447">
            <property>
                <key>mail</key>
                <value>info@priint.net</value>
            </property>
            <property>
                .
                .
                .
            </property>
        </properties>
        

Parameters:
sessionID - session ID obtained from connectionLogin
key - name of the property
value - the value to be applied
Returns:
true on success, false otherwise
Throws:
com.priint.comet.common.CometException

copyMasterdocument

java.lang.String copyMasterdocument(java.lang.String sessionID,
                                    java.lang.String masterdocName,
                                    java.lang.String newDocumentID)
                                    throws com.priint.comet.common.CometException
Copy a masterdocument. If newDocumentID is empty or null, a temporary document will be created, which will be deleted, when the session expires. Otherwise an existing document will be replaced with a fresh copy of this masterdocument.

Parameters:
sessionID - session ID obtained from connectionLogin
masterdocName -
newDocumentID -
Returns:
the (temporary) document ID of the copy, which can be used for further requests.
Throws:
com.priint.comet.common.CometException

createPDF

javax.activation.DataHandler createPDF(java.lang.String sessionID,
                                       java.lang.String masterdocName,
                                       javax.activation.DataHandler itemsXML,
                                       CometWhiteboard.Renderer renderer,
                                       java.lang.String pdfProfile,
                                       java.lang.String options)
                                       throws com.priint.comet.common.CometException
Place products in a document (either blank or copied from a masterdocument) and return a PDF

Parameters:
sessionID - session ID obtained from connectionLogin
masterdocName -
itemsXML -
renderer -
pdfProfile -
options -
Returns:
PDF
Throws:
com.priint.comet.common.CometException

createProductPDF

javax.activation.DataHandler createProductPDF(java.lang.String sessionID,
                                              java.lang.String masterdocName,
                                              CometWhiteboard.RecordID recordID,
                                              int templateID,
                                              java.lang.String pdfProfile,
                                              java.lang.String options)
                                              throws com.priint.comet.common.CometException
Link a product with a template and create a PDF

Parameters:
sessionID - session ID obtained from connectionLogin
masterdocName - name of a masterdocument, if empty or null a default blank document will be used
recordID -
templateID -
pdfProfile - the UI name of a valid PDF profile. This profile must exists, an UnknownPDFProfileException will be thrown otherwise
options - setup options.
Returns:
pdf
Throws:
com.priint.comet.common.CometException

createProductPreview

javax.activation.DataHandler createProductPreview(java.lang.String sessionID,
                                                  java.lang.String masterdocName,
                                                  CometWhiteboard.RecordID recordID,
                                                  int templateID,
                                                  double resolution,
                                                  java.lang.String options)
                                                  throws com.priint.comet.common.CometException
Link a template with a product and create a preview.

Parameters:
sessionID - session ID obtained from connectionLogin
masterdocName - name of a masterdocument, if empty or null a default blank document will be used
recordID - ID of the record
templateID - ID of the template
resolution - resolution in pt / dpi
options - setup options.
Returns:
Preview (DataHandler), depending on the setupOptions this can be a JPEG, PNG, TIFF or GIF file
Throws:
com.priint.comet.common.CometException

documentClose

boolean documentClose(java.lang.String sessionID,
                      java.lang.String documentID)
                      throws com.priint.comet.common.CometException
Close a document. This method will decrease the ref count on a document (if the document is opened in the current session). The document will only be closed if there are no outstanding references from other sessions. Note: comet server can be configured to close documents delayed. If you need to close documents immediately regardless of the configuration and current state in other sessions use documentForceClose instead

Parameters:
sessionID - session ID obtained from connectionLogin
documentID - the document ID
Returns:
true on success, false otherwise
Throws:
com.priint.comet.common.CometException

documentCloseImmediately

boolean documentCloseImmediately(java.lang.String sessionID,
                                 java.lang.String documentID)
                                 throws com.priint.comet.common.CometException
Close a document immediately if the server policies allow to do so. This method will decrease the ref count on a document (if the document is opened in the current session). The document will only be closed if there are no outstanding references from other sessions. Note: If you need to close documents immediately regardless of the configuration and current state in other sessions use documentForceClose instead

Parameters:
sessionID - session ID obtained from connectionLogin
documentID - the document ID
Returns:
true on success, false otherwise
Throws:
com.priint.comet.common.CometException

documentCreate

java.lang.String documentCreate(java.lang.String sessionID,
                                java.lang.String newDocumentID,
                                java.lang.String setupParams)
                                throws com.priint.comet.common.CometException
Create a document.

Parameters:
sessionID - session ID obtained from connectionLogin
newDocumentID - new document ID. If the ID is null or empty a unique ID will be generated and returned.
setupParams - setup options.
Returns:
the new document ID
Throws:
com.priint.comet.common.CometException

documentCreateAs

java.lang.String documentCreateAs(java.lang.String sessionID,
                                  java.lang.String newDocumentID,
                                  java.lang.String filename,
                                  java.lang.String setupParams)
                                  throws com.priint.comet.common.CometException
Create a document and preserve the filename. Useful if you work with managed (uploaded) files and want to preserve a specific filename for later downloads.

Parameters:
sessionID - session ID obtained from connectionLogin
newDocumentID - new document ID. If the ID is null or empty a unique ID will be generated and returned.
filename - the filename
setupParams - setup options.
Returns:
the new document ID
Throws:
com.priint.comet.common.CometException

documentDelete

boolean documentDelete(java.lang.String sessionID,
                       java.lang.String documentID)
                       throws com.priint.comet.common.CometException
Delete a document. Unless its a publication document the registration will be deleted as well.

Parameters:
sessionID - session ID obtained from connectionLogin
documentID - the document ID
Returns:
true on success, false otherwise
Throws:
com.priint.comet.common.CometException

documentDownload

javax.activation.DataHandler documentDownload(java.lang.String sessionID,
                                              java.lang.String documentID)
                                              throws com.priint.comet.common.CometException
Download a document.

Parameters:
sessionID - session ID obtained from connectionLogin
documentID - the document ID
Returns:
InDesign® document
Throws:
com.priint.comet.common.CometException

documentDuplicate

java.lang.String documentDuplicate(java.lang.String sessionID,
                                   java.lang.String documentID,
                                   java.lang.String newDocumentID)
                                   throws com.priint.comet.common.CometException
Duplicate a document.

Parameters:
sessionID - session ID obtained from connectionLogin
documentID - the document ID
newDocumentID - new document ID. If the ID is null or empty a unique ID will be generated and returned.
Returns:
the ID of the new document
Throws:
com.priint.comet.common.CometException

documentExecCScript

java.lang.String documentExecCScript(java.lang.String sessionID,
                                     java.lang.String documentID,
                                     int scriptID,
                                     java.lang.String arguments)
                                     throws com.priint.comet.common.CometException
Execute a predefined cscript on a document.

Parameters:
sessionID - session ID obtained from connectionLogin
documentID - the document ID
scriptID - ID of the script
arguments - arguments passed to script (available as char * gArgument)
Returns:
returned from script, value of the global variable gOutput
Throws:
com.priint.comet.common.CometException

documentExists

boolean documentExists(java.lang.String sessionID,
                       java.lang.String documentID)
                       throws com.priint.comet.common.CometException
Check whether a document exists. Note: this method will both check whether the document is known on comet server (i.e. registered as a publication, extern, managed or tmp file) and if the physical file associated to the documentID exists in the file system.

Parameters:
sessionID - session ID obtained from connectionLogin
documentID - the document ID
Returns:
true, if document exists, false otherwise
Throws:
com.priint.comet.common.CometException

documentForceClose

boolean documentForceClose(java.lang.String sessionID,
                           java.lang.String documentID)
                           throws com.priint.comet.common.CometException
Close a document regardless of the configuration and current state in other sessions. Note: depending on the closing policies in your comet server configuration this method may fail.

Parameters:
sessionID - session ID obtained from connectionLogin
documentID - the document ID
Returns:
true on success, false otherwise
Throws:
com.priint.comet.common.CometException

documentGeneratePDF

javax.activation.DataHandler documentGeneratePDF(java.lang.String sessionID,
                                                 java.lang.String documentID,
                                                 java.lang.String pdfProfileName,
                                                 java.lang.String options)
                                                 throws com.priint.comet.common.CometException
Create a pdf of all pages / spreads of a document.

Parameters:
sessionID - session ID obtained from connectionLogin
documentID - the document ID
pdfProfileName -
options - command options.
Returns:
pdf
Throws:
com.priint.comet.common.CometException

documentGetCometGroups

javax.activation.DataHandler documentGetCometGroups(java.lang.String sessionID,
                                                    java.lang.String documentID,
                                                    java.lang.String options)
                                                    throws com.priint.comet.common.CometException
Get all comet groups of a document.

Parameters:
sessionID - session ID obtained from connectionLogin
documentID - the document ID
options - command options
Returns:
a XML document as specified here.
Throws:
com.priint.comet.common.CometException

documentGetElements

javax.activation.DataHandler documentGetElements(java.lang.String sessionID,
                                                 java.lang.String documentID,
                                                 java.lang.String options)
                                                 throws com.priint.comet.common.CometException
Get all elements of a document.

Parameters:
sessionID - session ID obtained from connectionLogin
documentID - the document ID
options - command options
Returns:
a XML document as specified here.
Throws:
com.priint.comet.common.CometException

documentGetInfo

CometWhiteboard.DocumentInfo documentGetInfo(java.lang.String sessionID,
                                             java.lang.String documentID)
                                             throws com.priint.comet.common.CometException
Get information about a document, such as type, status and filename.

Parameters:
sessionID - session ID obtained from connectionLogin
documentID - the document ID
Returns:
a DocumentInfo object or null if the document is not registered
Throws:
com.priint.comet.common.CometException

documentGetItems

javax.activation.DataHandler documentGetItems(java.lang.String sessionID,
                                              java.lang.String documentID,
                                              java.lang.String options)
                                              throws com.priint.comet.common.CometException
Get items (i.e. products) currently placed in this document.

Parameters:
sessionID - session ID obtained from connectionLogin
documentID - the document ID
options -
Returns:
XML document
Throws:
com.priint.comet.common.CometException

documentGetLayers

java.util.List<java.lang.String> documentGetLayers(java.lang.String sessionID,
                                                   java.lang.String documentID)
                                                   throws com.priint.comet.common.CometException
Get all document layers.

Parameters:
sessionID - session ID obtained from connectionLogin
documentID - the document ID
Returns:
List of all layer names
Throws:
com.priint.comet.common.CometException

documentGetList

java.util.List<CometWhiteboard.DocumentInfo> documentGetList(java.lang.String sessionID)
                                                             throws com.priint.comet.common.CometException
Get a list of all documents available in the current session. Note: this does not include documents registered via publication, only uploaded, registered or temporary files will be listed.

Parameters:
sessionID - session ID obtained from connectionLogin
Returns:
list of documents available in session
Throws:
com.priint.comet.common.CometException

documentGetNotes

javax.activation.DataHandler documentGetNotes(java.lang.String sessionID,
                                              java.lang.String documentID,
                                              java.lang.String options)
                                              throws com.priint.comet.common.CometException
Get all notes of a document.

Parameters:
sessionID - session ID obtained from connectionLogin
documentID - the document ID
options - command options
Returns:
a XML document as specified here.
Throws:
com.priint.comet.common.CometException

documentGetPageCount

int documentGetPageCount(java.lang.String sessionID,
                         java.lang.String documentID)
                         throws com.priint.comet.common.CometException
Get the number of pages of a document

Parameters:
sessionID - session ID obtained from connectionLogin
documentID - the document ID
Returns:
number of pages in the document
Throws:
com.priint.comet.common.CometException

documentGetPackage

javax.activation.DataHandler documentGetPackage(java.lang.String sessionID,
                                                     java.lang.String documentID,
                                                     java.lang.String options)
                                                     throws com.priint.comet.common.CometException
Get a zipped package of the document.

Parameters:
sessionID - session ID obtained from connectionLogin
documentID - the document ID
options - command options
Returns:
zipped document package..
Throws:
com.priint.comet.common.CometException

documentGetPlaceholders

javax.activation.DataHandler documentGetPlaceholders(java.lang.String sessionID,
                                                     java.lang.String documentID,
                                                     boolean evaluateSyncState,
                                                     java.lang.String options)
                                                     throws com.priint.comet.common.CometException
Get all placeholders of a document.

Parameters:
sessionID - session ID obtained from connectionLogin
documentID - the document ID
evaluateSyncState -
options - command options
Returns:
a XML document as specified here.
Throws:
com.priint.comet.common.CometException

documentGetSessionDocs

java.util.List<CometWhiteboard.DocumentInfo> documentGetSessionDocs(java.lang.String sessionID)
                                                                    throws com.priint.comet.common.CometException
Get all documents opened in the current session

Parameters:
sessionID -
Returns:
all documents opened in the current session
Throws:
com.priint.comet.common.CometException

documentGetSpreadCount

int documentGetSpreadCount(java.lang.String sessionID,
                           java.lang.String documentID)
                           throws com.priint.comet.common.CometException
Get the number of spreads of a document

Parameters:
sessionID - session ID obtained from connectionLogin
documentID - the document ID
Returns:
number of spreads in the document
Throws:
com.priint.comet.common.CometException

documentGetSpreads

javax.activation.DataHandler documentGetSpreads(java.lang.String sessionID,
                                                java.lang.String documentID,
                                                java.lang.String options)
                                                throws com.priint.comet.common.CometException
Get spread information a document.

Parameters:
sessionID - session ID obtained from connectionLogin
documentID - the document ID
options - command options
Returns:
a XML document as specified here.
Throws:
com.priint.comet.common.CometException

documentGetVisibleLayers

java.util.List<java.lang.String> documentGetVisibleLayers(java.lang.String sessionID,
                                                          java.lang.String documentID)
                                                          throws com.priint.comet.common.CometException
Get all document layers visible in the current session. If no session options regarding layers have been set the method will return all layers visible in the document by default (these are what other operations apply to in that case), if layers have been set to visible or hidden in the current session before these layers will be returned. Briefly speaking: you will get a list of all layers actually visible in the current session. To reset to the documents default use documentShowDefaultLayers

Parameters:
sessionID - session ID obtained from connectionLogin
documentID - the document ID
Returns:
List of all layer names visible in the current session
Throws:
com.priint.comet.common.CometException

documentHideAllLayers

boolean documentHideAllLayers(java.lang.String sessionID,
                              java.lang.String documentID)
                              throws com.priint.comet.common.CometException
Hide all layers for the current session / document.

Parameters:
sessionID - session ID obtained from connectionLogin
documentID - the document ID
Returns:
true on success, false otherwise
Throws:
com.priint.comet.common.CometException

documentHideLayers

boolean documentHideLayers(java.lang.String sessionID,
                           java.lang.String documentID,
                           java.util.List<java.lang.String> layers)
                           throws com.priint.comet.common.CometException
Hide the given layers for the current session / document.

Parameters:
sessionID - session ID obtained from connectionLogin
documentID - the document ID
layers - list of layer names
Returns:
true on success, false otherwise
Throws:
com.priint.comet.common.CometException

documentIsRegistered

boolean documentIsRegistered(java.lang.String sessionID,
                             java.lang.String documentID)
                             throws com.priint.comet.common.CometException
Check if a document is registered on ComeServer. Note: this method will not check, if the file associated to the documentID exists. To check this use documentExists instead.

Parameters:
sessionID -
documentID -
Returns:
true, if document is registered, false otherwise
Throws:
com.priint.comet.common.CometException

documentLoadPlaceholders

void documentLoadPlaceholders(java.lang.String sessionID,
                              java.lang.String documentID,
                              int[] placeholderIDs,
                              CometWhiteboard.RecordID recordID)
                              throws com.priint.comet.common.CometException
Load all placeholders linked with Record recordID found in the document.

Parameters:
sessionID - session ID obtained from connectionLogin
documentID - the document ID
placeholderIDs -
recordID - ID of the record
Throws:
com.priint.comet.common.CometException

documentMatchItems

javax.activation.DataHandler documentMatchItems(java.lang.String sessionID,
                                                java.lang.String documentID,
                                                javax.activation.DataHandler items,
                                                java.lang.String options)
                                                throws com.priint.comet.common.CometException
Compare a list of items (i.e. products) with the items currently placed in the document. The result XML will describe, what would have to be changed in the document to match the new item list.

Parameters:
sessionID - session ID obtained from connectionLogin
documentID - the document ID
items -
options -
Returns:
diff XML
Throws:
com.priint.comet.common.CometException

documentMoveFile

java.lang.String documentMoveFile(java.lang.String sessionID,
                                  java.lang.String documentID,
                                  java.lang.String newDocumentID)
                                  throws com.priint.comet.common.CometException
This will turn a document into something else - provided the newDocumentID has been registered or is known in a publication system. Example
 // upload data and move to an arbitrary path in the file system afterwards:
 String managedDoc = api.documentUpload (sessionID, null, data);
 String externDoc  = api.documentRegister (sessionID, "12345", "/comet_server/doesnotexistyet.indd");
 
 api.documentMoveFile (sessionID, managedDoc, externDoc);
 
Literally the same could have been achieved with (more recommended):
 // register (not yet existing) file
 String externDoc  = api.documentRegister (sessionID, "12345", "/comet_server/doesnotexistyet.indd");
 // upload data to that location:
 api.documentUpload (sessionID, externDoc, data);
 

Parameters:
sessionID - session ID obtained from connectionLogin
documentID - the document ID
newDocumentID - new document ID. If the ID is null or empty a unique ID will be generated and returned.
Returns:
the ID of the new document
Throws:
com.priint.comet.common.CometException

documentMoveTmpFile

java.lang.String documentMoveTmpFile(java.lang.String sessionID,
                                     java.lang.String tmpDocumentID,
                                     java.lang.String newDocumentID)
                                     throws com.priint.comet.common.CometException
This will move a tmp file into something else. What exactly will happen depends on whether a newDocumentID is provided or not and whether this documentID can be resolved as a publication or extern document. The default (newDocumentID empty or unknown) will create a new managed document.

Parameters:
sessionID - session ID obtained from connectionLogin
tmpDocumentID -
newDocumentID - new document ID. If the ID is null or empty a unique ID will be generated and returned.
Returns:
the ID of the new document
Throws:
com.priint.comet.common.CometException

documentOpen

boolean documentOpen(java.lang.String sessionID,
                     java.lang.String documentID)
                     throws com.priint.comet.common.CometException
Open a document on the server. The document must be registered using on of the upload or register methods. The method will throw an Exception if for any reason the document is not available. This can be a DocumentExistsException, DocumentLockedException etc.

Parameters:
sessionID - session ID obtained from connectionLogin
documentID - document ID
Returns:
true on success, false otherwise
Throws:
com.priint.comet.common.CometException

documentRegister

java.lang.String documentRegister(java.lang.String sessionID,
                                  java.lang.String newDocumentID,
                                  java.lang.String path)
                                  throws com.priint.comet.common.CometException
This will register an arbitrary file on comet server. Note: there may be limitations on your server depending on the configuration (See Configuration). Registering files outside known repositories may be allowed only for admins.

Parameters:
sessionID - session ID obtained from connectionLogin
newDocumentID - new document ID. If the ID is null or empty a unique ID will be generated and returned.
path - document path on the server
Returns:
the ID of the new document
Throws:
com.priint.comet.common.CometException

documentReorganize

boolean documentReorganize(java.lang.String sessionID,
                           java.lang.String documentID,
                           int pageIndex,
                           CometWhiteboard.ReorganizeLevel reorganize)
                           throws com.priint.comet.common.CometException
Reorganize a document starting at page pageIndex.

Parameters:
sessionID - session ID obtained from connectionLogin
documentID - the document ID
pageIndex - 0-based index of the first page to reorganize
reorganize - reorganize level. Can be one of "NONE", "FULL", "PAGE", "SUBSEQUENT"
Returns:
true on success, false otherwise
Throws:
com.priint.comet.common.CometException

documentSave

boolean documentSave(java.lang.String sessionID,
                     java.lang.String documentID)
                     throws com.priint.comet.common.CometException
Save a document. Note: comet server can be configured to save documents periodically as well.

Parameters:
sessionID - session ID obtained from connectionLogin
documentID - the document ID
Returns:
true on success, false otherwise
Throws:
com.priint.comet.common.CometException

documentSaveAs

java.lang.String documentSaveAs(java.lang.String sessionID,
                                java.lang.String documentID,
                                java.lang.String newDocumentID)
                                throws com.priint.comet.common.CometException
Just like documentDuplicate except that the new document will be opened right afterward the operation.

Parameters:
sessionID - session ID obtained from connectionLogin
documentID - the document ID
newDocumentID - new document ID. If the ID is null or empty a unique ID will be generated and returned.
Returns:
the ID of the new document
Throws:
com.priint.comet.common.CometException

documentSetActiveLayer

boolean documentSetActiveLayer(java.lang.String sessionID,
                               java.lang.String documentID,
                               java.lang.String layerName)
                               throws com.priint.comet.common.CometException
Set the active layer for the current session / document. This will affect methods like spreadBuild, spreadPlaceTemplate etc.

Parameters:
sessionID - session ID obtained from connectionLogin
documentID - the document ID
layerName - name of the layer
Returns:
true on success, false otherwise
Throws:
com.priint.comet.common.CometException

documentSetItems

boolean documentSetItems(java.lang.String sessionID,
                         java.lang.String documentID,
                         javax.activation.DataHandler data,
                         java.lang.String options)
                         throws com.priint.comet.common.CometException
Replace the items currently placed in this document

Parameters:
sessionID - session ID obtained from connectionLogin
documentID - the document ID
data -
options -
Returns:
true on success, false otherwise
Throws:
com.priint.comet.common.CometException

documentSetNotes

void documentSetNotes(java.lang.String sessionID,
                      java.lang.String documentID,
                      javax.activation.DataHandler notes)
                      throws com.priint.comet.common.CometException
Set (i.e. replace the formerly) notes of a document.

Parameters:
sessionID - session ID obtained from connectionLogin
documentID - the document ID
notes - a XML document as specified here
Throws:
com.priint.comet.common.CometException

documentSetPlaceholderImage

void documentSetPlaceholderImage(java.lang.String sessionID,
                                 java.lang.String documentID,
                                 int placeholderID,
                                 CometWhiteboard.RecordID recordID,
                                 javax.activation.DataHandler data,
                                 boolean executeSaveMethod)
                                 throws com.priint.comet.common.CometException
Apply image to all placeholders linked with Record recordID found in the document overriding the default load method. The image will be uploaded to the server and saved in a directory named "Images" in the documents parent folder. If this directory doesn't exist it will be created.

Parameters:
sessionID - session ID obtained from connectionLogin
documentID - the document ID
placeholderID -
recordID - ID of the record
data - binary data
executeSaveMethod - save new value to databse or not
Throws:
com.priint.comet.common.CometException

documentSetPlaceholderImagePath

void documentSetPlaceholderImagePath(java.lang.String sessionID,
                                     java.lang.String documentID,
                                     int placeholderID,
                                     CometWhiteboard.RecordID recordID,
                                     java.lang.String path,
                                     boolean executeSaveMethod)
                                     throws com.priint.comet.common.CometException
Apply image path to all placeholders linked with Record recordID found in the document overriding the default load method. The image file must exist under the path provided and be a valid image.

Parameters:
sessionID - session ID obtained from connectionLogin
documentID - the document ID
placeholderID -
recordID - ID of the record
path - path of the image on the server
executeSaveMethod -
Throws:
com.priint.comet.common.CometException

documentSetPlaceholderValue

void documentSetPlaceholderValue(java.lang.String sessionID,
                                 java.lang.String documentID,
                                 int placeholderID,
                                 CometWhiteboard.RecordID recordID,
                                 java.lang.String value,
                                 boolean executeSaveMethod)
                                 throws com.priint.comet.common.CometException
Apply value to all placeholders linked with Record recordID found in the document overriding the default load method.

Parameters:
sessionID - session ID obtained from connectionLogin
documentID - the document ID
placeholderID -
recordID - ID of the record
value - the value to be applied new value
executeSaveMethod - write the new value to database or not
Throws:
com.priint.comet.common.CometException

documentSetup

boolean documentSetup(java.lang.String sessionID,
                      java.lang.String documentID,
                      java.lang.String setupParams,
                      boolean applyAdaption)
                      throws com.priint.comet.common.CometException
Setup a document, i.e.: change page size, margins, bleed and slug with or without page adaption.

Parameters:
sessionID - session ID obtained from connectionLogin
documentID - the document ID
setupParams - setup options.
applyAdaption -
Returns:
true on success, false otherwise
Throws:
com.priint.comet.common.CometException

documentShowAllLayers

boolean documentShowAllLayers(java.lang.String sessionID,
                              java.lang.String documentID)
                              throws com.priint.comet.common.CometException
Show all layers for the current session / document.

Parameters:
sessionID - session ID obtained from connectionLogin
documentID - the document ID
Returns:
true on success, false otherwise
Throws:
com.priint.comet.common.CometException

documentShowDefaultLayers

boolean documentShowDefaultLayers(java.lang.String sessionID,
                                  java.lang.String documentID)
                                  throws com.priint.comet.common.CometException
Show the default layers within the current session. These are the layers visible when last saved with InDesignDesktop or visible when opened on InDesign® Server.

Parameters:
sessionID - session ID obtained from connectionLogin
documentID - the document ID
Returns:
true on success, false otherwise
Throws:
com.priint.comet.common.CometException

documentShowLayers

boolean documentShowLayers(java.lang.String sessionID,
                           java.lang.String documentID,
                           java.util.List<java.lang.String> layers)
                           throws com.priint.comet.common.CometException
Show the given layers for the current session / document.

Parameters:
sessionID - session ID obtained from connectionLogin
documentID - the document ID
layers - list of layer names
Returns:
true on success, false otherwise
Throws:
com.priint.comet.common.CometException

documentSyncPlaceholders

void documentSyncPlaceholders(java.lang.String sessionID,
                              java.lang.String documentID,
                              int[] placeholderIDs,
                              CometWhiteboard.RecordID recordID)
                              throws com.priint.comet.common.CometException
Sync all placeholders linked with Record recordID found in the document.

Parameters:
sessionID - session ID obtained from connectionLogin
documentID - the document ID
placeholderIDs -
recordID - ID of the record
Throws:
com.priint.comet.common.CometException

documentTmpCopy

java.lang.String documentTmpCopy(java.lang.String sessionID,
                                 java.lang.String documentID)
                                 throws com.priint.comet.common.CometException
Create a temporary copy of a document. The copy will be deleted as soon as the session is closed.

Parameters:
sessionID - session ID obtained from connectionLogin
documentID - the document ID
Returns:
the tmp document ID
Throws:
com.priint.comet.common.CometException

documentUnregister

boolean documentUnregister(java.lang.String sessionID,
                           java.lang.String documentID)
                           throws com.priint.comet.common.CometException
Unregister a document.

Parameters:
sessionID -
documentID -
Returns:
tru on success, false otherwise
Throws:
com.priint.comet.common.CometException

documentUpdatePlaceholders

boolean documentUpdatePlaceholders(java.lang.String sessionID,
                                   java.lang.String documentID)
                                   throws com.priint.comet.common.CometException
Update placeholder definitions in a document. This method can be usefull if the configuration changed and some documents must be updated.

Parameters:
sessionID - session ID obtained from connectionLogin
documentID - the document ID
Returns:
true on success, false otherwise
Throws:
com.priint.comet.common.CometException

documentUpload

java.lang.String documentUpload(java.lang.String sessionID,
                                java.lang.String newDocumentID,
                                javax.activation.DataHandler data)
                                throws com.priint.comet.common.CometException
This will upload data to the server. Where exactly the data wil be stored depends on whether a newDocumentID is provided or not and whether this documentID can be resolved as a publication or extern document. The default (newDocumentID empty or unknown) will create a new managed document.

Parameters:
sessionID - session ID obtained from connectionLogin
newDocumentID - new document ID. If the ID is null or empty a unique ID will be generated and returned.
data - binary data
Returns:
the ID of the new document
Throws:
com.priint.comet.common.CometException

documentUploadAs

java.lang.String documentUploadAs(java.lang.String sessionID,
                                  java.lang.String newDocumentID,
                                  javax.activation.DataHandler data,
                                  java.lang.String filename)
                                  throws com.priint.comet.common.CometException
Like documentUpload, the filename is preserved for later downloads.

Parameters:
sessionID - session ID obtained from connectionLogin
newDocumentID - new document ID. If the ID is null or empty a unique ID will be generated and returned.
data - binary data
filename - the filename
Returns:
the ID of the new document
Throws:
com.priint.comet.common.CometException

elementDelete

boolean elementDelete(java.lang.String sessionID,
                      java.lang.String documentID,
                      int elementID)
                      throws com.priint.comet.common.CometException
Delete an element.

Parameters:
sessionID - session ID obtained from connectionLogin
documentID - the document ID
elementID - ID of the element
Returns:
true on success, false otherwise
Throws:
com.priint.comet.common.CometException

elementDeleteParagraph

boolean elementDeleteParagraph(java.lang.String sessionID,
                               java.lang.String documentID,
                               int elementID,
                               int paragraph)
                               throws com.priint.comet.common.CometException
Delete a text paragraph.

Parameters:
sessionID - session ID obtained from connectionLogin
documentID - the document ID
elementID - ID of the element
paragraph -
Returns:
true on success, false otherwise
Throws:
com.priint.comet.common.CometException

elementGetPlaceholders

javax.activation.DataHandler elementGetPlaceholders(java.lang.String sessionID,
                                                    java.lang.String documentID,
                                                    int elementID,
                                                    boolean evaluateSyncState,
                                                    java.lang.String options)
                                                    throws com.priint.comet.common.CometException
Get the placeholders of a page.

Parameters:
sessionID - session ID obtained from connectionLogin
documentID - the document ID
elementID - ID of the element
evaluateSyncState - evaluate sync state using the sync script assigned to the placeholder
options - command options
Returns:
A XML document as specified here.
Throws:
com.priint.comet.common.CometException

elementGetPreview

javax.activation.DataHandler elementGetPreview(java.lang.String sessionID,
                                               java.lang.String documentID,
                                               int elementID,
                                               double resolution,
                                               java.lang.String options)
                                               throws com.priint.comet.common.CometException
Get the preview of an element.

Parameters:
sessionID - session ID obtained from connectionLogin
documentID - the document ID
elementID - ID of the element
resolution - resolution in dpi
options - command options
Returns:
jpeg (or other image format depending on options)
Throws:
com.priint.comet.common.CometException

elementInsertParagraphAfter

boolean elementInsertParagraphAfter(java.lang.String sessionID,
                                    java.lang.String documentID,
                                    int elementID,
                                    int paragraph,
                                    java.lang.String value,
                                    java.lang.String options)
                                    throws com.priint.comet.common.CometException
Insert a text paragraph after an existing paragraph.

Parameters:
sessionID - session ID obtained from connectionLogin
documentID - the document ID
elementID - ID of the element
paragraph - ID / sequence of paragraph
value - the value to be applied
options - command options
Returns:
true on success, false otherwise
Throws:
com.priint.comet.common.CometException

elementInsertParagraphBefore

boolean elementInsertParagraphBefore(java.lang.String sessionID,
                                     java.lang.String documentID,
                                     int elementID,
                                     int paragraph,
                                     java.lang.String value,
                                     java.lang.String options)
                                     throws com.priint.comet.common.CometException
Insert a text paragraph before an existing paragraph.

Parameters:
sessionID - session ID obtained from connectionLogin
documentID - the document ID
elementID - ID of the element
paragraph - ID / sequence of paragraph
value - the value to be applied
options - command options
Returns:
true on success, false otherwise
Throws:
com.priint.comet.common.CometException

elementLoadPlaceholders

void elementLoadPlaceholders(java.lang.String sessionID,
                             java.lang.String documentID,
                             int elementID,
                             int[] placeholderIDs,
                             CometWhiteboard.RecordID recordID)
                             throws com.priint.comet.common.CometException
Load all placeholders linked with Record recordID found in an element

Parameters:
sessionID - session ID obtained from connectionLogin
documentID - the document ID
elementID - ID of the element
placeholderIDs -
recordID - ID of the record
Throws:
com.priint.comet.common.CometException

elementMoveBy

boolean elementMoveBy(java.lang.String sessionID,
                      java.lang.String documentID,
                      int elementID,
                      double offsetX,
                      double offsetY)
                      throws com.priint.comet.common.CometException
Move an element by offsetX / offsetY dpi within a spread

Parameters:
sessionID - session ID obtained from connectionLogin
documentID - the document ID
elementID - ID of the element
offsetX - offset x
offsetY - offset y
Returns:
true on success, false otherwise
Throws:
com.priint.comet.common.CometException

elementSetCellValue

boolean elementSetCellValue(java.lang.String sessionID,
                            java.lang.String documentID,
                            int tableID,
                            int column,
                            int row,
                            java.lang.String value,
                            java.lang.String options)
                            throws com.priint.comet.common.CometException
Set the value of a table cell.

Parameters:
sessionID - session ID obtained from connectionLogin
documentID - the document ID
column - 0-based column index
row - 0-based row index
tableID - ID of the table
value - the value to be applied
Returns:
true on success, false otherwise
Throws:
com.priint.comet.common.CometException

elementSetImage

boolean elementSetImage(java.lang.String sessionID,
                        java.lang.String documentID,
                        int elementID,
                        javax.activation.DataHandler data)
                        throws com.priint.comet.common.CometException
Set an element image. The image will be uploaded to the server and saved in a directory named "Images" in the documents parent folder. If this directory doesn't exist it will be created.

Parameters:
sessionID - session ID obtained from connectionLogin
documentID - the document ID
elementID - ID of the element
data - binary data
Returns:
true on success, false otherwise
Throws:
com.priint.comet.common.CometException

elementSetImagePath

boolean elementSetImagePath(java.lang.String sessionID,
                            java.lang.String documentID,
                            int elementID,
                            java.lang.String path)
                            throws com.priint.comet.common.CometException
Set an elements image path. The image file must exist under the path provided and be a valid image.

Parameters:
sessionID - session ID obtained from connectionLogin
documentID - the document ID
elementID - ID of the element
path - image path on the server
Returns:
true on success, false otherwise
Throws:
com.priint.comet.common.CometException

elementSetValue

boolean elementSetValue(java.lang.String sessionID,
                        java.lang.String documentID,
                        int elementID,
                        int paragraph,
                        java.lang.String value,
                        java.lang.String options)
                        throws com.priint.comet.common.CometException
Set an element value.

Parameters:
sessionID - session ID obtained from connectionLogin
documentID - the document ID
elementID - ID of the element
paragraph - ID / sequence of paragraph
value - the value to be applied
options - command options
Returns:
true on success, false otherwise
Throws:
com.priint.comet.common.CometException

elementSetVisible

void elementSetVisible(java.lang.String sessionID,
                       java.lang.String documentID,
                       int[] elementIDs,
                       boolean visibleState,
                       java.lang.String options)
                       throws com.priint.comet.common.CometException
Throws:
com.priint.comet.common.CometException

elementSyncPlaceholders

void elementSyncPlaceholders(java.lang.String sessionID,
                             java.lang.String documentID,
                             int elementID,
                             int[] placeholderIDs,
                             CometWhiteboard.RecordID recordID)
                             throws com.priint.comet.common.CometException
Sync all placeholders linked with Record recordID found in an element.

Parameters:
sessionID - session ID obtained from connectionLogin
documentID - the document ID
elementID - ID of the element
placeholderIDs -
recordID - ID of the record
Throws:
com.priint.comet.common.CometException

elementTransform

boolean elementTransform(java.lang.String sessionID,
                         java.lang.String documentID,
                         int elementID,
                         java.lang.String options)
                         throws com.priint.comet.common.CometException
Transform an element. Features are yet to be implemented, currently resizing and scaling is supported. Examples
 // change the size (width and height) of an element
 boolean result = api.elementTransform (sessionID, documentID, elementID, "size:123.0;");
 // change width and height of an element
 result = api.elementTransform (sessionID, documentID, elementID, "width:123.0;height:456.0;");
 
 // scale retaining the proportions
 result = api.elementTransform (sessionID, documentID, elementID, "scale:2.0;");
 // free scaling
 result = api.elementTransform (sessionID, documentID, elementID, "scale-x:2.0;scale-y:2.3;");
 
More transformations will be implemented at your request, please contact feature-request@priint.net.

Parameters:
sessionID - session ID obtained from connectionLogin
documentID - the document ID
elementID - ID of the element
options - command options
Returns:
success or not
Throws:
com.priint.comet.common.CometException

elementUpdatePlaceholders

boolean elementUpdatePlaceholders(java.lang.String sessionID,
                                  java.lang.String documentID,
                                  int elementID)
                                  throws com.priint.comet.common.CometException
Update the placeholder definitions of all placeholders found in an element.

Parameters:
sessionID - session ID obtained from connectionLogin
documentID - the document ID
elementID - ID of the element
Returns:
true on success, false otherwise
Throws:
com.priint.comet.common.CometException

execTemplate

java.lang.String execTemplate(java.lang.String sessionID,
                              java.lang.String masterdocName,
                              CometWhiteboard.RecordID recordID,
                              int templateID,
                              java.lang.String setupOptions)
                              throws com.priint.comet.common.CometException
Link a template with a product and save it as a new document.

Parameters:
sessionID - session ID obtained from connectionLogin
masterdocName - name of a masterdocument, if empty or null a default blank document will be used
recordID - ID of the record
templateID - ID of the template
setupOptions - setup options.
Returns:
the new document ID this is always a tmp ID, but can be moved to a publication, extern or managed document later,
Throws:
com.priint.comet.common.CometException

getPdfProfiles

java.util.List<java.lang.String> getPdfProfiles(java.lang.String sessionID,
                                                java.lang.String documentID,
                                                java.lang.String options)
                                                throws com.priint.comet.common.CometException
Get the names of all available PDF profiles. This can be the profiles of a certain InDesign® Server instance (if documentID is not null) or profiles available for all instances, this will be the intersection of the profiles installed on each individual InDesign® Server instance.

Parameters:
sessionID - session ID obtained from connectionLogin
documentID - the document ID
options -
Returns:
list of available PDF profiles
Throws:
com.priint.comet.common.CometException

pageAddPages

boolean pageAddPages(java.lang.String sessionID,
                     java.lang.String documentID,
                     int behindPage,
                     int numberOfPages,
                     java.lang.String masterpageName,
                     java.lang.String options)
                     throws com.priint.comet.common.CometException
Add pages to a document.

Parameters:
sessionID - session ID obtained from connectionLogin
documentID - the document ID
behindPage - insertion point, use -1 to insert pages at front of document
numberOfPages - how many pages to add
masterpageName - name of the masterpage to apply (leave empty to apply no masterpage)
options - this command supports the reshuffle option (default: true), set it to false if you don't want pages to be reshuffled
Returns:
boolean, success or not
Throws:
com.priint.comet.common.CometException

pageApplyGrid

boolean pageApplyGrid(java.lang.String sessionID,
                      java.lang.String documentID,
                      int pageIndex,
                      int gridID,
                      CometWhiteboard.ReorganizeLevel reorganize)
                      throws com.priint.comet.common.CometException
Apply a grid to a page.

Parameters:
sessionID - session ID obtained from connectionLogin
documentID - the document ID
pageIndex - 0-based index of the page
gridID - ID of the page grid
reorganize - reorganize the document after deleting. Can be one of "NONE", "FULL", "PAGE", "SUBSEQUENT"
Returns:
true on success, false otherwise
Throws:
com.priint.comet.common.CometException

pageBuild

int pageBuild(java.lang.String sessionID,
              java.lang.String documentID,
              int pageIndex,
              javax.activation.DataHandler itemsXML,
              java.lang.String options)
              throws com.priint.comet.common.CometException
Build a list of products starting at pageIndex.

Parameters:
sessionID - session ID obtained from connectionLogin
documentID - the document ID
pageIndex - 0-based index of the page
itemsXML - xml
options - command options
Returns:
the number of pages generated during build
Throws:
com.priint.comet.common.CometException

pageBuildAt

int pageBuildAt(java.lang.String sessionID,
                java.lang.String documentID,
                int pageIndex,
                javax.activation.DataHandler itemsXML,
                double absLeft,
                double absTop,
                java.lang.String options)
                throws com.priint.comet.common.CometException
Build a list of products starting at pageIndex, position absLeft / absTop.

Parameters:
sessionID - session ID obtained from connectionLogin
documentID - the document ID
pageIndex - 0-based index of the page
itemsXML - xml
absLeft - absolute left position
absTop - absolute top position
options - command options
Returns:
the number of pages generated during build
Throws:
com.priint.comet.common.CometException

pageDeletePages

boolean pageDeletePages(java.lang.String sessionID,
                        java.lang.String documentID,
                        int firstPage,
                        int numberOfPages,
                        java.lang.String options)
                        throws com.priint.comet.common.CometException
Delete pages in a document.

Parameters:
sessionID - session ID obtained from connectionLogin
documentID - the document ID
firstPage - first page to delete
numberOfPages - number of pages to delete
options - this command supports the reshuffle option (default: true), set it to false if you don't want pages to be reshuffled
Returns:
boolean, success or not
Throws:
com.priint.comet.common.CometException

pageGeneratePDF

javax.activation.DataHandler pageGeneratePDF(java.lang.String sessionID,
                                             java.lang.String documentID,
                                             java.lang.String pageList,
                                             java.lang.String pdfProfileName,
                                             java.lang.String options)
                                             throws com.priint.comet.common.CometException
Generate a PDF of a single, a list of or all pages of a document. The PDF output will contain single pages, regardless of the settings in the pdf profile.

Parameters:
sessionID - session ID obtained from connectionLogin
documentID - the document ID
pageList - comma seperated list of spread indexes or empty to output all spreads
pdfProfileName - name of the PDF profile
options - command options
Returns:
pdf
Throws:
com.priint.comet.common.CometException

pageGetCometGroups

javax.activation.DataHandler pageGetCometGroups(java.lang.String sessionID,
                                                java.lang.String documentID,
                                                int pageIndex,
                                                java.lang.String options)
                                                throws com.priint.comet.common.CometException
Get all comet groups of a page.

Parameters:
sessionID - session ID obtained from connectionLogin
documentID - the document ID
pageIndex - 0-based index of the page
options - command options
Returns:
a XML document as specified here.
Throws:
com.priint.comet.common.CometException

pageGetElements

javax.activation.DataHandler pageGetElements(java.lang.String sessionID,
                                             java.lang.String documentID,
                                             int pageIndex,
                                             java.lang.String options)
                                             throws com.priint.comet.common.CometException
Get all elements of a page.

Parameters:
sessionID - session ID obtained from connectionLogin
documentID - the document ID
pageIndex - 0-based index of the page
options - command options
Returns:
a XML document as specified here.
Throws:
com.priint.comet.common.CometException

pageGetNotes

javax.activation.DataHandler pageGetNotes(java.lang.String sessionID,
                                          java.lang.String documentID,
                                          int pageIndex,
                                          java.lang.String options)
                                          throws com.priint.comet.common.CometException
Get all notes of a page.

Parameters:
sessionID - session ID obtained from connectionLogin
documentID - the document ID
pageIndex - 0-based index of the page
options - command options
Returns:
a XML document as specified here.
Throws:
com.priint.comet.common.CometException

pageGetPlaceholders

javax.activation.DataHandler pageGetPlaceholders(java.lang.String sessionID,
                                                 java.lang.String documentID,
                                                 int pageIndex,
                                                 boolean evaluateSyncState,
                                                 java.lang.String options)
                                                 throws com.priint.comet.common.CometException
Get the placeholders of a page.

Parameters:
sessionID - session ID obtained from connectionLogin
documentID - the document ID
pageIndex - 0-based index of the page
evaluateSyncState - evaluate sync state using the sync script assigned to the placeholder
options - command options
Returns:
A XML document as specified here.
Throws:
com.priint.comet.common.CometException

pageGetPreview

javax.activation.DataHandler pageGetPreview(java.lang.String sessionID,
                                            java.lang.String documentID,
                                            int pageIndex,
                                            double resolution,
                                            java.lang.String options)
                                            throws com.priint.comet.common.CometException
Get a preview of a page.

Parameters:
sessionID - session ID obtained from connectionLogin
documentID - the document ID
pageIndex - 0-based index of the page
resolution - resolution in dpi
options - command options
Returns:
jpeg (or other image format depending on options)
Throws:
com.priint.comet.common.CometException

pageGetPreviewOfClipping

javax.activation.DataHandler pageGetPreviewOfClipping(java.lang.String sessionID,
                                                      java.lang.String documentID,
                                                      int pageIndex,
                                                      double resolution,
                                                      double absLeft,
                                                      double absTop,
                                                      double width,
                                                      double height,
                                                      java.lang.String options)
                                                      throws com.priint.comet.common.CometException
Get the preview of a certain area within a page.

Parameters:
sessionID - session ID obtained from connectionLogin
documentID - the document ID
pageIndex - 0-based index of the page
resolution - resolution in dpi
absLeft - left origin of clipping rect
absTop - top origin of clipping rect
width - width of clipping rect
height - height of clipping rect
options - command options
Returns:
jpeg (or other image format depending on options)
Throws:
com.priint.comet.common.CometException

pageGetTemplateID

int pageGetTemplateID(java.lang.String sessionID,
                      java.lang.String documentID,
                      int pageIndex)
                      throws com.priint.comet.common.CometException
Get the ID of the pagetemplate applied to a page.

Parameters:
sessionID - session ID obtained from connectionLogin
documentID - the document ID
pageIndex - 0-based index of the page
Returns:
ID of the page template
Throws:
com.priint.comet.common.CometException

pageImportGroup

int pageImportGroup(java.lang.String sessionID,
                    java.lang.String documentID,
                    java.lang.String documentIDFrom,
                    int pageIndex,
                    int groupID,
                    double absLeft,
                    double absTop)
                    throws com.priint.comet.common.CometException
Import a comet group from a document into another document, page, position absLeft / absTop.

Parameters:
sessionID - session ID obtained from connectionLogin
documentID - the document ID
documentIDFrom - source document ID
pageIndex - 0-based index of the page
groupID - ID of the comet group
absLeft - absolute left position
absTop - absolute top position
Returns:
the ID of the imported generated comet group (will most probably differ from the ID in the original document)
Throws:
com.priint.comet.common.CometException

pageLoadPlaceholders

void pageLoadPlaceholders(java.lang.String sessionID,
                          java.lang.String documentID,
                          int pageIndex,
                          int[] placeholderIDs,
                          CometWhiteboard.RecordID recordID)
                          throws com.priint.comet.common.CometException
Load all placeholders linked with Record recordID found on page pageIndex.

Parameters:
sessionID - session ID obtained from connectionLogin
documentID - the document ID
pageIndex - 0-based index of the page
placeholderIDs -
recordID - ID of the record
Throws:
com.priint.comet.common.CometException

pageMoveCometGroupTo

boolean pageMoveCometGroupTo(java.lang.String sessionID,
                             java.lang.String documentID,
                             int pageIndex,
                             int groupID,
                             double absLeft,
                             double absTop,
                             java.lang.String options)
                             throws com.priint.comet.common.CometException
Move a comet group to position absLeft / absTop on a page.

Parameters:
sessionID - session ID obtained from connectionLogin
documentID - the document ID
pageIndex - 0-based index of the page
groupID - ID of the comet group
absLeft - absolute left position
absTop - absolute top position
options - command options
Returns:
true on success, false otherwise
Throws:
com.priint.comet.common.CometException

pageMoveElementTo

boolean pageMoveElementTo(java.lang.String sessionID,
                          java.lang.String documentID,
                          int pageIndex,
                          int elementID,
                          double absLeft,
                          double absTop)
                          throws com.priint.comet.common.CometException
Move an element to position absLeft / absTop on a page.

Parameters:
sessionID - session ID obtained from connectionLogin
documentID - the document ID
pageIndex - 0-based index of the spread
elementID - ID of the element
absLeft - absolute left position
absTop - absolute top position
Returns:
true on success, false otherwise
Throws:
com.priint.comet.common.CometException

pageMovePages

boolean pageMovePages(java.lang.String sessionID,
                      java.lang.String documentID,
                      int behindPage,
                      int firstPage,
                      int numPages,
                      java.lang.String options)
                      throws com.priint.comet.common.CometException
Move pages in a document

Parameters:
sessionID - session ID obtained from connectionLogin
documentID - the document ID
behindPage -
firstPage -
numPages -
options -
Returns:
true on success, false otherwise
Throws:
com.priint.comet.common.CometException

pagePlaceTemplate

int pagePlaceTemplate(java.lang.String sessionID,
                      java.lang.String documentID,
                      int pageIndex,
                      CometWhiteboard.RecordID recordID,
                      int templateID,
                      double absLeft,
                      double absTop,
                      CometWhiteboard.ReorganizeLevel reorganize,
                      java.lang.String options)
                      throws com.priint.comet.common.CometException
Place a template at position absLeft / absTop on a page.

Parameters:
sessionID - session ID obtained from connectionLogin
documentID - the document ID
pageIndex - 0-based index of the page
recordID - ID of the record
templateID - ID of the template
absLeft - absolute left position
absTop - absolute top position
reorganize - reorganize the document after deleting. Can be one of "NONE", "FULL", "PAGE", "SUBSEQUENT"
options - command options
Returns:
the ID of the newly generated comet group
Throws:
com.priint.comet.common.CometException

pageSetNotes

boolean pageSetNotes(java.lang.String sessionID,
                     java.lang.String documentID,
                     int pageIndex,
                     javax.activation.DataHandler notes)
                     throws com.priint.comet.common.CometException
Set (i.e. replace the formerly) notes of a page.

Parameters:
sessionID - session ID obtained from connectionLogin
documentID - the document ID
pageIndex - 0-based index of the spread 0-based index of spread
notes - a XML document as specified here
Returns:
true on success, false otherwise
Throws:
com.priint.comet.common.CometException

pageSetPlaceholderImage

void pageSetPlaceholderImage(java.lang.String sessionID,
                             java.lang.String documentID,
                             int pageIndex,
                             int placeholderID,
                             CometWhiteboard.RecordID recordID,
                             javax.activation.DataHandler data,
                             boolean executeSaveMethod)
                             throws com.priint.comet.common.CometException
Apply image to all placeholders linked with Record recordID found on page pageIndex overriding the default load method. The image will be uploaded to the server and saved in a directory named "Images" in the documents parent folder. If this directory doesn't exist it will be created.

Parameters:
sessionID - session ID obtained from connectionLogin
documentID - the document ID
pageIndex - 0-based index of the page
placeholderID -
recordID - ID of the record
data - binary data
executeSaveMethod - save new value to databse or not
Throws:
com.priint.comet.common.CometException

pageSetPlaceholderImagePath

void pageSetPlaceholderImagePath(java.lang.String sessionID,
                                 java.lang.String documentID,
                                 int pageIndex,
                                 int placeholderID,
                                 CometWhiteboard.RecordID recordID,
                                 java.lang.String path,
                                 boolean executeSaveMethod)
                                 throws com.priint.comet.common.CometException
Apply image path to all placeholders linked with Record recordID found on page pageIndex overriding the default load method. The image file must exist under the path provided and be a valid image.

Parameters:
sessionID - session ID obtained from connectionLogin
documentID - the document ID
pageIndex - 0-based index of the page
placeholderID -
recordID - ID of the record
path - path of the image on the server
executeSaveMethod -
Throws:
com.priint.comet.common.CometException

pageSetPlaceholderValue

void pageSetPlaceholderValue(java.lang.String sessionID,
                             java.lang.String documentID,
                             int pageIndex,
                             int placeholderID,
                             CometWhiteboard.RecordID recordID,
                             java.lang.String value,
                             boolean executeSaveMethod)
                             throws com.priint.comet.common.CometException
Apply value to all placeholders linked with Record recordID found on page pageIndex overriding the default load method.

Parameters:
sessionID - session ID obtained from connectionLogin
documentID - the document ID
pageIndex - 0-based index of the page
placeholderID -
recordID - ID of the record
value - the value to be applied new value
executeSaveMethod - write the new value to database or not
Throws:
com.priint.comet.common.CometException

pageSetTemplateID

boolean pageSetTemplateID(java.lang.String sessionID,
                          java.lang.String documentID,
                          int pageIndex,
                          int templateID,
                          java.lang.String options)
                          throws com.priint.comet.common.CometException
Apply a pagetemplate to a page.

Parameters:
sessionID - session ID obtained from connectionLogin
documentID - the document ID
pageIndex - 0-based index of the page
templateID - ID of the template
Returns:
true on success, false otherwise
Throws:
com.priint.comet.common.CometException

pageSyncPlaceholders

void pageSyncPlaceholders(java.lang.String sessionID,
                          java.lang.String documentID,
                          int pageIndex,
                          int[] placeholderIDs,
                          CometWhiteboard.RecordID recordID)
                          throws com.priint.comet.common.CometException
Sync all placeholders linked with Record recordID found on page pageIndex.

Parameters:
sessionID - session ID obtained from connectionLogin
documentID - the document ID
pageIndex - 0-based index of the page
placeholderIDs -
recordID - ID of the record
Throws:
com.priint.comet.common.CometException

pageUpdatePlaceholders

boolean pageUpdatePlaceholders(java.lang.String sessionID,
                               java.lang.String documentID,
                               int pageIndex)
                               throws com.priint.comet.common.CometException
Update the placeholder definitions of all placeholders found on a page.

Parameters:
sessionID - session ID obtained from connectionLogin
documentID - the document ID
pageIndex - 0-based index of the page
Returns:
true on success, false otherwise
Throws:
com.priint.comet.common.CometException

reloadConfiguration

boolean reloadConfiguration(java.lang.String adminSessionID,
                            java.lang.String dataset)
                            throws com.priint.comet.common.CometException
Reload configuration. All InDesignInstances connected to the dataset provided will be notified to reload the configuration the next time it is used. You must be admin to do this.

Parameters:
adminSessionID -
dataset -
Returns:
success or not
Throws:
com.priint.comet.common.CometException

spreadAddSpreads

boolean spreadAddSpreads(java.lang.String sessionID,
                         java.lang.String documentID,
                         int behindSpread,
                         int numberOfSpreads,
                         java.lang.String masterpageName,
                         java.lang.String options)
                         throws com.priint.comet.common.CometException
Add spreads to an document.

Parameters:
sessionID - session ID obtained from connectionLogin
documentID - the document ID
behindSpread - insertion point, use -1 to insert spreads at front of document
numberOfSpreads - number of spreads to insert
masterpageName - name of the masterpage to apply (leave empty to apply no masterpage)
options - various options. Note: you can use the "pages-per-spread" option to specify the number of pages per spread, otherwise the document default will be used.
Returns:
true on success, false otherwise
Throws:
com.priint.comet.common.CometException

spreadApplyGrid

boolean spreadApplyGrid(java.lang.String sessionID,
                        java.lang.String documentID,
                        int spreadIndex,
                        int gridID,
                        CometWhiteboard.ReorganizeLevel reorganize)
                        throws com.priint.comet.common.CometException
Apply a grid to a spread.

Parameters:
sessionID - session ID obtained from connectionLogin
documentID - the document ID
spreadIndex - 0-based index of the spread
gridID - ID of the page grid
reorganize - reorganize the document after deleting. Can be one of "NONE", "FULL", "PAGE", "SUBSEQUENT"
Returns:
true on success, false otherwise
Throws:
com.priint.comet.common.CometException

spreadBuild

int spreadBuild(java.lang.String sessionID,
                java.lang.String documentID,
                int spreadIndex,
                javax.activation.DataHandler itemsXML,
                java.lang.String options)
                throws com.priint.comet.common.CometException
Build a list of products starting at spreadIndex.

Parameters:
sessionID - session ID obtained from connectionLogin
documentID - the document ID
spreadIndex - 0-based index of the spread
itemsXML - xml
options - command options
Returns:
number of spreads generated during build
Throws:
com.priint.comet.common.CometException

spreadBuildAt

int spreadBuildAt(java.lang.String sessionID,
                  java.lang.String documentID,
                  int spreadIndex,
                  javax.activation.DataHandler itemsXML,
                  double absLeft,
                  double absTop,
                  java.lang.String options)
                  throws com.priint.comet.common.CometException
Build a list of products starting at spreadIndex, position absLeft / absTop.

Parameters:
sessionID - session ID obtained from connectionLogin
documentID - the document ID
spreadIndex - 0-based index of the spread
itemsXML - xml
absLeft - absolute left position
absTop - absolute top position
options - command options
Returns:
number of spreads generated during build
Throws:
com.priint.comet.common.CometException

spreadDeleteSpreads

boolean spreadDeleteSpreads(java.lang.String sessionID,
                            java.lang.String documentID,
                            int firstSpread,
                            int numberOfSpreads,
                            java.lang.String options)
                            throws com.priint.comet.common.CometException
Delete spreads in a document.

Parameters:
sessionID - session ID obtained from connectionLogin
documentID - the document ID
firstSpread - first spread to delete
numberOfSpreads - number of spreads to delete
options - currently this command does not support any options
Returns:
true on success, false otherwise
Throws:
com.priint.comet.common.CometException

spreadExportCometGroups

javax.activation.DataHandler spreadExportCometGroups(java.lang.String sessionID,
                                                     java.lang.String documentID,
                                                     int spreadIndex,
                                                     int[] groupIDs,
                                                     java.lang.String options)
                                                     throws com.priint.comet.common.CometException
Export a list of comet groups to an InDesign® document

Parameters:
sessionID - session ID obtained from connectionLogin
documentID - the document ID
spreadIndex -
groupIDs -
options -
Returns:
InDesign® document
Throws:
com.priint.comet.common.CometException

spreadExportElements

javax.activation.DataHandler spreadExportElements(java.lang.String sessionID,
                                                  java.lang.String documentID,
                                                  int spreadIndex,
                                                  int[] elementIDs,
                                                  java.lang.String options)
                                                  throws com.priint.comet.common.CometException
Export a list of elements (frames) to an InDesign® document

Parameters:
sessionID - session ID obtained from connectionLogin
documentID - the document ID
spreadIndex -
elementIDs -
options -
Returns:
InDesign® document
Throws:
com.priint.comet.common.CometException

spreadGeneratePDF

javax.activation.DataHandler spreadGeneratePDF(java.lang.String sessionID,
                                               java.lang.String documentID,
                                               java.lang.String spreadList,
                                               java.lang.String pdfProfileName,
                                               java.lang.String options)
                                               throws com.priint.comet.common.CometException
Generate a PDF of a single, a list of or all spreads of a document. Pages will be composed to spreads in the PDF output.

Parameters:
sessionID - session ID obtained from connectionLogin
documentID - the document ID
spreadList - comma seperated list of spread indexes or empty to output all spreads
pdfProfileName - name of the PDF profile
options - command options
Returns:
pdf
Throws:
com.priint.comet.common.CometException

spreadGetCometGroups

javax.activation.DataHandler spreadGetCometGroups(java.lang.String sessionID,
                                                  java.lang.String documentID,
                                                  int spreadIndex,
                                                  java.lang.String options)
                                                  throws com.priint.comet.common.CometException
Get all comet groups of a spread.

Parameters:
sessionID - session ID obtained from connectionLogin
documentID - the document ID
spreadIndex - 0-based index of the spread
options - command options
Returns:
a XML document as specified here.
Throws:
com.priint.comet.common.CometException

spreadGetCometGroupsPreview

javax.activation.DataHandler spreadGetCometGroupsPreview(java.lang.String sessionID,
                                                         java.lang.String documentID,
                                                         int spreadIndex,
                                                         int[] groupIDs,
                                                         double resolution,
                                                         java.lang.String options)
                                                         throws com.priint.comet.common.CometException
Get a preview of several CometGroups

Parameters:
sessionID - session ID obtained from connectionLogin
documentID - the document ID
spreadIndex -
groupIDs -
resolution -
options -
Returns:
image data
Throws:
com.priint.comet.common.CometException

spreadGetElements

javax.activation.DataHandler spreadGetElements(java.lang.String sessionID,
                                               java.lang.String documentID,
                                               int spreadIndex,
                                               java.lang.String options)
                                               throws com.priint.comet.common.CometException
Get all elements of a spread.

Parameters:
sessionID - session ID obtained from connectionLogin
documentID - the document ID
spreadIndex - 0-based index of the spread
options - command options
Returns:
a XML document as specified here.
Throws:
com.priint.comet.common.CometException

spreadGetElementsPreview

javax.activation.DataHandler spreadGetElementsPreview(java.lang.String sessionID,
                                                      java.lang.String documentID,
                                                      int spreadIndex,
                                                      int[] elementIDs,
                                                      double resolution,
                                                      java.lang.String options)
                                                      throws com.priint.comet.common.CometException
Get a preview of several elements

Parameters:
sessionID - session ID obtained from connectionLogin
documentID - the document ID
spreadIndex -
elementIDs -
resolution -
options -
Returns:
image data
Throws:
com.priint.comet.common.CometException

spreadGetNotes

javax.activation.DataHandler spreadGetNotes(java.lang.String sessionID,
                                            java.lang.String documentID,
                                            int spreadIndex,
                                            java.lang.String options)
                                            throws com.priint.comet.common.CometException
Get all notes of a spread.

Parameters:
sessionID - session ID obtained from connectionLogin
documentID - the document ID
spreadIndex - 0-based index of the spread
options - command options
Returns:
a XML document as specified here.
Throws:
com.priint.comet.common.CometException

spreadGetPages

int[] spreadGetPages(java.lang.String sessionID,
                     java.lang.String documentID,
                     int spreadIndex)
                     throws com.priint.comet.common.CometException
Get the indexes of all pages in a spread.

Parameters:
sessionID - session ID obtained from connectionLogin
documentID - the document ID
spreadIndex - 0-based index of the spread
Returns:
indexes of all pages within this spread
Throws:
com.priint.comet.common.CometException

spreadGetPlaceholders

javax.activation.DataHandler spreadGetPlaceholders(java.lang.String sessionID,
                                                   java.lang.String documentID,
                                                   int spreadIndex,
                                                   boolean evaluateSyncState,
                                                   java.lang.String options)
                                                   throws com.priint.comet.common.CometException
Get the placeholders of a spread.

Parameters:
sessionID - session ID obtained from connectionLogin
documentID - the document ID
spreadIndex - 0-based index of the spread
evaluateSyncState - evaluate sync state using the sync script assigned to the placeholder
options - command options
Returns:
A XML document as specified here.
Throws:
com.priint.comet.common.CometException

spreadGetPreview

javax.activation.DataHandler spreadGetPreview(java.lang.String sessionID,
                                              java.lang.String documentID,
                                              int spreadIndex,
                                              double resolution,
                                              java.lang.String options)
                                              throws com.priint.comet.common.CometException
Get a preview of a spread.

Parameters:
sessionID - session ID obtained from connectionLogin
documentID - the document ID
spreadIndex - 0-based index of the spread
resolution - resolution in dpi
options - command options
Returns:
jpeg (or other image format depending on options)
Throws:
com.priint.comet.common.CometException

spreadGetPreviewOfClipping

javax.activation.DataHandler spreadGetPreviewOfClipping(java.lang.String sessionID,
                                                        java.lang.String documentID,
                                                        int spreadIndex,
                                                        double resolution,
                                                        double absLeft,
                                                        double absTop,
                                                        double width,
                                                        double height,
                                                        java.lang.String options)
                                                        throws com.priint.comet.common.CometException
Get a preview of a certain area within a spread.

Parameters:
sessionID - session ID obtained from connectionLogin
documentID - the document ID
spreadIndex - 0-based index of the spread
resolution - resolution in dpi
absLeft - left origin of clipping rect
absTop - top origin of clipping rect
width - width of clipping rect
height - height of clipping rect
options - command options
Returns:
jpeg (or other image format depending on options)
Throws:
com.priint.comet.common.CometException

spreadGetTemplateID

int spreadGetTemplateID(java.lang.String sessionID,
                        java.lang.String documentID,
                        int spreadIndex)
                        throws com.priint.comet.common.CometException
Get the ID of the pagetemplate applied to a spread.

Parameters:
sessionID - session ID obtained from connectionLogin
documentID - the document ID
spreadIndex - 0-based index of the spread
Returns:
ID of the template applied to the spread
Throws:
com.priint.comet.common.CometException

spreadImportGroup

int spreadImportGroup(java.lang.String sessionID,
                      java.lang.String documentID,
                      java.lang.String documentIDFrom,
                      int spreadIndex,
                      int groupID,
                      double absLeft,
                      double absTop)
                      throws com.priint.comet.common.CometException
Import a comet group from a document into another document, spread, position absLeft / absTop.

Parameters:
sessionID - session ID obtained from connectionLogin
documentID - the document ID
documentIDFrom - source document ID
spreadIndex - 0-based index of the spread
groupID - ID of the comet group
absLeft - absolute left position
absTop - absolute top position
Returns:
ID of the imported group (will most probably differ from the ID in the original document)
Throws:
com.priint.comet.common.CometException

spreadLoadPlaceholders

void spreadLoadPlaceholders(java.lang.String sessionID,
                            java.lang.String documentID,
                            int spreadIndex,
                            int[] placeholderIDs,
                            CometWhiteboard.RecordID recordID)
                            throws com.priint.comet.common.CometException
Load all placeholders linked with Record recordID found on spread spreadIndex.

Parameters:
sessionID - session ID obtained from connectionLogin
documentID - the document ID
spreadIndex - 0-based index of the spread
placeholderIDs -
recordID - ID of the record
Throws:
com.priint.comet.common.CometException

spreadMoveCometGroupTo

boolean spreadMoveCometGroupTo(java.lang.String sessionID,
                               java.lang.String documentID,
                               int spreadIndex,
                               int groupID,
                               double absLeft,
                               double absTop,
                               java.lang.String options)
                               throws com.priint.comet.common.CometException
Move a comet group to a certain position within a spread.

Parameters:
sessionID - session ID obtained from connectionLogin
documentID - the document ID
spreadIndex - 0-based index of the spread
groupID - ID of the comet group
absLeft - absolute left position
absTop - absolute top position
options - command options
Returns:
true on success, false otherwise
Throws:
com.priint.comet.common.CometException

spreadMoveElementTo

boolean spreadMoveElementTo(java.lang.String sessionID,
                            java.lang.String documentID,
                            int spreadIndex,
                            int elementID,
                            double absLeft,
                            double absTop)
                            throws com.priint.comet.common.CometException
Move an element to position absLeft / absTop on a spread.

Parameters:
sessionID - session ID obtained from connectionLogin
documentID - the document ID
spreadIndex - 0-based index of the spread
elementID - ID of the element
absLeft - absolute left position
absTop - absolute top position
Returns:
true on success, false otherwise
Throws:
com.priint.comet.common.CometException

spreadMoveSpreads

boolean spreadMoveSpreads(java.lang.String sessionID,
                          java.lang.String documentID,
                          int behindSpread,
                          int firstSpread,
                          int numSpreads,
                          java.lang.String options)
                          throws com.priint.comet.common.CometException
Move spreads in a document

Parameters:
sessionID - session ID obtained from connectionLogin
documentID - the document ID
behindSpread -
firstSpread -
numSpreads -
options -
Returns:
true on success, false otherwise
Throws:
com.priint.comet.common.CometException

spreadPlaceDocument

int spreadPlaceDocument(java.lang.String sessionID,
                        java.lang.String documentID,
                        int spreadIndex,
                        javax.activation.DataHandler data,
                        double absLeft,
                        double absTop,
                        boolean createCometGroup,
                        java.lang.String options)
                        throws com.priint.comet.common.CometException
Import and place an InDesign® document

Parameters:
sessionID - session ID obtained from connectionLogin
documentID - the document ID
spreadIndex -
data -
absLeft -
absTop -
createCometGroup -
options -
Returns:
id of the comet group created
Throws:
com.priint.comet.common.CometException

spreadPlaceTemplate

int spreadPlaceTemplate(java.lang.String sessionID,
                        java.lang.String documentID,
                        int spreadIndex,
                        CometWhiteboard.RecordID recordID,
                        int templateID,
                        double absLeft,
                        double absTop,
                        CometWhiteboard.ReorganizeLevel reorganize,
                        java.lang.String options)
                        throws com.priint.comet.common.CometException
Place a template at position absLeft / absTop on a spread.

Parameters:
sessionID - session ID obtained from connectionLogin
documentID - the document ID
spreadIndex - 0-based index of the spread
recordID - ID of the record
templateID - ID of the template
absLeft - absolute left position
absTop - absolute top position
reorganize - reorganize the document after deleting. Can be one of "NONE", "FULL", "PAGE", "SUBSEQUENT"
options - command options
Returns:
the ID of the newly generated comet group
Throws:
com.priint.comet.common.CometException

spreadSetNotes

boolean spreadSetNotes(java.lang.String sessionID,
                       java.lang.String documentID,
                       int spreadIndex,
                       javax.activation.DataHandler notes)
                       throws com.priint.comet.common.CometException
Set (i.e. replace the formerly) notes of a spread.

Parameters:
sessionID - session ID obtained from connectionLogin
documentID - the document ID
spreadIndex - 0-based index of the spread
notes - a XML document as specified here
Returns:
true on success, false otherwise
Throws:
com.priint.comet.common.CometException

spreadSetPlaceholderImage

void spreadSetPlaceholderImage(java.lang.String sessionID,
                               java.lang.String documentID,
                               int spreadIndex,
                               int placeholderID,
                               CometWhiteboard.RecordID recordID,
                               javax.activation.DataHandler data,
                               boolean executeSaveMethod)
                               throws com.priint.comet.common.CometException
Apply image to all placeholders linked with Record recordID found on spread spreadIndex overriding the default load method. The image will be uploaded to the server and saved in a directory named "Images" in the documents parent folder. If this directory doesn't exist it will be created.

Parameters:
sessionID - session ID obtained from connectionLogin
documentID - the document ID
spreadIndex - 0-based index of the spread
placeholderID -
recordID - ID of the record
data - binary data
executeSaveMethod - save new value to databse or not
Throws:
com.priint.comet.common.CometException

spreadSetPlaceholderImagePath

void spreadSetPlaceholderImagePath(java.lang.String sessionID,
                                   java.lang.String documentID,
                                   int spreadIndex,
                                   int placeholderID,
                                   CometWhiteboard.RecordID recordID,
                                   java.lang.String path,
                                   boolean executeSaveMethod)
                                   throws com.priint.comet.common.CometException
Apply image path to all placeholders linked with Record recordID found on spread spreadIndex overriding the default load method. The image file must exist under the path provided and be a valid image.

Parameters:
sessionID - session ID obtained from connectionLogin
documentID - the document ID
spreadIndex - 0-based index of the spread
placeholderID -
recordID - ID of the record
path - path of the image on the server
executeSaveMethod -
Throws:
com.priint.comet.common.CometException

spreadSetPlaceholderValue

void spreadSetPlaceholderValue(java.lang.String sessionID,
                               java.lang.String documentID,
                               int spreadIndex,
                               int placeholderID,
                               CometWhiteboard.RecordID recordID,
                               java.lang.String value,
                               boolean executeSaveMethod)
                               throws com.priint.comet.common.CometException
Apply value to all placeholders linked with Record recordID found on spread spreadIndex overriding the default load method.

Parameters:
sessionID - session ID obtained from connectionLogin
documentID - the document ID
spreadIndex - 0-based index of the spread
placeholderID -
recordID - ID of the record
value - the value to be applied new value
executeSaveMethod - write the new value to database or not
Throws:
com.priint.comet.common.CometException

spreadSetTemplateID

boolean spreadSetTemplateID(java.lang.String sessionID,
                            java.lang.String documentID,
                            int spreadIndex,
                            int templateID,
                            java.lang.String options)
                            throws com.priint.comet.common.CometException
Apply a pagetemplate to a spread.

Parameters:
sessionID - session ID obtained from connectionLogin
documentID - the document ID
spreadIndex - 0-based index of the spread
templateID - ID of the template
Returns:
true on success, false otherwise
Throws:
com.priint.comet.common.CometException

spreadSyncPlaceholders

void spreadSyncPlaceholders(java.lang.String sessionID,
                            java.lang.String documentID,
                            int spreadIndex,
                            int[] placeholderIDs,
                            CometWhiteboard.RecordID recordID)
                            throws com.priint.comet.common.CometException
Sync all placeholders linked with Record recordID found on spread spreadIndex.

Parameters:
sessionID - session ID obtained from connectionLogin
documentID - the document ID
spreadIndex - 0-based index of the spread
placeholderIDs -
recordID - ID of the record
Throws:
com.priint.comet.common.CometException

spreadUpdatePlaceholders

boolean spreadUpdatePlaceholders(java.lang.String sessionID,
                                 java.lang.String documentID,
                                 int spreadIndex)
                                 throws com.priint.comet.common.CometException
Update the placeholder definitions of all placeholders found on a spread.

Parameters:
sessionID - session ID obtained from connectionLogin
documentID - the document ID
spreadIndex - 0-based index of the spread
Returns:
true on success, false otherwise
Throws:
com.priint.comet.common.CometException