Interface CometWhiteboard
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic classDeprecated.The type Document info.static enumDeprecated.The enum Document status.static enumDeprecated.The enum Document type.static classDeprecated.The type Record id.static enumDeprecated.The enum Renderer.static enumDeprecated.The enum Reorganize level.static classDeprecated.The type Session info. -
Method Summary
Modifier and TypeMethodDescriptionjakarta.activation.DataHandleradapterCreateDocument(String sessionID, String documentID, String options) Deprecated.Adapt and download a document.adapterCreateDocumentOnServer(String sessionID, String documentID, String options, String newDocumentID) Deprecated.Adapt a document and create an InDesign document on the Server.jakarta.activation.DataHandleradapterCreatePDF(String sessionID, String documentID, String options, String pdfProfile) Deprecated.Adapt a document to the size and specification given in options and generate a PDF.jakarta.activation.DataHandleradapterCreatePreview(String sessionID, String documentID, String options, double resolution) Deprecated.Adapt a document to the size and specification given in options and generate a preview.booleancometGroupAddToGroup(String sessionID, String documentID, int groupID, int[] elementIDs, boolean asSubGroup, String options) Deprecated.Add elements to a comet group.voidcometGroupDeleteGroup(String sessionID, String documentID, int groupID, CometWhiteboard.ReorganizeLevel reorganize, String options) Deprecated.Delete a comet group.jakarta.activation.DataHandlercometGroupGetElements(String sessionID, String documentID, int groupID, String options) Deprecated.Get all elements of a comet group.jakarta.activation.DataHandlercometGroupGetNotes(String sessionID, String documentID, int groupID, String options) Deprecated.Get all notes of a comet group.jakarta.activation.DataHandlercometGroupGetPlaceholders(String sessionID, String documentID, int groupID, boolean evaluateSyncState, String options) Deprecated.Get the placeholders of a comet group.jakarta.activation.DataHandler[]cometGroupGetPreviews(String sessionID, String documentID, int groupID, double resolution, String options) Deprecated.Get a comet group previews.intcometGroupInsertAfter(String sessionID, String documentID, int groupID, CometWhiteboard.RecordID recordID, int templateID, CometWhiteboard.ReorganizeLevel reorganize, String options) Deprecated.Insert a new comet group (i.e. link a product with a template) after an existing group.intcometGroupInsertBefore(String sessionID, String documentID, int groupID, CometWhiteboard.RecordID recordID, int templateID, CometWhiteboard.ReorganizeLevel reorganize, String options) Deprecated.Insert a new comet group (i.e. link a product with a template) before an existing group.intcometGroupJoinGroups(String sessionID, String documentID, int[] groupIDs, boolean asSubGroups, String options) Deprecated.Join comet groups.voidcometGroupLoadPlaceholders(String sessionID, String documentID, int groupID, int[] placeholderIDs, CometWhiteboard.RecordID recordID) Deprecated.Load all placeholders linked with Record recordID found on group groupID.booleancometGroupRemoveFromGroup(String sessionID, String documentID, int groupID, int[] elementIDs, String options) Deprecated.Remove elements from a comet group.intcometGroupReplaceGroup(String sessionID, String documentID, int groupID, CometWhiteboard.RecordID recordID, int templateID, CometWhiteboard.ReorganizeLevel reorganize, String options) Deprecated.Replace an existing comet group by a new one.booleancometGroupResolveGroup(String sessionID, String documentID, int groupID, boolean resolveSubGroups, String options) Deprecated.Resolve a comet group.booleancometGroupSetNotes(String sessionID, String documentID, int groupID, jakarta.activation.DataHandler notes) Deprecated.Set (i.e. replace the formerly) notes of a comet group.voidcometGroupSetPlaceholderImage(String sessionID, String documentID, int groupID, int placeholderID, CometWhiteboard.RecordID recordID, jakarta.activation.DataHandler data, boolean executeSaveMethod) Deprecated.Apply image to all placeholders linked with Record recordID found on group groupID overriding the default load method.voidcometGroupSetPlaceholderImagePath(String sessionID, String documentID, int groupID, int placeholderID, CometWhiteboard.RecordID recordID, String path, boolean executeSaveMethod) Deprecated.Apply image path to all placeholders linked with Record recordID found on group groupID overriding the default load method.voidcometGroupSetPlaceholderValue(String sessionID, String documentID, int groupID, int placeholderID, CometWhiteboard.RecordID recordID, String value, boolean executeSaveMethod) Deprecated.Apply value to all placeholders linked with Record recordID found on group groupID overriding the default load method.voidcometGroupSyncPlaceholders(String sessionID, String documentID, int groupID, int[] placeholderIDs, CometWhiteboard.RecordID recordID) Deprecated.Sync all placeholders linked with Record recordID found on group groupID.booleancometGroupUpdatePlaceholders(String sessionID, String documentID, int groupID) Deprecated.Update the placeholder definitions of all placeholders found in a comet group.connectionGetNewChildSession(String sessionID) Deprecated.Get Child Session of Current Session.connectionLogin(String user, String password, String datasetName) Deprecated.Login to comet server.voidconnectionLogout(String sessionID) Deprecated.Logout from comet server.voidconnectionSetRenderer(String sessionID, CometWhiteboard.Renderer renderer) Deprecated.Sets the renderer for this sessionbooleanconnectionSetUserProperty(String sessionID, String key, String value) Deprecated.Set a user property.copyMasterdocument(String sessionID, String masterdocName, String newDocumentID) Deprecated.Copy a masterdocument.jakarta.activation.DataHandlercreatePDF(String sessionID, String masterdocName, jakarta.activation.DataHandler itemsXML, CometWhiteboard.Renderer renderer, String pdfProfile, String options) Deprecated.Place products in a document (either blank or copied from a masterdocument) and return a PDFjakarta.activation.DataHandlercreateProductPDF(String sessionID, String masterdocName, CometWhiteboard.RecordID recordID, int templateID, String pdfProfile, String options) Deprecated.Link a product with a template and create a PDFjakarta.activation.DataHandlercreateProductPreview(String sessionID, String masterdocName, CometWhiteboard.RecordID recordID, int templateID, double resolution, String options) Deprecated.Link a template with a product and create a preview.booleandocumentClose(String sessionID, String documentID) Deprecated.Close a document.booleandocumentCloseImmediately(String sessionID, String documentID) Deprecated.Close a document immediately if the server policies allow to do so.documentCreate(String sessionID, String newDocumentID, String setupParams) Deprecated.Create a document.documentCreateAs(String sessionID, String newDocumentID, String filename, String setupParams) Deprecated.Create a document and preserve the filename.booleandocumentDelete(String sessionID, String documentID) Deprecated.Delete a document.jakarta.activation.DataHandlerdocumentDownload(String sessionID, String documentID) Deprecated.Download a documentdocumentDuplicate(String sessionID, String documentID, String newDocumentID) Deprecated.Duplicate a documentdocumentExecCScript(String sessionID, String documentID, int scriptID, String arguments) Deprecated.Execute a predefined cscript on a document.booleandocumentExists(String sessionID, String documentID) Deprecated.Check whether a document exists more information.booleandocumentForceClose(String sessionID, String documentID) Deprecated.Close a document regardless of the configuration and current state in other sessions.jakarta.activation.DataHandlerdocumentGeneratePDF(String sessionID, String documentID, String pdfProfileName, String options) Deprecated.Create a pdf of all pages / spreads of a document.jakarta.activation.DataHandlerdocumentGetCometGroups(String sessionID, String documentID, String options) Deprecated.Get all comet groups of a document.jakarta.activation.DataHandlerdocumentGetElements(String sessionID, String documentID, String options) Deprecated.Get all elements of a document.documentGetInfo(String sessionID, String documentID) Deprecated.Get information about a document, such as type, status and filename.jakarta.activation.DataHandlerdocumentGetItems(String sessionID, String documentID, String options) Deprecated.Get items (i.e.documentGetLayers(String sessionID, String documentID) Deprecated.Get all document layersdocumentGetList(String sessionID) Deprecated.Get a list of all documents available in the current session.jakarta.activation.DataHandlerdocumentGetNotes(String sessionID, String documentID, String options) Deprecated.Get all notes of a document.jakarta.activation.DataHandlerdocumentGetPackage(String sessionID, String documentID, String options) Deprecated.Document get package data handler.intdocumentGetPageCount(String sessionID, String documentID) Deprecated.Get the number of pages of a documentjakarta.activation.DataHandlerdocumentGetPlaceholders(String sessionID, String documentID, boolean evaluateSyncState, String options) Deprecated.Get all placeholders of a document.documentGetSessionDocs(String sessionID) Deprecated.Get all documents opened in the current sessionintdocumentGetSpreadCount(String sessionID, String documentID) Deprecated.Get the number of spreads of a documentjakarta.activation.DataHandlerdocumentGetSpreads(String sessionID, String documentID, String options) Deprecated.Get spread information a document.documentGetVisibleLayers(String sessionID, String documentID) Deprecated.Get all document layers visible in the current session.booleandocumentHideAllLayers(String sessionID, String documentID) Deprecated.Hide all layers for the current session / document.booleandocumentHideLayers(String sessionID, String documentID, List<String> layers) Deprecated.Hide the given layers for the current session / document.booleandocumentIsRegistered(String sessionID, String documentID) Deprecated.Check if a document is registered on ComeServer.voiddocumentLoadPlaceholders(String sessionID, String documentID, int[] placeholderIDs, CometWhiteboard.RecordID recordID) Deprecated.Load all placeholders linked with Record recordID found in the document.jakarta.activation.DataHandlerdocumentMatchItems(String sessionID, String documentID, jakarta.activation.DataHandler items, String options) Deprecated.Compare a list of items (i.e.documentMoveFile(String sessionID, String documentID, String newDocumentID) Deprecated.This will turn a document into something else - provided the newDocumentID has been registered or is known in a publication system.documentMoveTmpFile(String sessionID, String tmpDocumentID, String newDocumentID) Deprecated.This will move a tmp file into something else.booleandocumentOpen(String sessionID, String documentID) Deprecated.Open a document on the server.documentRegister(String sessionID, String newDocumentID, String path) Deprecated.This will register an arbitrary file on comet server.booleandocumentReorganize(String sessionID, String documentID, int pageIndex, CometWhiteboard.ReorganizeLevel reorganize) Deprecated.Reorganize a document starting at page pageIndex.Working with Product Templates orbooleandocumentSave(String sessionID, String documentID) Deprecated.Save a document.booleandocumentSaveAndRegister(String sessionID, String documentID) Deprecated.Saves a document and registers in the publication database.documentSaveAs(String sessionID, String documentID, String newDocumentID) Deprecated.Just likedocumentDuplicateexcept that the new document will be opened right afterward the operation.booleandocumentSetActiveLayer(String sessionID, String documentID, String layerName) Deprecated.Set the active layer for the current session / document.booleandocumentSetItems(String sessionID, String documentID, jakarta.activation.DataHandler data, String options) Deprecated.Replace the items currently placed in this documentvoiddocumentSetNotes(String sessionID, String documentID, jakarta.activation.DataHandler notes) Deprecated.Set (i.e. replace the formerly) notes of a document.voiddocumentSetPlaceholderImage(String sessionID, String documentID, int placeholderID, CometWhiteboard.RecordID recordID, jakarta.activation.DataHandler data, boolean executeSaveMethod) Deprecated.Apply image to all placeholders linked with Record recordID found in the document overriding the default load method.voiddocumentSetPlaceholderImagePath(String sessionID, String documentID, int placeholderID, CometWhiteboard.RecordID recordID, String path, boolean executeSaveMethod) Deprecated.Apply image path to all placeholders linked with Record recordID found in the document overriding the default load method.voiddocumentSetPlaceholderValue(String sessionID, String documentID, int placeholderID, CometWhiteboard.RecordID recordID, String value, boolean executeSaveMethod) Deprecated.Apply value to all placeholders linked with Record recordID found in the document overriding the default load method.booleandocumentSetup(String sessionID, String documentID, String setupParams, boolean applyAdaption) Deprecated.Setup a document, i.e.: change page size, margins, bleed and slug with or without page adaption.booleandocumentShowAllLayers(String sessionID, String documentID) Deprecated.Show all layers for the current session / document.booleandocumentShowDefaultLayers(String sessionID, String documentID) Deprecated.Show the default layers within the current session.booleandocumentShowLayers(String sessionID, String documentID, List<String> layers) Deprecated.Show the given layers for the current session / document.voiddocumentSyncPlaceholders(String sessionID, String documentID, int[] placeholderIDs, CometWhiteboard.RecordID recordID) Deprecated.Sync all placeholders linked with Record recordID found in the document.documentTmpCopy(String sessionID, String documentID) Deprecated.Create a temporary copy of a document.booleandocumentUnregister(String sessionID, String documentID) Deprecated.Unregister a document.booleandocumentUpdatePlaceholders(String sessionID, String documentID) Deprecated.Update placeholder definitions in a document.documentUpload(String sessionID, String newDocumentID, jakarta.activation.DataHandler data) Deprecated.This will upload data to the server.documentUploadAs(String sessionID, String newDocumentID, jakarta.activation.DataHandler data, String filename) Deprecated.LikedocumentUpload, the filename is preserved for later downloads.booleanelementDelete(String sessionID, String documentID, int elementID) Deprecated.Delete an element.booleanelementDeleteParagraph(String sessionID, String documentID, int elementID, int paragraph) Deprecated.Delete a text paragraph.jakarta.activation.DataHandlerelementGetPlaceholders(String sessionID, String documentID, int elementID, boolean evaluateSyncState, String options) Deprecated.Get the placeholders of a page.jakarta.activation.DataHandlerelementGetPreview(String sessionID, String documentID, int elementID, double resolution, String options) Deprecated.Get the preview of an element.booleanelementInsertParagraphAfter(String sessionID, String documentID, int elementID, int paragraph, String value, String options) Deprecated.Insert a text paragraph after an existing paragraph.booleanelementInsertParagraphBefore(String sessionID, String documentID, int elementID, int paragraph, String value, String options) Deprecated.Insert a text paragraph before an existing paragraph.voidelementLoadPlaceholders(String sessionID, String documentID, int elementID, int[] placeholderIDs, CometWhiteboard.RecordID recordID) Deprecated.Load all placeholders linked with Record recordID found in an element .booleanelementMoveBy(String sessionID, String documentID, int elementID, double offsetX, double offsetY) Deprecated.Move an element by offsetX / offsetY dpi within a spreadbooleanelementSetCellValue(String sessionID, String documentID, int tableID, int column, int row, String value, String options) Deprecated.Set the value of a table cell.booleanelementSetImage(String sessionID, String documentID, int elementID, jakarta.activation.DataHandler data) Deprecated.Set an element image.booleanelementSetImagePath(String sessionID, String documentID, int elementID, String path) Deprecated.Set an elements image path.booleanelementSetValue(String sessionID, String documentID, int elementID, int paragraph, String value, String options) Deprecated.Set an element value.voidelementSetVisible(String sessionID, String documentID, int[] elementIDs, boolean visibleState, String options) Deprecated.Element set visible.voidelementSyncPlaceholders(String sessionID, String documentID, int elementID, int[] placeholderIDs, CometWhiteboard.RecordID recordID) Deprecated.Sync all placeholders linked with Record recordID found in an element.booleanelementTransform(String sessionID, String documentID, int elementID, String options) Deprecated.Transform an element.booleanelementUpdatePlaceholders(String sessionID, String documentID, int elementID) Deprecated.Update the placeholder definitions of all placeholders found in an element.execTemplate(String sessionID, String masterdocName, CometWhiteboard.RecordID recordID, int templateID, String setupOptions) Deprecated.Link a template with a product and save it as a new document.getPdfProfiles(String sessionID, String documentID, String options) Deprecated.Get the names of all available PDF profiles.booleanpageAddPages(String sessionID, String documentID, int behindPage, int numberOfPages, String masterpageName, String options) Deprecated.Add pages to a document.booleanpageApplyGrid(String sessionID, String documentID, int pageIndex, int gridID, CometWhiteboard.ReorganizeLevel reorganize) Deprecated.Apply a grid to a page.Working with Product Templates for more information.intpageBuild(String sessionID, String documentID, int pageIndex, jakarta.activation.DataHandler itemsXML, String options) Deprecated.Build a list of products starting at pageIndex.intpageBuildAt(String sessionID, String documentID, int pageIndex, jakarta.activation.DataHandler itemsXML, double absLeft, double absTop, String options) Deprecated.Build a list of products starting at pageIndex, position absLeft / absTop.booleanpageDeletePages(String sessionID, String documentID, int firstPage, int numberOfPages, String options) Deprecated.Delete pages in a document.jakarta.activation.DataHandlerpageGeneratePDF(String sessionID, String documentID, String pageList, String pdfProfileName, String options) Deprecated.Generate a PDF of a single, a list of or all pages of a document.jakarta.activation.DataHandlerpageGetCometGroups(String sessionID, String documentID, int pageIndex, String options) Deprecated.Get all comet groups of a page.jakarta.activation.DataHandlerpageGetElements(String sessionID, String documentID, int pageIndex, String options) Deprecated.Get all elements of a page.jakarta.activation.DataHandlerpageGetNotes(String sessionID, String documentID, int pageIndex, String options) Deprecated.Get all notes of a page.jakarta.activation.DataHandlerpageGetPlaceholders(String sessionID, String documentID, int pageIndex, boolean evaluateSyncState, String options) Deprecated.Get the placeholders of a page.jakarta.activation.DataHandlerpageGetPreview(String sessionID, String documentID, int pageIndex, double resolution, String options) Deprecated.Get a preview of a page.jakarta.activation.DataHandlerpageGetPreviewOfClipping(String sessionID, String documentID, int pageIndex, double resolution, double absLeft, double absTop, double width, double height, String options) Deprecated.Get the preview of a certain area within a page.intpageGetTemplateID(String sessionID, String documentID, int pageIndex) Deprecated.Get the ID of the pagetemplate applied to a page.intpageImportGroup(String sessionID, String documentID, String documentIDFrom, int pageIndex, int groupID, double absLeft, double absTop) Deprecated.Import a comet group from a document into another document, page, position absLeft / absTop.voidpageLoadPlaceholders(String sessionID, String documentID, int pageIndex, int[] placeholderIDs, CometWhiteboard.RecordID recordID) Deprecated.Load all placeholders linked with Record recordID found on page pageIndex.booleanpageMoveCometGroupTo(String sessionID, String documentID, int pageIndex, int groupID, double absLeft, double absTop, String options) Deprecated.Move a comet group to position absLeft / absTop on a page.booleanpageMoveElementTo(String sessionID, String documentID, int pageIndex, int elementID, double absLeft, double absTop) Deprecated.Move an element to position absLeft / absTop on a page.booleanpageMovePages(String sessionID, String documentID, int behindPage, int firstPage, int numPages, String options) Deprecated.Move pages in a documentintpagePlaceTemplate(String sessionID, String documentID, int pageIndex, CometWhiteboard.RecordID recordID, int templateID, double absLeft, double absTop, CometWhiteboard.ReorganizeLevel reorganize, String options) Deprecated.Place a template at position absLeft / absTop on a page.booleanpageSetNotes(String sessionID, String documentID, int pageIndex, jakarta.activation.DataHandler notes) Deprecated.Set (i.e. replace the formerly) notes of a page.voidpageSetPlaceholderImage(String sessionID, String documentID, int pageIndex, int placeholderID, CometWhiteboard.RecordID recordID, jakarta.activation.DataHandler data, boolean executeSaveMethod) Deprecated.Apply image to all placeholders linked with Record recordID found on page pageIndex overriding the default load method.voidpageSetPlaceholderImagePath(String sessionID, String documentID, int pageIndex, int placeholderID, CometWhiteboard.RecordID recordID, String path, boolean executeSaveMethod) Deprecated.Apply image path to all placeholders linked with Record recordID found on page pageIndex overriding the default load method.voidpageSetPlaceholderValue(String sessionID, String documentID, int pageIndex, int placeholderID, CometWhiteboard.RecordID recordID, String value, boolean executeSaveMethod) Deprecated.Apply value to all placeholders linked with Record recordID found on page pageIndex overriding the default load method.booleanpageSetTemplateID(String sessionID, String documentID, int pageIndex, int templateID, String options) Deprecated.Apply a pagetemplate to a page.voidpageSyncPlaceholders(String sessionID, String documentID, int pageIndex, int[] placeholderIDs, CometWhiteboard.RecordID recordID) Deprecated.Sync all placeholders linked with Record recordID found on page pageIndex.booleanpageUpdatePlaceholders(String sessionID, String documentID, int pageIndex) Deprecated.Update the placeholder definitions of all placeholders found on a page.booleanreloadConfiguration(String adminSessionID, String dataset) Deprecated.Reload configuration.booleanspreadAddSpreads(String sessionID, String documentID, int behindSpread, int numberOfSpreads, String masterpageName, String options) Deprecated.Add spreads to an document.booleanspreadApplyGrid(String sessionID, String documentID, int spreadIndex, int gridID, CometWhiteboard.ReorganizeLevel reorganize) Deprecated.Apply a grid to a spread.Working with Product Templates for more information.intspreadBuild(String sessionID, String documentID, int spreadIndex, jakarta.activation.DataHandler itemsXML, String options) Deprecated.Build a list of products starting at spreadIndex.intspreadBuildAt(String sessionID, String documentID, int spreadIndex, jakarta.activation.DataHandler itemsXML, double absLeft, double absTop, String options) Deprecated.Build a list of products starting at spreadIndex, position absLeft / absTop.booleanspreadDeleteSpreads(String sessionID, String documentID, int firstSpread, int numberOfSpreads, String options) Deprecated.Delete spreads in a document.jakarta.activation.DataHandlerspreadExportCometGroups(String sessionID, String documentID, int spreadIndex, int[] groupIDs, String options) Deprecated.Export a list of comet groups to an InDesign documentjakarta.activation.DataHandlerspreadExportElements(String sessionID, String documentID, int spreadIndex, int[] elementIDs, String options) Deprecated.Export a list of elements (frames) to an InDesign documentjakarta.activation.DataHandlerspreadGeneratePDF(String sessionID, String documentID, String spreadList, String pdfProfileName, String options) Deprecated.Generate a PDF of a single, a list of or all spreads of a document.jakarta.activation.DataHandlerspreadGetCometGroups(String sessionID, String documentID, int spreadIndex, String options) Deprecated.Get all comet groups of a spread.jakarta.activation.DataHandlerspreadGetCometGroupsPreview(String sessionID, String documentID, int spreadIndex, int[] groupIDs, double resolution, String options) Deprecated.Get a preview of several CometGroupsjakarta.activation.DataHandlerspreadGetElements(String sessionID, String documentID, int spreadIndex, String options) Deprecated.Get all elements of a spread.jakarta.activation.DataHandlerspreadGetElementsPreview(String sessionID, String documentID, int spreadIndex, int[] elementIDs, double resolution, String options) Deprecated.Get a preview of several elementsjakarta.activation.DataHandlerspreadGetNotes(String sessionID, String documentID, int spreadIndex, String options) Deprecated.Get all notes of a spread.int[]spreadGetPages(String sessionID, String documentID, int spreadIndex) Deprecated.Get the indexes of all pages in a spread.jakarta.activation.DataHandlerspreadGetPlaceholders(String sessionID, String documentID, int spreadIndex, boolean evaluateSyncState, String options) Deprecated.Get the placeholders of a spread.jakarta.activation.DataHandlerspreadGetPreview(String sessionID, String documentID, int spreadIndex, double resolution, String options) Deprecated.Get a preview of a spread.jakarta.activation.DataHandlerspreadGetPreviewOfClipping(String sessionID, String documentID, int spreadIndex, double resolution, double absLeft, double absTop, double width, double height, String options) Deprecated.Get a preview of a certain area within a spread.intspreadGetTemplateID(String sessionID, String documentID, int spreadIndex) Deprecated.Get the ID of the pagetemplate applied to a spread.intspreadImportGroup(String sessionID, String documentID, String documentIDFrom, int spreadIndex, int groupID, double absLeft, double absTop) Deprecated.Import a comet group from a document into another document, spread, position absLeft / absTop.voidspreadLoadPlaceholders(String sessionID, String documentID, int spreadIndex, int[] placeholderIDs, CometWhiteboard.RecordID recordID) Deprecated.Load all placeholders linked with Record recordID found on spread spreadIndex.booleanspreadMoveCometGroupTo(String sessionID, String documentID, int spreadIndex, int groupID, double absLeft, double absTop, String options) Deprecated.Move a comet group to a certain position within a spread.booleanspreadMoveElementTo(String sessionID, String documentID, int spreadIndex, int elementID, double absLeft, double absTop) Deprecated.Move an element to position absLeft / absTop on a spread.booleanspreadMoveSpreads(String sessionID, String documentID, int behindSpread, int firstSpread, int numSpreads, String options) Deprecated.Move spreads in a documentintspreadPlaceDocument(String sessionID, String documentID, int spreadIndex, jakarta.activation.DataHandler data, double absLeft, double absTop, boolean createCometGroup, String options) Deprecated.Import and place an InDesign documentintspreadPlaceTemplate(String sessionID, String documentID, int spreadIndex, CometWhiteboard.RecordID recordID, int templateID, double absLeft, double absTop, CometWhiteboard.ReorganizeLevel reorganize, String options) Deprecated.Place a template at position absLeft / absTop on a spread.booleanspreadSetNotes(String sessionID, String documentID, int spreadIndex, jakarta.activation.DataHandler notes) Deprecated.Set (i.e. replace the formerly) notes of a spread.voidspreadSetPlaceholderImage(String sessionID, String documentID, int spreadIndex, int placeholderID, CometWhiteboard.RecordID recordID, jakarta.activation.DataHandler data, boolean executeSaveMethod) Deprecated.Apply image to all placeholders linked with Record recordID found on spread spreadIndex overriding the default load method.voidspreadSetPlaceholderImagePath(String sessionID, String documentID, int spreadIndex, int placeholderID, CometWhiteboard.RecordID recordID, String path, boolean executeSaveMethod) Deprecated.Apply image path to all placeholders linked with Record recordID found on spread spreadIndex overriding the default load method.voidspreadSetPlaceholderValue(String sessionID, String documentID, int spreadIndex, int placeholderID, CometWhiteboard.RecordID recordID, String value, boolean executeSaveMethod) Deprecated.Apply value to all placeholders linked with Record recordID found on spread spreadIndex overriding the default load method.booleanspreadSetTemplateID(String sessionID, String documentID, int spreadIndex, int templateID, String options) Deprecated.Apply a pagetemplate to a spread.voidspreadSyncPlaceholders(String sessionID, String documentID, int spreadIndex, int[] placeholderIDs, CometWhiteboard.RecordID recordID) Deprecated.Sync all placeholders linked with Record recordID found on spread spreadIndex.booleanspreadUpdatePlaceholders(String sessionID, String documentID, int spreadIndex) Deprecated.Update the placeholder definitions of all placeholders found on a spread.
-
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 connectionLogindocumentID- the document IDoptions- 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 connectionLogindocumentID- the document IDoptions- command optionsnewDocumentID- 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 connectionLogindocumentID- the document IDoptions- command optionspdfProfile- 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 connectionLogindocumentID- the document IDoptions- command optionsresolution- 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 connectionLogindocumentID- the document IDgroupID- ID of the comet groupreorganize- 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 connectionLogindocumentID- the document IDgroupID- ID of the comet groupoptions- 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 connectionLogindocumentID- the document IDgroupID- ID of the comet groupoptions- 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 connectionLogindocumentID- the document IDgroupID- ID of the comet groupevaluateSyncState- evaluate sync state using the sync script assigned to the placeholderoptions- 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 connectionLogindocumentID- the document IDgroupID- ID of the comet groupresolution- 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 connectionLogindocumentID- the document IDgroupID- ID of the comet grouprecordID- ID of the recordtemplateID- ID of the templatereorganize- 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 connectionLogindocumentID- the document IDgroupID- ID of the comet grouprecordID- ID of the recordtemplateID- ID of the templatereorganize- 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 connectionLogindocumentID- the document IDgroupID- ID of the comet grouprecordID- ID of the recordtemplateID- ID of the templatereorganize- 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 connectionLogindocumentID- the document IDgroupID- ID of the comet groupnotes- 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 connectionLogindocumentID- the document IDgroupID- 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 connectionLogindocumentID- the document IDgroupID- ID of the comet groupresolveSubGroups- recursively resolve subgroupsoptions- 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 connectionLogindocumentID- the document IDgroupID- ID of the comet groupelementIDs- the element i dsoptions- 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 connectionLogindocumentID- the document IDgroupID- ID of the comet groupelementIDs- elements to be added to the groupasSubGroup- add the new elements as a subgroupoptions- 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 connectionLogindocumentID- the document IDgroupIDs- IDs of comet groupsasSubGroups- preserve former group membership and create subgroupsoptions- 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 passworddatasetName- name of the dataset- Returns:
- a SessionInfo object on success
- Throws:
CometException- the comet exception
-
connectionLogout
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
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
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 connectionLoginkey- name of the propertyvalue- 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 idrenderer- the renderer- Throws:
CometException- the comet exception
-
documentClose
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 usedocumentForceCloseinsteadSupported with
- InDesignServer: yes
- PDF Renderer: yes
- Parameters:
sessionID- session ID obtained from connectionLogindocumentID- the document ID- Returns:
- true on success, false otherwise
- Throws:
CometException- the comet exception
-
documentCloseImmediately
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 usedocumentForceCloseinstead- Parameters:
sessionID- session ID obtained from connectionLogindocumentID- 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 connectionLoginnewDocumentID- 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 connectionLoginnewDocumentID- new document ID. If the ID is null or empty a unique ID will be generated and returned.filename- the filenamesetupParams- setup options.- Returns:
- the new document ID
- Throws:
CometException- the comet exception
-
documentDelete
Deprecated.Delete a document. Unless its a publication document the registration will be deleted as well.- Parameters:
sessionID- session ID obtained from connectionLogindocumentID- 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 connectionLogindocumentID- 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 connectionLogindocumentID- the document IDnewDocumentID- 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 connectionLogindocumentID- the document IDscriptID- ID of the scriptarguments- arguments passed to script (available as char * gArgument)- Returns:
- returned from script, value of the global variable gOutput
- Throws:
CometException- the comet exception
-
documentExists
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 connectionLogindocumentID- the document ID- Returns:
- true, if document exists, false otherwise
- Throws:
CometException- the comet exception
-
documentForceClose
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 connectionLogindocumentID- 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 connectionLogindocumentID- the document IDpdfProfileName- the pdf profile nameoptions- 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 connectionLogindocumentID- the document IDoptions- 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 connectionLogindocumentID- the document IDoptions- 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 connectionLogindocumentID- the document ID- Returns:
- a DocumentInfo object or null if the document is not registered
- Throws:
CometException- the comet exception
-
documentGetList
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
Deprecated.Get all document layers- Parameters:
sessionID- session ID obtained from connectionLogindocumentID- the document ID- Returns:
- List of all layer names
- Throws:
CometException- the comet exception
-
documentGetVisibleLayers
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 usedocumentShowDefaultLayers- Parameters:
sessionID- session ID obtained from connectionLogindocumentID- 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 connectionLogindocumentID- the document IDoptions- command options- Returns:
- a XML document as specified here.
- Throws:
CometException- the comet exception
-
documentGetPageCount
Deprecated.Get the number of pages of a document- Parameters:
sessionID- session ID obtained from connectionLogindocumentID- 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 connectionLogindocumentID- the document IDevaluateSyncState- the evaluate sync stateoptions- command options- Returns:
- a XML document as specified here.
- Throws:
CometException- the comet exception
-
documentGetSessionDocs
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
Deprecated.Get the number of spreads of a document- Parameters:
sessionID- session ID obtained from connectionLogindocumentID- 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 connectionLogindocumentID- the document IDoptions- command options- Returns:
- a XML document as specified here.
- Throws:
CometException- the comet exception
-
documentHideAllLayers
Deprecated.Hide all layers for the current session / document.- Parameters:
sessionID- session ID obtained from connectionLogindocumentID- 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 connectionLogindocumentID- the document IDlayers- list of layer names- Returns:
- true on success, false otherwise
- Throws:
CometException- the comet exception
-
documentIsRegistered
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 usedocumentExistsinstead.- Parameters:
sessionID- the session iddocumentID- 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 connectionLogindocumentID- the document IDplaceholderIDs- the placeholder i dsrecordID- 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 connectionLogindocumentID- the document IDplaceholderIDs- the placeholder i dsrecordID- 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 connectionLogindocumentID- the document IDnewDocumentID- 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 connectionLogintmpDocumentID- the tmp document idnewDocumentID- 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
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 connectionLogindocumentID- document ID- Returns:
- true on success, false otherwise
- Throws:
CometException- the comet exception
-
documentRegister
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 connectionLoginnewDocumentID- 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 connectionLogindocumentID- the document IDpageIndex- 0-based index of the first page to reorganizereorganize- reorganize level. Can be one of "NONE", "FULL", "PAGE", "SUBSEQUENT"- Returns:
- true on success, false otherwise
- Throws:
CometException- the comet exception
-
documentSave
Deprecated.Save a document.- Parameters:
sessionID- session ID obtained from connectionLogindocumentID- the document ID- Returns:
- true on success, false otherwise
- Throws:
CometException- the comet exception
-
documentSaveAndRegister
Deprecated.Saves a document and registers in the publication database.
- Parameters:
sessionID- session ID obtained from connectionLogindocumentID- 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 likedocumentDuplicateexcept that the new document will be opened right afterward the operation.- Parameters:
sessionID- session ID obtained from connectionLogindocumentID- the document IDnewDocumentID- 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 connectionLogindocumentID- the document IDlayerName- 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 connectionLogindocumentID- the document IDnotes- 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 connectionLogindocumentID- the document IDplaceholderID- the placeholder idrecordID- ID of the recorddata- binary dataexecuteSaveMethod- 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 connectionLogindocumentID- the document IDplaceholderID- the placeholder idrecordID- ID of the recordpath- path of the image on the serverexecuteSaveMethod- 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 connectionLogindocumentID- the document IDplaceholderID- the placeholder idrecordID- ID of the recordvalue- the value to be applied new valueexecuteSaveMethod- 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 connectionLogindocumentID- the document IDsetupParams- setup options.applyAdaption- the apply adaption- Returns:
- true on success, false otherwise
- Throws:
CometException- the comet exception
-
documentShowAllLayers
Deprecated.Show all layers for the current session / document.- Parameters:
sessionID- session ID obtained from connectionLogindocumentID- the document ID- Returns:
- true on success, false otherwise
- Throws:
CometException- the comet exception
-
documentShowDefaultLayers
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 connectionLogindocumentID- 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 connectionLogindocumentID- the document IDlayers- list of layer names- Returns:
- true on success, false otherwise
- Throws:
CometException- the comet exception
-
documentTmpCopy
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 connectionLogindocumentID- the document ID- Returns:
- the tmp document ID
- Throws:
CometException- the comet exception
-
documentUnregister
Deprecated.Unregister a document.- Parameters:
sessionID- the session iddocumentID- the document id- Returns:
- tru on success, false otherwise
- Throws:
CometException- the comet exception
-
documentUpdatePlaceholders
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 connectionLogindocumentID- 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 connectionLoginnewDocumentID- 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.LikedocumentUpload, the filename is preserved for later downloads.- Parameters:
sessionID- session ID obtained from connectionLoginnewDocumentID- new document ID. If the ID is null or empty a unique ID will be generated and returned.data- binary datafilename- the filename- Returns:
- the ID of the new document
- Throws:
CometException- the comet exception
-
elementDelete
Deprecated.Delete an element.- Parameters:
sessionID- session ID obtained from connectionLogindocumentID- the document IDelementID- 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 connectionLogindocumentID- the document IDelementID- ID of the elementparagraph- 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 connectionLogindocumentID- the document IDelementID- ID of the elementresolution- resolution in dpioptions- 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 connectionLogindocumentID- the document IDelementID- ID of the elementevaluateSyncState- evaluate sync state using the sync script assigned to the placeholderoptions- 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 connectionLogindocumentID- the document IDelementID- 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 connectionLogindocumentID- the document IDelementID- ID of the elementplaceholderIDs- the placeholder i dsrecordID- 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 connectionLogindocumentID- the document IDelementID- ID of the elementplaceholderIDs- the placeholder i dsrecordID- 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 connectionLogindocumentID- the document IDelementID- ID of the elementparagraph- ID / sequence of paragraphvalue- the value to be appliedoptions- 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 connectionLogindocumentID- the document IDelementID- ID of the elementparagraph- ID / sequence of paragraphvalue- the value to be appliedoptions- 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 connectionLogindocumentID- the document IDelementID- ID of the elementoffsetX- offset xoffsetY- 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 connectionLogindocumentID- the document IDtableID- ID of the tablecolumn- 0-based column indexrow- 0-based row indexvalue- the value to be appliedoptions- 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 connectionLogindocumentID- the document IDelementID- ID of the elementdata- 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 connectionLogindocumentID- the document IDelementID- ID of the elementpath- 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 connectionLogindocumentID- the document IDelementID- ID of the elementparagraph- ID / sequence of paragraphvalue- the value to be appliedoptions- 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 connectionLogindocumentID- the document IDelementID- ID of the elementoptions- 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 connectionLoginmasterdocName- name of a masterdocument, if empty or null a default blank document will be usedrecordID- ID of the recordtemplateID- ID of the templatesetupOptions- 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 connectionLogindocumentID- the document IDgroupID- ID of the groupplaceholderIDs- the placeholder i dsrecordID- 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 connectionLogindocumentID- the document IDgroupID- ID of the groupplaceholderIDs- the placeholder i dsrecordID- 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 connectionLogindocumentID- the document IDgroupID- ID of the groupplaceholderID- the placeholder idrecordID- ID of the recorddata- binary dataexecuteSaveMethod- 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 connectionLogindocumentID- the document IDgroupID- ID of the groupplaceholderID- the placeholder idrecordID- ID of the recordpath- path of the image on the serverexecuteSaveMethod- 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 connectionLogindocumentID- the document IDgroupID- ID of the groupplaceholderID- the placeholder idrecordID- ID of the recordvalue- the value to be applied new valueexecuteSaveMethod- 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 connectionLogindocumentID- the document IDpageIndex- 0-based index of the pagegridID- ID of the page gridreorganize- 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 connectionLogindocumentID- the document IDpageIndex- 0-based index of the pageitemsXML- xmloptions- 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 connectionLogindocumentID- the document IDpageIndex- 0-based index of the pageitemsXML- xmlabsLeft- absolute left positionabsTop- absolute top positionoptions- 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 connectionLogindocumentID- the document IDpageList- comma seperated list of spread indexes or empty to output all spreadspdfProfileName- name of the PDF profileoptions- 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 connectionLogindocumentID- the document IDpageIndex- 0-based index of the pageoptions- 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 connectionLogindocumentID- the document IDpageIndex- 0-based index of the pageoptions- 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 connectionLogindocumentID- the document IDpageIndex- 0-based index of the pageoptions- 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 connectionLogindocumentID- the document IDpageIndex- 0-based index of the pageevaluateSyncState- evaluate sync state using the sync script assigned to the placeholderoptions- 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 connectionLogindocumentID- the document IDpageIndex- 0-based index of the pageresolution- resolution in dpioptions- 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 connectionLogindocumentID- the document IDpageIndex- 0-based index of the pageresolution- resolution in dpiabsLeft- left origin of clipping rectabsTop- top origin of clipping rectwidth- width of clipping rectheight- height of clipping rectoptions- command options- Returns:
- jpeg (or other image format depending on options)
- Throws:
CometException- the comet exception
-
pageGetTemplateID
Deprecated.Get the ID of the pagetemplate applied to a page.- Parameters:
sessionID- session ID obtained from connectionLogindocumentID- the document IDpageIndex- 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 connectionLogindocumentID- the document IDdocumentIDFrom- source document IDpageIndex- 0-based index of the pagegroupID- ID of the comet groupabsLeft- absolute left positionabsTop- 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 connectionLogindocumentID- the document IDpageIndex- 0-based index of the pageplaceholderIDs- the placeholder i dsrecordID- 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 connectionLogindocumentID- the document IDpageIndex- 0-based index of the pageplaceholderIDs- the placeholder i dsrecordID- 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 connectionLogindocumentID- the document IDpageIndex- 0-based index of the pagegroupID- ID of the comet groupabsLeft- absolute left positionabsTop- absolute top positionoptions- 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 connectionLogindocumentID- the document IDpageIndex- 0-based index of the spreadelementID- ID of the elementabsLeft- absolute left positionabsTop- 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 connectionLogindocumentID- the document IDpageIndex- 0-based index of the pagerecordID- ID of the recordtemplateID- ID of the templateabsLeft- absolute left positionabsTop- absolute top positionreorganize- 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 connectionLogindocumentID- the document IDpageIndex- 0-based index of the spread 0-based index of spreadnotes- 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 connectionLogindocumentID- the document IDpageIndex- 0-based index of the pageplaceholderID- the placeholder idrecordID- ID of the recorddata- binary dataexecuteSaveMethod- 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 connectionLogindocumentID- the document IDpageIndex- 0-based index of the pageplaceholderID- the placeholder idrecordID- ID of the recordpath- path of the image on the serverexecuteSaveMethod- 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 connectionLogindocumentID- the document IDpageIndex- 0-based index of the pageplaceholderID- the placeholder idrecordID- ID of the recordvalue- the value to be applied new valueexecuteSaveMethod- 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 connectionLogindocumentID- the document IDpageIndex- 0-based index of the pagetemplateID- ID of the templateoptions- 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 connectionLogindocumentID- the document IDpageIndex- 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 connectionLogindocumentID- the document IDspreadIndex- 0-based index of the spreadgridID- ID of the page gridreorganize- 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 connectionLogindocumentID- the document IDspreadIndex- 0-based index of the spreaditemsXML- xmloptions- 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 connectionLogindocumentID- the document IDspreadIndex- 0-based index of the spreaditemsXML- xmlabsLeft- absolute left positionabsTop- absolute top positionoptions- 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 connectionLogindocumentID- the document IDspreadList- comma seperated list of spread indexes or empty to output all spreadspdfProfileName- name of the PDF profileoptions- 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 connectionLogindocumentID- the document IDspreadIndex- 0-based index of the spreadoptions- 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 connectionLogindocumentID- the document IDspreadIndex- 0-based index of the spreadoptions- 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 connectionLogindocumentID- the document IDspreadIndex- 0-based index of the spreadoptions- command options- Returns:
- a XML document as specified here.
- Throws:
CometException- the comet exception
-
spreadGetPages
Deprecated.Get the indexes of all pages in a spread.- Parameters:
sessionID- session ID obtained from connectionLogindocumentID- the document IDspreadIndex- 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 connectionLogindocumentID- the document IDspreadIndex- 0-based index of the spreadevaluateSyncState- evaluate sync state using the sync script assigned to the placeholderoptions- 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 connectionLogindocumentID- the document IDspreadIndex- 0-based index of the spreadresolution- resolution in dpioptions- 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 connectionLogindocumentID- the document IDspreadIndex- 0-based index of the spreadresolution- resolution in dpiabsLeft- left origin of clipping rectabsTop- top origin of clipping rectwidth- width of clipping rectheight- height of clipping rectoptions- command options- Returns:
- jpeg (or other image format depending on options)
- Throws:
CometException- the comet exception
-
spreadGetTemplateID
Deprecated.Get the ID of the pagetemplate applied to a spread.- Parameters:
sessionID- session ID obtained from connectionLogindocumentID- the document IDspreadIndex- 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 connectionLogindocumentID- the document IDdocumentIDFrom- source document IDspreadIndex- 0-based index of the spreadgroupID- ID of the comet groupabsLeft- absolute left positionabsTop- 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 connectionLogindocumentID- the document IDspreadIndex- 0-based index of the spreadplaceholderIDs- the placeholder i dsrecordID- 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 connectionLogindocumentID- the document IDspreadIndex- 0-based index of the spreadplaceholderIDs- the placeholder i dsrecordID- 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 connectionLogindocumentID- the document IDspreadIndex- 0-based index of the spreadgroupID- ID of the comet groupabsLeft- absolute left positionabsTop- absolute top positionoptions- 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 connectionLogindocumentID- the document IDspreadIndex- 0-based index of the spreadelementID- ID of the elementabsLeft- absolute left positionabsTop- 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 connectionLogindocumentID- the document IDspreadIndex- 0-based index of the spreadrecordID- ID of the recordtemplateID- ID of the templateabsLeft- absolute left positionabsTop- absolute top positionreorganize- 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 connectionLogindocumentID- the document IDspreadIndex- 0-based index of the spreadnotes- 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 connectionLogindocumentID- the document IDspreadIndex- 0-based index of the spreadplaceholderID- the placeholder idrecordID- ID of the recorddata- binary dataexecuteSaveMethod- 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 connectionLogindocumentID- the document IDspreadIndex- 0-based index of the spreadplaceholderID- the placeholder idrecordID- ID of the recordpath- path of the image on the serverexecuteSaveMethod- 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 connectionLogindocumentID- the document IDspreadIndex- 0-based index of the spreadplaceholderID- the placeholder idrecordID- ID of the recordvalue- the value to be applied new valueexecuteSaveMethod- 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 connectionLogindocumentID- the document IDspreadIndex- 0-based index of the spreadtemplateID- ID of the templateoptions- 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 connectionLogindocumentID- the document IDspreadIndex- 0-based index of the spread- Returns:
- true on success, false otherwise
- Throws:
CometException- the comet exception
-
reloadConfiguration
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 iddataset- 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 connectionLogindocumentID- the document IDspreadIndex- the spread indexelementIDs- the element i dsoptions- 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 connectionLogindocumentID- the document IDspreadIndex- the spread indexgroupIDs- the group i dsoptions- 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 connectionLogindocumentID- the document IDspreadIndex- the spread indexdata- the dataabsLeft- the abs leftabsTop- the abs topcreateCometGroup- the create comet groupoptions- 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 connectionLogindocumentID- the document IDspreadIndex- the spread indexelementIDs- the element i dsresolution- the resolutionoptions- 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 connectionLogindocumentID- the document IDspreadIndex- the spread indexgroupIDs- the group i dsresolution- the resolutionoptions- 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 connectionLogindocumentID- the document IDoptions- 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 connectionLogindocumentID- the document IDdata- the dataoptions- 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 connectionLogindocumentID- the document IDbehindSpread- insertion point, use -1 to insert spreads at front of documentnumberOfSpreads- number of spreads to insertmasterpageName- 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 connectionLogindocumentID- the document IDfirstSpread- first spread to deletenumberOfSpreads- number of spreads to deleteoptions- 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 connectionLogindocumentID- the document IDbehindPage- insertion point, use -1 to insert pages at front of documentnumberOfPages- how many pages to addmasterpageName- 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 connectionLogindocumentID- the document IDfirstPage- first page to deletenumberOfPages- number of pages to deleteoptions- 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 connectionLoginmasterdocName- name of a masterdocument, if empty or null a default blank document will be usedrecordID- ID of the recordtemplateID- ID of the templateresolution- resolution in pt / dpioptions- 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 connectionLoginmasterdocName- name of a masterdocument, if empty or null a default blank document will be usedrecordID- the record idtemplateID- the template idpdfProfile- the UI name of a valid PDF profile. This profile must exists, an UnknownPDFProfileException will be thrown otherwiseoptions- 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 connectionLogindocumentID- the document IDbehindPage- the behind pagefirstPage- the first pagenumPages- the num pagesoptions- 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 connectionLogindocumentID- the document IDbehindSpread- the behind spreadfirstSpread- the first spreadnumSpreads- the num spreadsoptions- 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 connectionLogindocumentID- the document IDitems- the itemsoptions- 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 connectionLogindocumentID- the document IDoptions- 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 connectionLoginmasterdocName- the masterdoc nameitemsXML- the items xmlrenderer- the rendererpdfProfile- the pdf profileoptions- 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 connectionLoginmasterdocName- the masterdoc namenewDocumentID- 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 iddocumentID- the document idelementIDs- the element i dsvisibleState- the visible stateoptions- 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 iddocumentID- the document idoptions- the options- Returns:
- data handler
- Throws:
CometException- the comet exception
-