Interface CometWhiteboard


@Deprecated @MTOM(threshold=4096) public interface CometWhiteboard
Deprecated.
The interface Comet whiteboard.
  • Method Details

    • adapterCreateDocument

      jakarta.activation.DataHandler adapterCreateDocument(String sessionID, String documentID, String options) throws CometException
      Deprecated.
      Adapt and download a document. The original document will not be modified, no InDesign document will be created.

      Supported with

      • InDesignServer: yes
      • PDF Renderer: no

      Parameters:
      sessionID - session ID obtained from connectionLogin
      documentID - the document ID
      options - command options
      Returns:
      InDesign document
      Throws:
      CometException - the comet exception
    • adapterCreateDocumentOnServer

      String adapterCreateDocumentOnServer(String sessionID, String documentID, String options, String newDocumentID) throws CometException
      Deprecated.
      Adapt a document and create an InDesign document on the Server. The new document can be referenced with the documentID returned.

      Supported with

      • InDesignServer: yes
      • PDF Renderer: no

      *
      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:
      CometException - the comet exception
    • adapterCreatePDF

      jakarta.activation.DataHandler adapterCreatePDF(String sessionID, String documentID, String options, String pdfProfile) throws CometException
      Deprecated.
      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.

      Supported with

      • InDesignServer: yes
      • PDF Renderer: no

      Parameters:
      sessionID - session ID obtained from connectionLogin
      documentID - the document ID
      options - command options
      pdfProfile - the pdf profile
      Returns:
      pdf data handler
      Throws:
      CometException - the comet exception
    • adapterCreatePreview

      jakarta.activation.DataHandler adapterCreatePreview(String sessionID, String documentID, String options, double resolution) throws CometException
      Deprecated.
      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.

      Supported with

      • InDesignServer: yes
      • PDF Renderer: no

      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:
      CometException - the comet exception
    • cometGroupDeleteGroup

      void cometGroupDeleteGroup(String sessionID, String documentID, int groupID, CometWhiteboard.ReorganizeLevel reorganize, String options) throws CometException
      Deprecated.
      Delete a comet group.

      Supported with

      • InDesignServer: yes
      • PDF Renderer: no

      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:
      CometException - the comet exception
    • cometGroupGetElements

      jakarta.activation.DataHandler cometGroupGetElements(String sessionID, String documentID, int groupID, String options) throws CometException
      Deprecated.
      Get all elements of a comet group.

      Supported with

      • InDesignServer: yes
      • PDF Renderer: no

      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:
      CometException - the comet exception
    • cometGroupGetNotes

      jakarta.activation.DataHandler cometGroupGetNotes(String sessionID, String documentID, int groupID, String options) throws CometException
      Deprecated.
      Get all notes of a comet group.

      Supported with

      • InDesignServer: yes
      • PDF Renderer: no

      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:
      CometException - the comet exception
    • cometGroupGetPlaceholders

      jakarta.activation.DataHandler cometGroupGetPlaceholders(String sessionID, String documentID, int groupID, boolean evaluateSyncState, String options) throws CometException
      Deprecated.
      Get the placeholders of a comet group.

      Supported with

      • InDesignServer: yes
      • PDF Renderer: no

      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:
      CometException - the comet exception
    • cometGroupGetPreviews

      jakarta.activation.DataHandler[] cometGroupGetPreviews(String sessionID, String documentID, int groupID, double resolution, String options) throws CometException
      Deprecated.
      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.

      Supported with

      • InDesignServer: yes
      • PDF Renderer: no

      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:
      CometException - the comet exception
    • cometGroupInsertAfter

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

      Supported with

      • InDesignServer: yes
      • PDF Renderer: no

      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:
      CometException - the comet exception
    • cometGroupInsertBefore

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

      Supported with

      • InDesignServer: yes
      • PDF Renderer: no

      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:
      CometException - the comet exception
    • cometGroupReplaceGroup

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

      Supported with

      • InDesignServer: yes
      • PDF Renderer: no

      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:
      CometException - the comet exception
    • cometGroupSetNotes

      boolean cometGroupSetNotes(String sessionID, String documentID, int groupID, jakarta.activation.DataHandler notes) throws CometException
      Deprecated.
      Set (i.e. replace the formerly) notes of a comet group.

      Supported with

      • InDesignServer: yes
      • PDF Renderer: no

      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:
      CometException - the comet exception
    • cometGroupUpdatePlaceholders

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

      Supported with

      • InDesignServer: yes
      • PDF Renderer: no

      Parameters:
      sessionID - session ID obtained from connectionLogin
      documentID - the document ID
      groupID - ID of the comet group
      Returns:
      true on success, false otherwise
      Throws:
      CometException - the comet exception
    • cometGroupResolveGroup

      boolean cometGroupResolveGroup(String sessionID, String documentID, int groupID, boolean resolveSubGroups, String options) throws CometException
      Deprecated.
      Resolve a comet group.

      Supported with

      • InDesignServer: yes
      • PDF Renderer: no

      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:
      CometException - the comet exception
    • cometGroupRemoveFromGroup

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

      Supported with

      • InDesignServer: yes
      • PDF Renderer: no

      Parameters:
      sessionID - session ID obtained from connectionLogin
      documentID - the document ID
      groupID - ID of the comet group
      elementIDs - the element i ds
      options - command options
      Returns:
      true on success, false otherwise
      Throws:
      CometException - the comet exception
    • cometGroupAddToGroup

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

      Supported with

      • InDesignServer: yes
      • PDF Renderer: no

      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:
      CometException - the comet exception
    • cometGroupJoinGroups

      int cometGroupJoinGroups(String sessionID, String documentID, int[] groupIDs, boolean asSubGroups, String options) throws CometException
      Deprecated.
      Join comet groups.

      Supported with

      • InDesignServer: yes
      • PDF Renderer: no

      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:
      CometException - the comet exception
    • connectionLogin

      CometWhiteboard.SessionInfo connectionLogin(String user, String password, String datasetName) throws CometException
      Deprecated.
      Login to comet server.

      Supported with

      • InDesignServer: yes
      • PDF Renderer: yes

      Parameters:
      user - user name (login)
      password - the password
      datasetName - name of the dataset
      Returns:
      a SessionInfo object on success
      Throws:
      CometException - the comet exception
    • connectionLogout

      void connectionLogout(String sessionID) throws CometException
      Deprecated.
      Logout from comet server.

      Supported with

      • InDesignServer: yes
      • PDF Renderer: yes

      Parameters:
      sessionID - session ID obtained from connectionLogin
      Throws:
      CometException - the comet exception
    • connectionGetNewChildSession

      CometWhiteboard.SessionInfo connectionGetNewChildSession(String sessionID) throws CometException
      Deprecated.
      Get Child Session of Current Session.

      Supported with

      • InDesignServer: yes
      • PDF Renderer: yes

      Parameters:
      sessionID - session ID obtained from connectionLogin
      Returns:
      the session info
      Throws:
      CometException - the comet exception
    • connectionSetUserProperty

      boolean connectionSetUserProperty(String sessionID, String key, String value) throws CometException
      Deprecated.
      Set a user property. User properties will be saved in a XML file and be be accessed in csript / InDesignServer 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>
       

      Supported with

      • InDesignServer: yes
      • PDF Renderer: yes

      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:
      CometException - the comet exception
    • connectionSetRenderer

      void connectionSetRenderer(String sessionID, CometWhiteboard.Renderer renderer) throws CometException
      Deprecated.

      Sets the renderer for this session

      The default renderer is ANY_TYPE, this means: any type of renderer can be used to process requests for this session.
      With this method, the renderer can be set to PDF Renderer or InDesignServer.

      Supported with

      • InDesignServer: yes
      • PDF Renderer: yes

      Parameters:
      sessionID - the session id
      renderer - the renderer
      Throws:
      CometException - the comet exception
    • documentClose

      boolean documentClose(String sessionID, String documentID) throws CometException
      Deprecated.
      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

      Supported with

      • InDesignServer: yes
      • PDF Renderer: yes

      Parameters:
      sessionID - session ID obtained from connectionLogin
      documentID - the document ID
      Returns:
      true on success, false otherwise
      Throws:
      CometException - the comet exception
    • documentCloseImmediately

      boolean documentCloseImmediately(String sessionID, String documentID) throws CometException
      Deprecated.
      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:
      CometException - the comet exception
    • documentCreate

      String documentCreate(String sessionID, String newDocumentID, String setupParams) throws CometException
      Deprecated.
      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:
      CometException - the comet exception
    • documentCreateAs

      String documentCreateAs(String sessionID, String newDocumentID, String filename, String setupParams) throws CometException
      Deprecated.
      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:
      CometException - the comet exception
    • documentDelete

      boolean documentDelete(String sessionID, String documentID) throws CometException
      Deprecated.
      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:
      CometException - the comet exception
    • documentDownload

      jakarta.activation.DataHandler documentDownload(String sessionID, String documentID) throws CometException
      Deprecated.
      Download a document
      Parameters:
      sessionID - session ID obtained from connectionLogin
      documentID - the document ID
      Returns:
      InDesign document
      Throws:
      CometException - the comet exception
    • documentDuplicate

      String documentDuplicate(String sessionID, String documentID, String newDocumentID) throws CometException
      Deprecated.
      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:
      CometException - the comet exception
    • documentExecCScript

      String documentExecCScript(String sessionID, String documentID, int scriptID, String arguments) throws CometException
      Deprecated.
      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:
      CometException - the comet exception
    • documentExists

      boolean documentExists(String sessionID, String documentID) throws CometException
      Deprecated.
      Check whether a document exists more information. 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:
      CometException - the comet exception
    • documentForceClose

      boolean documentForceClose(String sessionID, String documentID) throws CometException
      Deprecated.
      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:
      CometException - the comet exception
    • documentGeneratePDF

      jakarta.activation.DataHandler documentGeneratePDF(String sessionID, String documentID, String pdfProfileName, String options) throws CometException
      Deprecated.
      Create a pdf of all pages / spreads of a document.
      Parameters:
      sessionID - session ID obtained from connectionLogin
      documentID - the document ID
      pdfProfileName - the pdf profile name
      options - command options.
      Returns:
      pdf data handler
      Throws:
      CometException - the comet exception
    • documentGetCometGroups

      jakarta.activation.DataHandler documentGetCometGroups(String sessionID, String documentID, String options) throws CometException
      Deprecated.
      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:
      CometException - the comet exception
    • documentGetElements

      jakarta.activation.DataHandler documentGetElements(String sessionID, String documentID, String options) throws CometException
      Deprecated.
      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:
      CometException - the comet exception
    • documentGetInfo

      CometWhiteboard.DocumentInfo documentGetInfo(String sessionID, String documentID) throws CometException
      Deprecated.
      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:
      CometException - the comet exception
    • documentGetList

      List<CometWhiteboard.DocumentInfo> documentGetList(String sessionID) throws CometException
      Deprecated.
      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:
      CometException - the comet exception
    • documentGetLayers

      List<String> documentGetLayers(String sessionID, String documentID) throws CometException
      Deprecated.
      Get all document layers
      Parameters:
      sessionID - session ID obtained from connectionLogin
      documentID - the document ID
      Returns:
      List of all layer names
      Throws:
      CometException - the comet exception
    • documentGetVisibleLayers

      List<String> documentGetVisibleLayers(String sessionID, String documentID) throws CometException
      Deprecated.
      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:
      CometException - the comet exception
    • documentGetNotes

      jakarta.activation.DataHandler documentGetNotes(String sessionID, String documentID, String options) throws CometException
      Deprecated.
      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:
      CometException - the comet exception
    • documentGetPageCount

      int documentGetPageCount(String sessionID, String documentID) throws CometException
      Deprecated.
      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:
      CometException - the comet exception
    • documentGetPlaceholders

      jakarta.activation.DataHandler documentGetPlaceholders(String sessionID, String documentID, boolean evaluateSyncState, String options) throws CometException
      Deprecated.
      Get all placeholders of a document. .
      Parameters:
      sessionID - session ID obtained from connectionLogin
      documentID - the document ID
      evaluateSyncState - the evaluate sync state
      options - command options
      Returns:
      a XML document as specified here.
      Throws:
      CometException - the comet exception
    • documentGetSessionDocs

      List<CometWhiteboard.DocumentInfo> documentGetSessionDocs(String sessionID) throws CometException
      Deprecated.
      Get all documents opened in the current session
      Parameters:
      sessionID - the session id
      Returns:
      all documents opened in the current session
      Throws:
      CometException - the comet exception
    • documentGetSpreadCount

      int documentGetSpreadCount(String sessionID, String documentID) throws CometException
      Deprecated.
      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:
      CometException - the comet exception
    • documentGetSpreads

      jakarta.activation.DataHandler documentGetSpreads(String sessionID, String documentID, String options) throws CometException
      Deprecated.
      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:
      CometException - the comet exception
    • documentHideAllLayers

      boolean documentHideAllLayers(String sessionID, String documentID) throws CometException
      Deprecated.
      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:
      CometException - the comet exception
    • documentHideLayers

      boolean documentHideLayers(String sessionID, String documentID, List<String> layers) throws CometException
      Deprecated.
      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:
      CometException - the comet exception
    • documentIsRegistered

      boolean documentIsRegistered(String sessionID, String documentID) throws CometException
      Deprecated.
      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 - the session id
      documentID - the document id
      Returns:
      true, if document is registered, false otherwise
      Throws:
      CometException - the comet exception
    • documentLoadPlaceholders

      void documentLoadPlaceholders(String sessionID, String documentID, int[] placeholderIDs, CometWhiteboard.RecordID recordID) throws CometException
      Deprecated.
      Load all placeholders linked with Record recordID found in the document. .
      Parameters:
      sessionID - session ID obtained from connectionLogin
      documentID - the document ID
      placeholderIDs - the placeholder i ds
      recordID - ID of the record
      Throws:
      CometException - the comet exception
    • documentSyncPlaceholders

      void documentSyncPlaceholders(String sessionID, String documentID, int[] placeholderIDs, CometWhiteboard.RecordID recordID) throws CometException
      Deprecated.
      Sync all placeholders linked with Record recordID found in the document. .
      Parameters:
      sessionID - session ID obtained from connectionLogin
      documentID - the document ID
      placeholderIDs - the placeholder i ds
      recordID - ID of the record
      Throws:
      CometException - the comet exception
    • documentMoveFile

      String documentMoveFile(String sessionID, String documentID, String newDocumentID) throws CometException
      Deprecated.
      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:
      CometException - the comet exception
    • documentMoveTmpFile

      String documentMoveTmpFile(String sessionID, String tmpDocumentID, String newDocumentID) throws CometException
      Deprecated.
      This will move a tmp file into something else. more information. 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 - the tmp 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:
      CometException - the comet exception
    • documentOpen

      boolean documentOpen(String sessionID, String documentID) throws CometException
      Deprecated.
      Open a document on the server. The document must be registered using on of the upload or register methods. more information. The method will throw an Exception if for any reason the document is not available. This can be a DocumentExistsException, DocumentLockedException etc. See Exceptions and ErrorCodes for more information.
      Parameters:
      sessionID - session ID obtained from connectionLogin
      documentID - document ID
      Returns:
      true on success, false otherwise
      Throws:
      CometException - the comet exception
    • documentRegister

      String documentRegister(String sessionID, String newDocumentID, String path) throws CometException
      Deprecated.
      This will register an arbitrary file on comet server. more information. Note: there may be limitations on your server depending on the 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:
      CometException - the comet exception
    • documentReorganize

      boolean documentReorganize(String sessionID, String documentID, int pageIndex, CometWhiteboard.ReorganizeLevel reorganize) throws CometException
      Deprecated.
      Reorganize a document starting at page pageIndex.Working with Product Templates or
      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:
      CometException - the comet exception
    • documentSave

      boolean documentSave(String sessionID, String documentID) throws CometException
      Deprecated.
      Save a document.
      Parameters:
      sessionID - session ID obtained from connectionLogin
      documentID - the document ID
      Returns:
      true on success, false otherwise
      Throws:
      CometException - the comet exception
    • documentSaveAndRegister

      boolean documentSaveAndRegister(String sessionID, String documentID) throws CometException
      Deprecated.

      Saves a document and registers in the publication database.

      Parameters:
      sessionID - session ID obtained from connectionLogin
      documentID - the document ID
      Returns:
      true on success, false otherwise
      Throws:
      CometException - the comet exception
    • documentSaveAs

      String documentSaveAs(String sessionID, String documentID, String newDocumentID) throws CometException
      Deprecated.
      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:
      CometException - the comet exception
    • documentSetActiveLayer

      boolean documentSetActiveLayer(String sessionID, String documentID, String layerName) throws CometException
      Deprecated.
      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:
      CometException - the comet exception
    • documentSetNotes

      void documentSetNotes(String sessionID, String documentID, jakarta.activation.DataHandler notes) throws CometException
      Deprecated.
      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:
      CometException - the comet exception
    • documentSetPlaceholderImage

      void documentSetPlaceholderImage(String sessionID, String documentID, int placeholderID, CometWhiteboard.RecordID recordID, jakarta.activation.DataHandler data, boolean executeSaveMethod) throws CometException
      Deprecated.
      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 - the placeholder id
      recordID - ID of the record
      data - binary data
      executeSaveMethod - save new value to databse or not
      Throws:
      CometException - the comet exception
    • documentSetPlaceholderImagePath

      void documentSetPlaceholderImagePath(String sessionID, String documentID, int placeholderID, CometWhiteboard.RecordID recordID, String path, boolean executeSaveMethod) throws CometException
      Deprecated.
      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 - the placeholder id
      recordID - ID of the record
      path - path of the image on the server
      executeSaveMethod - the execute save method
      Throws:
      CometException - the comet exception
    • documentSetPlaceholderValue

      void documentSetPlaceholderValue(String sessionID, String documentID, int placeholderID, CometWhiteboard.RecordID recordID, String value, boolean executeSaveMethod) throws CometException
      Deprecated.
      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 - the placeholder id
      recordID - ID of the record
      value - the value to be applied new value
      executeSaveMethod - write the new value to database or not
      Throws:
      CometException - the comet exception
    • documentSetup

      boolean documentSetup(String sessionID, String documentID, String setupParams, boolean applyAdaption) throws CometException
      Deprecated.
      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 - the apply adaption
      Returns:
      true on success, false otherwise
      Throws:
      CometException - the comet exception
    • documentShowAllLayers

      boolean documentShowAllLayers(String sessionID, String documentID) throws CometException
      Deprecated.
      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:
      CometException - the comet exception
    • documentShowDefaultLayers

      boolean documentShowDefaultLayers(String sessionID, String documentID) throws CometException
      Deprecated.
      Show the default layers within the current session. These are the layers visible when last saved with InDesignDesktop or visible when opened on InDesignServer.
      Parameters:
      sessionID - session ID obtained from connectionLogin
      documentID - the document ID
      Returns:
      true on success, false otherwise
      Throws:
      CometException - the comet exception
    • documentShowLayers

      boolean documentShowLayers(String sessionID, String documentID, List<String> layers) throws CometException
      Deprecated.
      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:
      CometException - the comet exception
    • documentTmpCopy

      String documentTmpCopy(String sessionID, String documentID) throws CometException
      Deprecated.
      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:
      CometException - the comet exception
    • documentUnregister

      boolean documentUnregister(String sessionID, String documentID) throws CometException
      Deprecated.
      Unregister a document.
      Parameters:
      sessionID - the session id
      documentID - the document id
      Returns:
      tru on success, false otherwise
      Throws:
      CometException - the comet exception
    • documentUpdatePlaceholders

      boolean documentUpdatePlaceholders(String sessionID, String documentID) throws CometException
      Deprecated.
      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:
      CometException - the comet exception
    • documentUpload

      String documentUpload(String sessionID, String newDocumentID, jakarta.activation.DataHandler data) throws CometException
      Deprecated.
      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:
      CometException - the comet exception
    • documentUploadAs

      String documentUploadAs(String sessionID, String newDocumentID, jakarta.activation.DataHandler data, String filename) throws CometException
      Deprecated.
      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:
      CometException - the comet exception
    • elementDelete

      boolean elementDelete(String sessionID, String documentID, int elementID) throws CometException
      Deprecated.
      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:
      CometException - the comet exception
    • elementDeleteParagraph

      boolean elementDeleteParagraph(String sessionID, String documentID, int elementID, int paragraph) throws CometException
      Deprecated.
      Delete a text paragraph.
      Parameters:
      sessionID - session ID obtained from connectionLogin
      documentID - the document ID
      elementID - ID of the element
      paragraph - the paragraph
      Returns:
      true on success, false otherwise
      Throws:
      CometException - the comet exception
    • elementGetPreview

      jakarta.activation.DataHandler elementGetPreview(String sessionID, String documentID, int elementID, double resolution, String options) throws CometException
      Deprecated.
      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:
      CometException - the comet exception
    • elementGetPlaceholders

      jakarta.activation.DataHandler elementGetPlaceholders(String sessionID, String documentID, int elementID, boolean evaluateSyncState, String options) throws CometException
      Deprecated.
      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:
      CometException - the comet exception
    • elementUpdatePlaceholders

      boolean elementUpdatePlaceholders(String sessionID, String documentID, int elementID) throws CometException
      Deprecated.
      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:
      CometException - the comet exception
    • elementLoadPlaceholders

      void elementLoadPlaceholders(String sessionID, String documentID, int elementID, int[] placeholderIDs, CometWhiteboard.RecordID recordID) throws CometException
      Deprecated.
      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 - the placeholder i ds
      recordID - ID of the record
      Throws:
      CometException - the comet exception
    • elementSyncPlaceholders

      void elementSyncPlaceholders(String sessionID, String documentID, int elementID, int[] placeholderIDs, CometWhiteboard.RecordID recordID) throws CometException
      Deprecated.
      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 - the placeholder i ds
      recordID - ID of the record
      Throws:
      CometException - the comet exception
    • elementInsertParagraphAfter

      boolean elementInsertParagraphAfter(String sessionID, String documentID, int elementID, int paragraph, String value, String options) throws CometException
      Deprecated.
      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:
      CometException - the comet exception
    • elementInsertParagraphBefore

      boolean elementInsertParagraphBefore(String sessionID, String documentID, int elementID, int paragraph, String value, String options) throws CometException
      Deprecated.
      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:
      CometException - the comet exception
    • elementMoveBy

      boolean elementMoveBy(String sessionID, String documentID, int elementID, double offsetX, double offsetY) throws CometException
      Deprecated.
      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:
      CometException - the comet exception
    • elementSetCellValue

      boolean elementSetCellValue(String sessionID, String documentID, int tableID, int column, int row, String value, String options) throws CometException
      Deprecated.
      Set the value of a table cell.
      Parameters:
      sessionID - session ID obtained from connectionLogin
      documentID - the document ID
      tableID - ID of the table
      column - 0-based column index
      row - 0-based row index
      value - the value to be applied
      options - the options
      Returns:
      true on success, false otherwise
      Throws:
      CometException - the comet exception
    • elementSetImage

      boolean elementSetImage(String sessionID, String documentID, int elementID, jakarta.activation.DataHandler data) throws CometException
      Deprecated.
      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:
      CometException - the comet exception
    • elementSetImagePath

      boolean elementSetImagePath(String sessionID, String documentID, int elementID, String path) throws CometException
      Deprecated.
      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:
      CometException - the comet exception
    • elementSetValue

      boolean elementSetValue(String sessionID, String documentID, int elementID, int paragraph, String value, String options) throws CometException
      Deprecated.
      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:
      CometException - the comet exception
    • elementTransform

      boolean elementTransform(String sessionID, String documentID, int elementID, String options) throws CometException
      Deprecated.
      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:
      CometException - the comet exception
    • execTemplate

      String execTemplate(String sessionID, String masterdocName, CometWhiteboard.RecordID recordID, int templateID, String setupOptions) throws CometException
      Deprecated.
      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, see documentMoveTmpFile
      Throws:
      CometException - the comet exception
    • cometGroupLoadPlaceholders

      void cometGroupLoadPlaceholders(String sessionID, String documentID, int groupID, int[] placeholderIDs, CometWhiteboard.RecordID recordID) throws CometException
      Deprecated.
      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 - the placeholder i ds
      recordID - ID of the record
      Throws:
      CometException - the comet exception
    • cometGroupSyncPlaceholders

      void cometGroupSyncPlaceholders(String sessionID, String documentID, int groupID, int[] placeholderIDs, CometWhiteboard.RecordID recordID) throws CometException
      Deprecated.
      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 - the placeholder i ds
      recordID - ID of the record
      Throws:
      CometException - the comet exception
    • cometGroupSetPlaceholderImage

      void cometGroupSetPlaceholderImage(String sessionID, String documentID, int groupID, int placeholderID, CometWhiteboard.RecordID recordID, jakarta.activation.DataHandler data, boolean executeSaveMethod) throws CometException
      Deprecated.
      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 - the placeholder id
      recordID - ID of the record
      data - binary data
      executeSaveMethod - save new value to databse or not
      Throws:
      CometException - the comet exception
    • cometGroupSetPlaceholderImagePath

      void cometGroupSetPlaceholderImagePath(String sessionID, String documentID, int groupID, int placeholderID, CometWhiteboard.RecordID recordID, String path, boolean executeSaveMethod) throws CometException
      Deprecated.
      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 - the placeholder id
      recordID - ID of the record
      path - path of the image on the server
      executeSaveMethod - the execute save method
      Throws:
      CometException - the comet exception
    • cometGroupSetPlaceholderValue

      void cometGroupSetPlaceholderValue(String sessionID, String documentID, int groupID, int placeholderID, CometWhiteboard.RecordID recordID, String value, boolean executeSaveMethod) throws CometException
      Deprecated.
      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 - the placeholder id
      recordID - ID of the record
      value - the value to be applied new value
      executeSaveMethod - write the new value to database or not
      Throws:
      CometException - the comet exception
    • pageApplyGrid

      boolean pageApplyGrid(String sessionID, String documentID, int pageIndex, int gridID, CometWhiteboard.ReorganizeLevel reorganize) throws CometException
      Deprecated.
      Apply a grid to a page.Working with Product Templates for more information.
      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:
      CometException - the comet exception
    • pageBuild

      int pageBuild(String sessionID, String documentID, int pageIndex, jakarta.activation.DataHandler itemsXML, String options) throws CometException
      Deprecated.
      Build a list of products starting at pageIndex. Working with Product Templates for more information.
      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:
      CometException - the comet exception
    • pageBuildAt

      int pageBuildAt(String sessionID, String documentID, int pageIndex, jakarta.activation.DataHandler itemsXML, double absLeft, double absTop, String options) throws CometException
      Deprecated.
      Build a list of products starting at pageIndex, position absLeft / absTop. Working with Product Templates for more information.
      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:
      CometException - the comet exception
    • pageGeneratePDF

      jakarta.activation.DataHandler pageGeneratePDF(String sessionID, String documentID, String pageList, String pdfProfileName, String options) throws CometException
      Deprecated.
      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 data handler
      Throws:
      CometException - the comet exception
    • pageGetCometGroups

      jakarta.activation.DataHandler pageGetCometGroups(String sessionID, String documentID, int pageIndex, String options) throws CometException
      Deprecated.
      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:
      CometException - the comet exception
    • pageGetElements

      jakarta.activation.DataHandler pageGetElements(String sessionID, String documentID, int pageIndex, String options) throws CometException
      Deprecated.
      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:
      CometException - the comet exception
    • pageGetNotes

      jakarta.activation.DataHandler pageGetNotes(String sessionID, String documentID, int pageIndex, String options) throws CometException
      Deprecated.
      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:
      CometException - the comet exception
    • pageGetPlaceholders

      jakarta.activation.DataHandler pageGetPlaceholders(String sessionID, String documentID, int pageIndex, boolean evaluateSyncState, String options) throws CometException
      Deprecated.
      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:
      CometException - the comet exception
    • pageGetPreview

      jakarta.activation.DataHandler pageGetPreview(String sessionID, String documentID, int pageIndex, double resolution, String options) throws CometException
      Deprecated.
      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:
      CometException - the comet exception
    • pageGetPreviewOfClipping

      jakarta.activation.DataHandler pageGetPreviewOfClipping(String sessionID, String documentID, int pageIndex, double resolution, double absLeft, double absTop, double width, double height, String options) throws CometException
      Deprecated.
      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:
      CometException - the comet exception
    • pageGetTemplateID

      int pageGetTemplateID(String sessionID, String documentID, int pageIndex) throws CometException
      Deprecated.
      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:
      CometException - the comet exception
    • pageImportGroup

      int pageImportGroup(String sessionID, String documentID, String documentIDFrom, int pageIndex, int groupID, double absLeft, double absTop) throws CometException
      Deprecated.
      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:
      CometException - the comet exception
    • pageLoadPlaceholders

      void pageLoadPlaceholders(String sessionID, String documentID, int pageIndex, int[] placeholderIDs, CometWhiteboard.RecordID recordID) throws CometException
      Deprecated.
      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 - the placeholder i ds
      recordID - ID of the record
      Throws:
      CometException - the comet exception
    • pageSyncPlaceholders

      void pageSyncPlaceholders(String sessionID, String documentID, int pageIndex, int[] placeholderIDs, CometWhiteboard.RecordID recordID) throws CometException
      Deprecated.
      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 - the placeholder i ds
      recordID - ID of the record
      Throws:
      CometException - the comet exception
    • pageMoveCometGroupTo

      boolean pageMoveCometGroupTo(String sessionID, String documentID, int pageIndex, int groupID, double absLeft, double absTop, String options) throws CometException
      Deprecated.
      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:
      CometException - the comet exception
    • pageMoveElementTo

      boolean pageMoveElementTo(String sessionID, String documentID, int pageIndex, int elementID, double absLeft, double absTop) throws CometException
      Deprecated.
      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:
      CometException - the comet exception
    • pagePlaceTemplate

      int pagePlaceTemplate(String sessionID, String documentID, int pageIndex, CometWhiteboard.RecordID recordID, int templateID, double absLeft, double absTop, CometWhiteboard.ReorganizeLevel reorganize, String options) throws CometException
      Deprecated.
      Place a template at position absLeft / absTop on a page. Working with Product Templates for more information.
      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:
      CometException - the comet exception
    • pageSetNotes

      boolean pageSetNotes(String sessionID, String documentID, int pageIndex, jakarta.activation.DataHandler notes) throws CometException
      Deprecated.
      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:
      CometException - the comet exception
    • pageSetPlaceholderImage

      void pageSetPlaceholderImage(String sessionID, String documentID, int pageIndex, int placeholderID, CometWhiteboard.RecordID recordID, jakarta.activation.DataHandler data, boolean executeSaveMethod) throws CometException
      Deprecated.
      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 - the placeholder id
      recordID - ID of the record
      data - binary data
      executeSaveMethod - save new value to databse or not
      Throws:
      CometException - the comet exception
    • pageSetPlaceholderImagePath

      void pageSetPlaceholderImagePath(String sessionID, String documentID, int pageIndex, int placeholderID, CometWhiteboard.RecordID recordID, String path, boolean executeSaveMethod) throws CometException
      Deprecated.
      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 - the placeholder id
      recordID - ID of the record
      path - path of the image on the server
      executeSaveMethod - the execute save method
      Throws:
      CometException - the comet exception
    • pageSetPlaceholderValue

      void pageSetPlaceholderValue(String sessionID, String documentID, int pageIndex, int placeholderID, CometWhiteboard.RecordID recordID, String value, boolean executeSaveMethod) throws CometException
      Deprecated.
      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 - the placeholder id
      recordID - ID of the record
      value - the value to be applied new value
      executeSaveMethod - write the new value to database or not
      Throws:
      CometException - the comet exception
    • pageSetTemplateID

      boolean pageSetTemplateID(String sessionID, String documentID, int pageIndex, int templateID, String options) throws CometException
      Deprecated.
      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
      options - the options
      Returns:
      true on success, false otherwise
      Throws:
      CometException - the comet exception
    • pageUpdatePlaceholders

      boolean pageUpdatePlaceholders(String sessionID, String documentID, int pageIndex) throws CometException
      Deprecated.
      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:
      CometException - the comet exception
    • spreadApplyGrid

      boolean spreadApplyGrid(String sessionID, String documentID, int spreadIndex, int gridID, CometWhiteboard.ReorganizeLevel reorganize) throws CometException
      Deprecated.
      Apply a grid to a spread.Working with Product Templates for more information.
      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:
      CometException - the comet exception
    • spreadBuild

      int spreadBuild(String sessionID, String documentID, int spreadIndex, jakarta.activation.DataHandler itemsXML, String options) throws CometException
      Deprecated.
      Build a list of products starting at spreadIndex. Working with Product Templates for more information.
      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:
      CometException - the comet exception
    • spreadBuildAt

      int spreadBuildAt(String sessionID, String documentID, int spreadIndex, jakarta.activation.DataHandler itemsXML, double absLeft, double absTop, String options) throws CometException
      Deprecated.
      Build a list of products starting at spreadIndex, position absLeft / absTop. Working with Product Templates for more information.
      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:
      CometException - the comet exception
    • spreadGeneratePDF

      jakarta.activation.DataHandler spreadGeneratePDF(String sessionID, String documentID, String spreadList, String pdfProfileName, String options) throws CometException
      Deprecated.
      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 data handler
      Throws:
      CometException - the comet exception
    • spreadGetCometGroups

      jakarta.activation.DataHandler spreadGetCometGroups(String sessionID, String documentID, int spreadIndex, String options) throws CometException
      Deprecated.
      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:
      CometException - the comet exception
    • spreadGetElements

      jakarta.activation.DataHandler spreadGetElements(String sessionID, String documentID, int spreadIndex, String options) throws CometException
      Deprecated.
      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:
      CometException - the comet exception
    • spreadGetNotes

      jakarta.activation.DataHandler spreadGetNotes(String sessionID, String documentID, int spreadIndex, String options) throws CometException
      Deprecated.
      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:
      CometException - the comet exception
    • spreadGetPages

      int[] spreadGetPages(String sessionID, String documentID, int spreadIndex) throws CometException
      Deprecated.
      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:
      CometException - the comet exception
    • spreadGetPlaceholders

      jakarta.activation.DataHandler spreadGetPlaceholders(String sessionID, String documentID, int spreadIndex, boolean evaluateSyncState, String options) throws CometException
      Deprecated.
      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:
      CometException - the comet exception
    • spreadGetPreview

      jakarta.activation.DataHandler spreadGetPreview(String sessionID, String documentID, int spreadIndex, double resolution, String options) throws CometException
      Deprecated.
      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:
      CometException - the comet exception
    • spreadGetPreviewOfClipping

      jakarta.activation.DataHandler spreadGetPreviewOfClipping(String sessionID, String documentID, int spreadIndex, double resolution, double absLeft, double absTop, double width, double height, String options) throws CometException
      Deprecated.
      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:
      CometException - the comet exception
    • spreadGetTemplateID

      int spreadGetTemplateID(String sessionID, String documentID, int spreadIndex) throws CometException
      Deprecated.
      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:
      CometException - the comet exception
    • spreadImportGroup

      int spreadImportGroup(String sessionID, String documentID, String documentIDFrom, int spreadIndex, int groupID, double absLeft, double absTop) throws CometException
      Deprecated.
      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:
      CometException - the comet exception
    • spreadLoadPlaceholders

      void spreadLoadPlaceholders(String sessionID, String documentID, int spreadIndex, int[] placeholderIDs, CometWhiteboard.RecordID recordID) throws CometException
      Deprecated.
      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 - the placeholder i ds
      recordID - ID of the record
      Throws:
      CometException - the comet exception
    • spreadSyncPlaceholders

      void spreadSyncPlaceholders(String sessionID, String documentID, int spreadIndex, int[] placeholderIDs, CometWhiteboard.RecordID recordID) throws CometException
      Deprecated.
      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 - the placeholder i ds
      recordID - ID of the record
      Throws:
      CometException - the comet exception
    • spreadMoveCometGroupTo

      boolean spreadMoveCometGroupTo(String sessionID, String documentID, int spreadIndex, int groupID, double absLeft, double absTop, String options) throws CometException
      Deprecated.
      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:
      CometException - the comet exception
    • spreadMoveElementTo

      boolean spreadMoveElementTo(String sessionID, String documentID, int spreadIndex, int elementID, double absLeft, double absTop) throws CometException
      Deprecated.
      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:
      CometException - the comet exception
    • spreadPlaceTemplate

      int spreadPlaceTemplate(String sessionID, String documentID, int spreadIndex, CometWhiteboard.RecordID recordID, int templateID, double absLeft, double absTop, CometWhiteboard.ReorganizeLevel reorganize, String options) throws CometException
      Deprecated.
      Place a template at position absLeft / absTop on a spread. Working with Product Templates for more information.
      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:
      CometException - the comet exception
    • spreadSetNotes

      boolean spreadSetNotes(String sessionID, String documentID, int spreadIndex, jakarta.activation.DataHandler notes) throws CometException
      Deprecated.
      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:
      CometException - the comet exception
    • spreadSetPlaceholderImage

      void spreadSetPlaceholderImage(String sessionID, String documentID, int spreadIndex, int placeholderID, CometWhiteboard.RecordID recordID, jakarta.activation.DataHandler data, boolean executeSaveMethod) throws CometException
      Deprecated.
      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 - the placeholder id
      recordID - ID of the record
      data - binary data
      executeSaveMethod - save new value to databse or not
      Throws:
      CometException - the comet exception
    • spreadSetPlaceholderImagePath

      void spreadSetPlaceholderImagePath(String sessionID, String documentID, int spreadIndex, int placeholderID, CometWhiteboard.RecordID recordID, String path, boolean executeSaveMethod) throws CometException
      Deprecated.
      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 - the placeholder id
      recordID - ID of the record
      path - path of the image on the server
      executeSaveMethod - the execute save method
      Throws:
      CometException - the comet exception
    • spreadSetPlaceholderValue

      void spreadSetPlaceholderValue(String sessionID, String documentID, int spreadIndex, int placeholderID, CometWhiteboard.RecordID recordID, String value, boolean executeSaveMethod) throws CometException
      Deprecated.
      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 - the placeholder id
      recordID - ID of the record
      value - the value to be applied new value
      executeSaveMethod - write the new value to database or not
      Throws:
      CometException - the comet exception
    • spreadSetTemplateID

      boolean spreadSetTemplateID(String sessionID, String documentID, int spreadIndex, int templateID, String options) throws CometException
      Deprecated.
      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
      options - the options
      Returns:
      true on success, false otherwise
      Throws:
      CometException - the comet exception
    • spreadUpdatePlaceholders

      boolean spreadUpdatePlaceholders(String sessionID, String documentID, int spreadIndex) throws CometException
      Deprecated.
      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:
      CometException - the comet exception
    • reloadConfiguration

      boolean reloadConfiguration(String adminSessionID, String dataset) throws CometException
      Deprecated.
      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 - the admin session id
      dataset - the dataset
      Returns:
      success or not
      Throws:
      CometException - the comet exception
    • spreadExportElements

      jakarta.activation.DataHandler spreadExportElements(String sessionID, String documentID, int spreadIndex, int[] elementIDs, String options) throws CometException
      Deprecated.
      Export a list of elements (frames) to an InDesign document
      Parameters:
      sessionID - session ID obtained from connectionLogin
      documentID - the document ID
      spreadIndex - the spread index
      elementIDs - the element i ds
      options - the options
      Returns:
      InDesign document
      Throws:
      CometException - the comet exception
    • spreadExportCometGroups

      jakarta.activation.DataHandler spreadExportCometGroups(String sessionID, String documentID, int spreadIndex, int[] groupIDs, String options) throws CometException
      Deprecated.
      Export a list of comet groups to an InDesign document
      Parameters:
      sessionID - session ID obtained from connectionLogin
      documentID - the document ID
      spreadIndex - the spread index
      groupIDs - the group i ds
      options - the options
      Returns:
      InDesign document
      Throws:
      CometException - the comet exception
    • spreadPlaceDocument

      int spreadPlaceDocument(String sessionID, String documentID, int spreadIndex, jakarta.activation.DataHandler data, double absLeft, double absTop, boolean createCometGroup, String options) throws CometException
      Deprecated.
      Import and place an InDesign document
      Parameters:
      sessionID - session ID obtained from connectionLogin
      documentID - the document ID
      spreadIndex - the spread index
      data - the data
      absLeft - the abs left
      absTop - the abs top
      createCometGroup - the create comet group
      options - the options
      Returns:
      id of the comet group created
      Throws:
      CometException - the comet exception
    • spreadGetElementsPreview

      jakarta.activation.DataHandler spreadGetElementsPreview(String sessionID, String documentID, int spreadIndex, int[] elementIDs, double resolution, String options) throws CometException
      Deprecated.
      Get a preview of several elements
      Parameters:
      sessionID - session ID obtained from connectionLogin
      documentID - the document ID
      spreadIndex - the spread index
      elementIDs - the element i ds
      resolution - the resolution
      options - the options
      Returns:
      image data
      Throws:
      CometException - the comet exception
    • spreadGetCometGroupsPreview

      jakarta.activation.DataHandler spreadGetCometGroupsPreview(String sessionID, String documentID, int spreadIndex, int[] groupIDs, double resolution, String options) throws CometException
      Deprecated.
      Get a preview of several CometGroups
      Parameters:
      sessionID - session ID obtained from connectionLogin
      documentID - the document ID
      spreadIndex - the spread index
      groupIDs - the group i ds
      resolution - the resolution
      options - the options
      Returns:
      image data
      Throws:
      CometException - the comet exception
    • documentGetItems

      jakarta.activation.DataHandler documentGetItems(String sessionID, String documentID, String options) throws CometException
      Deprecated.
      Get items (i.e. products) currently placed in this document.
      Parameters:
      sessionID - session ID obtained from connectionLogin
      documentID - the document ID
      options - the options
      Returns:
      XML document
      Throws:
      CometException - the comet exception
    • documentSetItems

      boolean documentSetItems(String sessionID, String documentID, jakarta.activation.DataHandler data, String options) throws CometException
      Deprecated.
      Replace the items currently placed in this document
      Parameters:
      sessionID - session ID obtained from connectionLogin
      documentID - the document ID
      data - the data
      options - the options
      Returns:
      true on success, false otherwise
      Throws:
      CometException - the comet exception
    • spreadAddSpreads

      boolean spreadAddSpreads(String sessionID, String documentID, int behindSpread, int numberOfSpreads, String masterpageName, String options) throws CometException
      Deprecated.
      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:
      CometException - the comet exception
    • spreadDeleteSpreads

      boolean spreadDeleteSpreads(String sessionID, String documentID, int firstSpread, int numberOfSpreads, String options) throws CometException
      Deprecated.
      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:
      CometException - the comet exception
    • pageAddPages

      boolean pageAddPages(String sessionID, String documentID, int behindPage, int numberOfPages, String masterpageName, String options) throws CometException
      Deprecated.
      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:
      CometException - the comet exception
    • pageDeletePages

      boolean pageDeletePages(String sessionID, String documentID, int firstPage, int numberOfPages, String options) throws CometException
      Deprecated.
      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:
      CometException - the comet exception
    • createProductPreview

      jakarta.activation.DataHandler createProductPreview(String sessionID, String masterdocName, CometWhiteboard.RecordID recordID, int templateID, double resolution, String options) throws CometException
      Deprecated.
      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:
      CometException - the comet exception
    • createProductPDF

      jakarta.activation.DataHandler createProductPDF(String sessionID, String masterdocName, CometWhiteboard.RecordID recordID, int templateID, String pdfProfile, String options) throws CometException
      Deprecated.
      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 - the record id
      templateID - the template id
      pdfProfile - the UI name of a valid PDF profile. This profile must exists, an UnknownPDFProfileException will be thrown otherwise
      options - setup options.
      Returns:
      pdf data handler
      Throws:
      CometException - the comet exception
    • pageMovePages

      boolean pageMovePages(String sessionID, String documentID, int behindPage, int firstPage, int numPages, String options) throws CometException
      Deprecated.
      Move pages in a document
      Parameters:
      sessionID - session ID obtained from connectionLogin
      documentID - the document ID
      behindPage - the behind page
      firstPage - the first page
      numPages - the num pages
      options - the options
      Returns:
      true on success, false otherwise
      Throws:
      CometException - the comet exception
    • spreadMoveSpreads

      boolean spreadMoveSpreads(String sessionID, String documentID, int behindSpread, int firstSpread, int numSpreads, String options) throws CometException
      Deprecated.
      Move spreads in a document
      Parameters:
      sessionID - session ID obtained from connectionLogin
      documentID - the document ID
      behindSpread - the behind spread
      firstSpread - the first spread
      numSpreads - the num spreads
      options - the options
      Returns:
      true on success, false otherwise
      Throws:
      CometException - the comet exception
    • documentMatchItems

      jakarta.activation.DataHandler documentMatchItems(String sessionID, String documentID, jakarta.activation.DataHandler items, String options) throws CometException
      Deprecated.
      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 - the items
      options - the options
      Returns:
      diff XML
      Throws:
      CometException - the comet exception
    • getPdfProfiles

      List<String> getPdfProfiles(String sessionID, String documentID, String options) throws CometException
      Deprecated.
      Get the names of all available PDF profiles. This can be the profiles of a certain InDesignServer instance (if documentID is not null) or profiles available for all instances, this will be the intersection of the profiles installed on each individual InDesignServer instance.
      Parameters:
      sessionID - session ID obtained from connectionLogin
      documentID - the document ID
      options - the options
      Returns:
      list of available PDF profiles
      Throws:
      CometException - the comet exception
    • createPDF

      jakarta.activation.DataHandler createPDF(String sessionID, String masterdocName, jakarta.activation.DataHandler itemsXML, CometWhiteboard.Renderer renderer, String pdfProfile, String options) throws CometException
      Deprecated.
      Place products in a document (either blank or copied from a masterdocument) and return a PDF
      Parameters:
      sessionID - session ID obtained from connectionLogin
      masterdocName - the masterdoc name
      itemsXML - the items xml
      renderer - the renderer
      pdfProfile - the pdf profile
      options - the options
      Returns:
      PDF data handler
      Throws:
      CometException - the comet exception
    • copyMasterdocument

      String copyMasterdocument(String sessionID, String masterdocName, String newDocumentID) throws CometException
      Deprecated.
      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 - the masterdoc name
      newDocumentID - the new document id
      Returns:
      the (temporary) document ID of the copy, which can be used for further requests.
      Throws:
      CometException - the comet exception
    • elementSetVisible

      void elementSetVisible(String sessionID, String documentID, int[] elementIDs, boolean visibleState, String options) throws CometException
      Deprecated.
      Element set visible.
      Parameters:
      sessionID - the session id
      documentID - the document id
      elementIDs - the element i ds
      visibleState - the visible state
      options - the options
      Throws:
      CometException - the comet exception
    • documentGetPackage

      jakarta.activation.DataHandler documentGetPackage(String sessionID, String documentID, String options) throws CometException
      Deprecated.
      Document get package data handler.
      Parameters:
      sessionID - the session id
      documentID - the document id
      options - the options
      Returns:
      data handler
      Throws:
      CometException - the comet exception