How to open an InDesign file from CMIS repository?

We are using CS SDK 2.0 , looking to use CMIS to keep versionning of .indd file. The uss case as following:
form our de4veloped InDesign pluging, user click a button
the button will open a .indd file from cmis repository
plugin check-out the file, open it within InDesign IDE
user make changes
user make save
the plugin export a pdf and swf files from the current document, if the files exists it will update, aslo on CMIS repo to keep also versions of exported pdf and swf, if files not exist in first time .. it will create
when user clos the document , it will check it in.
the problem there is no sufficent sample code for, even was thinking to use Adobe Drive, but there is no Adobe Drive SDK for Flex.
i used to fuse the sdk, but
private function getFileByPath(sPath:String):Fileable {
appStatus = ">> get File By Path";
message = "";
viewEnabled = false;
var request:GetObjectByPathRequest = new GetObjectByPathRequest(session);
var oFileable:Fileable;
request.path = sPath;
request.execute(onSuccess, onError);
function onSuccess (event:GetObjectByPathResponse) : void {
oFileable = event.object;
//var oDoc2:Document = new Document(event.object);
doc = event.object as Document ;
//children = new ArrayCollection(vectorToArray(event.target));
appStatus = ">> getFileByPath : Success";
viewEnabled = true;
return oFileable;
private function checkOutFile(oFile:Document):Document{
appStatus = ">> Check Out File";
message = "";
viewEnabled = false;
var request:CheckoutRequest = new CheckoutRequest(session);
request.object = doc;
var oDocument:Document;
request.execute(onSuccess, onError);
function onSuccess (event:CheckoutResponse) : void {
oDocument = event.object ;
appStatus = ">> Check Out File : Success";
viewEnabled = true;
return oDocument;
private function openTestFile():void {
                                        appStatus = "Open Test File";
                                        message = "";
                                        viewEnabled = false;
                                        var oFile:Fileable  = getFileByPath("/Collaboration/test.indd");
                                        //var oDoc2:Document = new Document(oFile);
                                        var oDoc:Document  = checkOutFile(doc);
i do not know what method in the CS SDK to open document fom active window and  how to map CMIS Document to com.adobe.indesign Document ?

Dear Seoras
i fixed the to return the cmis path:
public function resolveRemotePath(file:File):String
                              if (file.nativePath.indexOf(LOCAL_FILE_CACHE.nativePath) != 0)
                                        return null;
                              var remoptePath:String =file.nativePath.substr(LOCAL_FILE_CACHE.nativePath.length);
                              trace("resolveRemotePath [11] : "+ remoptePath);
                              if(File.separator!="/") {
                                        //var pattern:RegExp = /(\/)/g;
                                        var pattern:RegExp = /(\\)/g;
                                        remoptePath =  remoptePath.replace(pattern ,"/");
                                        trace("resolveRemotePath [22] : "+ remoptePath);
                              return remoptePath;
i have another issue, why everytime update the generated pdf it creates new pdf file with same name in the cmis repo .. does the pdf is not updatable over the cmis service ???
Regards

Similar Messages

  • I have design standard with creative cloud, I have installed this on 2 computers, my office and home which I was told was allowed, I have just tried to open an indesign file from the office at home and and error message said that this was created with a n

    I have design standard with creative cloud, I have installed this on 2 computers, my office and home which I was told was allowed, I have just tried to open an indesign file from the office at home and and error message said that this was created with a newer version? they are the same versions and both are up to date, I was asked this morning to put in my adobe id email and password to connect to CC which I have never been asked to do before, can anyone help?

    what's your home version (click help>about) and was that just a warning so you were able to open the file?

  • How to open Adobe Reader file from another native IOS application?

    There is an existing thread, but I want to re-open it because I think this is an important feature that we need badly.  I was wondering if there is any plan to add this feature so we can open PDFs directly into Adobe from the web / other apps.
    How to open Adobe Reader file from another native IOS application?
    Basically, we just want to use a custom URL scheme to open a specific document in the App.  Currently, this only opens the app but does not load the file.
    APB

    Not to hijack the conversation but I can explain why this would be useful for both the above case and another.
    What I believe Pavel is talking about is setting up a "URL Scheme" for the Adobe Acrobat iOS application so that you can easily open a PDF specifically in Adobe Acrobat iOS from other native applications and even from web applications opened within Safari. This is particularly useful if your application requires some of the specific features in Adobe Reader iOS to grant them the best experience possible and you want to encourage this.
    Another case: If you're using Adobe Livecycle's document security modules (that encrypts PDF files so that Adobe Acrobat must "phone home" to decrypt and view the document), these PDF's can only be viewed inside the Adobe Acrobat application and appear as blank in most other PDF readers. Having a URL scheme allows your application utilising this functionality to have a 1 click step to view the PDF rather than the current non-user friendly process:
    - Within Safari, touch the PDF link (appears as blank in the default Safari PDF reader, which in itself is confusing)
      - Touch "Open in..."
      - Touch "Adobe Acrobat"
    We have an immediate need for this functionality for the example above. I can resubmit it in a separate post if necessary.

  • How to open a local file from javascript in a jsp-page

    Hi
    I have created an iview from a PAR file. In the par file I have a jsp-page with some javascript code. From the javascript coe I want to open a new window with an Excel file.
    I have tried window.open("c:
    test.xls", "test_window"), but it doesn't seem to work. I have created a small HTML page locally with the same command and there a new window opens with the Excel file.
    If I change the local file path with an URL it also works.
    Any idea how to open a local file ?
    Thanks
    /Jakob

    Jacob,
    I'm not 100% (but 99,9%) and it has to do with security ristrictions of the browser not allowing to have local workstation interation from the web. This is ofcourse very dangerous if the browser would allow it... So therfore it is blocked. What if somone would point to a file/executable that formats your drive so for that reason it is not allowed to have web interaction with a local file. Only with Java Applets this is possible but still with many limitations, and what I remember Google Gears and Adobe Air do have some limited web 2 local file interaction... So best and most simple solution you are left with is pointing to a url instead of a file on a c:\ drive.
    PS The reason why it works when you start the html from your local PC has todo with the fact that the browser detects that the html is not running in the web at that moment therefor allowing the access.
    Cheers,
    Benjamin Houttuin

  • How to open an InDesign file without .indd extension?

    Hi,
    I am trying to open an InDesign file which does not have the extension .indd.
    I can open the file from InDesign's File-> Open menu item. But if I try to open programmaticaly it says the file format is not supported.
    I tried using SDKLayoutHelper::OpenDocument and IDocumentCommands::CreateOpenCommand both gives the same error.
    Thanks,

    Thanks. My file was not proper. I am able to open the file without the extension.

  • Opening an Indesign file from server slows down [very urgent please]

    Hi All,
    I have a book that is already paginated. (Every indesign file has hyperlinks targeted to the another indesign file (paragraph Anchor destinations)).
    After few days the server was crashed due to some network problems.
    Now a new server has been created with different name and path.
    If I try to open the indesign file it takes much much longer time than usual, For the same file if I disconnect the network connection it is working as usual.
    What is the cause of this? Is there any way to overcome this issue or any work around? At the same time I need to retain the hyperlinks also. Because it is very very difficult to re-create the links (more than 100 or 200 number of links will be there in every chapter).
    Note: I have tried something like trashing indesign preferences. It is also not working.
    Thanks,
    Green4ever

    I restored all my indesign file in the same folder structure except the root folder. I already tried the way you suggested. It is not helping me.
    "I thought that may be Indesign is searching for the missing links" So I try editing the preferences so that indesign will not search for the missing links(I think it is only aplicable for graphic links is it?). After that also I am facing the same problem.
    Is there anyway to open the indesign file without checking for missing hyperlinks. So that it may open faster.    
    Thanks,
    Green4ever

  • How to open a BUP file from a flashdrive in Macbookair?

    Pl let me know how to view a video with BUP extension from a flashdrive in my macbookair?

    You can open a PUB file ONLY with MS Publisher (Windows). No other possibility.

  • How to Open an Indesign file with a missing plugin

    Is there a way to open a file that has a missing plugin?
    This is the case:
    We used an outside designer who is on CS5 indesign and teacup barcode software plugin cs5
    We received his files saved back to CS4, but it is still telling us there is a missing plugin.
    I'm assuming it is Teacup software. Is there a way around this??

    Jenna Hamilton wrote:
    Is there a way to open a file that has a missing plugin?
    This is the case:
    We used an outside designer who is on CS5 indesign and teacup barcode software plugin cs5
    We received his files saved back to CS4, but it is still telling us there is a missing plugin.
    I'm assuming it is Teacup software. Is there a way around this??
    You should try to be as accurate as possible when describing your situation. For example, you say the file was “saved back to CS4”. That is impossible. There is no way to save an InDesign CS4 file from any program except InDesign CS4. Do you mean that the designer exported an .idml file from InDesign CS5? If so, then say so. If you have been given an InDesign .indd file saved from InDesign CS5, then you have an InDesign CS5 file, not an InDesign CS4 file.

  • How to open an PDF file from Java Application

    Hi
    I am developing a GUI application in java swing.
    on clicking one button, I want to open PDF file from my swing application.
    Is there any API through which I can achieve this?
    Tapan Maru
    Sun Certified Java Programmer

    Here's a way to do it (if I understand you
    correctly). Just let explorer.exe do it for you.
    import java.awt.*;
    public class openPDF
         Desktop desktop = Desktop.getDesktop();
         public openPDF()
              open("test.pdf");
         public void open(String path)
              try
                   Runtime.getRuntime().exec("explorer.exe "+path);
    } catch(Exception e) { System.out.println("NAI!
    I! ERROR!\n"+e); }
         public static void main(String[] args)
              openPDF myApplication = new openPDF();
    Why do you have a Desktop object as a member but instead of using it, you execute a command with Runtime (which is not platform independent!)???
    -Puce

  • How to open/convert RAW- files from new CANON 5D Mk III in LR 3 and CS 5?

    Hallo!
    The RAW- files from my new CANON 5D Mk III are not convertible into LR 3 and CS 5.
    What is the reason and how to solve the problem?

    The work around of converting the CR2 to dng either with the dng converter or ACR 6.7 will allow working in LR and CS5 but not with the latest raw conversion engine from Adobe i.e PV 2012.
    Remember to keep a copy of the CR2 files if you wish to utilize the Canon software.

  • How to open an existing file from java

    Hi Guys,
    I have one problem Please help me in this.
    How to open file(i.e. file can be any type, it is may be image file, doc file or pdf file) using java.
    Even i tryed in one way but it is static way that is working in windows not for other OS.
    Code :
    import java.io.*;
    public class CmdExec {
    public static void main(String argv[]) {
    try {
         DataInputStream din=new DataInputStream(System.in);
         System.out.println("Enter File Path to Open");
         String fName=din.readLine();
         File file=new File(fName);
    Runtime.getRuntime().exec("rundll32 SHELL32.DLL,ShellExec_RunDLL " + file.getAbsolutePath());
    catch (Exception err) {
    err.printStackTrace();
    If any other way to do please tell me.
    Regards
    Siva Prasad

    Well, if the OS doesn't provide a mechanism to associate a file name with a certain program, there's nothing you can do.
    I don't know whether something like JDIC can help you - otherwise, you'd have to find the solution for each OS. What's inside the exec()'s parenthesisses is not a Java problem anymore.

  • How to open Microsoft office files from my wp8 app?

    Is there any way to open Microsoft office documents? I want to open a doc file which is in my phone.My app may try to open pdf also. So is there any way for that? I need a free one.

    //where file is your StorageFile type object of perticular //Office documents i.e. ppt or doc etc
    await Windows.System.Launcher.LaunchFileAsync(file);
    Please Refer these links 
    How to open pdf file in Windows Phone 8?
    Launcher.LaunchFileAsync
    shah
    // Please Mark as answer if it is Helpful to you. Thank You

  • How to open an excel file from labview?

    I tried to use "open file" vi from File I/O -- Advanced file functions to open an excel file in LabVIEW. Why the excel file wouldn't open after I run the program?

    In addition to ActiveX, you can also manipulate Excel data files using the Windows ADO interface - a technique that is more robust, faster and IMHO easier. Do a search on the forum as there have been several threads within the last week or so discussing this very thing.
    Mike...
    Certified Professional Instructor
    Certified LabVIEW Architect
    LabVIEW Champion
    "... after all, He's not a tame lion..."
    Be thinking ahead and mark your dance card for NI Week 2015 now: TS 6139 - Object Oriented First Steps

  • How to open a html file from hard disk

    Hello everyone,
    i want to display a html file by using java applet.
    This is my current coding:
    package mkbe.pg;
    import java.net.*;
    import java.applet.*;
    public class HtmlReader extends Applet 
    URL userUrl;
    public void start()
    try{
    userUrl = new URL(getDocumentBase(),"FILE:///c://2007/index.htm");
    }catch(MalformedURLException error){
    System.out.println("Error");
    getAppletContext().showDocument(userUrl,"_blank");
    }the program have no error and warning and the applet did run by appletviewer but the html file did'nt open.
    Is it there's mistake in my coding?
    If there is please tell me how to repair it.
    Thanks

    For an applet to read from a client's harddrive it will need permission.
    This can be done by putting the applet in a jar file and signing it,
    or by using the poiclytool to change the java.policy file to give FilePermission.

  • How to open and close files from UIwindow my function doesn't work

    Hello guys!
    I am trying to create a simple ui-interface.
    I made one button so far.
    but my function does not work.
    if I run the function without dialog box it works perfectly!
    when I running the function in the dialog window, picking a file and open, nothing happens why?
    please help me with a correct code.
    also how do I write  2 functions that also closing a file and  saving a file?
    here is my simple code.
    var w = new Window ("dialog");
    button.onClick = function () {
    OpenMyFile();
    w.show ();
    function OpenMyFile(){
    var myFile = File.openDialog();
    app.open(myFile)
    Thank you in advance.

    Well, to answer your first question, you've added an event listener, but you haven't actually added the button itself.
    try this:
    var w = new Window ("dialog");
    b = w.add("button", undefined, "Click me!");
    b.onClick = function () {
    OpenMyFile();
    w.show ();
    function OpenMyFile(){
    var myFile = File.openDialog();
    app.open(myFile)

Maybe you are looking for

  • Merging Files using File Adapter

    We already have a BPEL process that polls for Emp file and massage the data and writes to another file, now new requirement is we get new file for 401K eligibility info. I need to merge the 401 file with EMP file. Emp File : EmpNo Name Location 10 Ch

  • Why I can't open FB in my iPad?

    i Can't open FaceBook with my iPad, it just happened since this morning until now

  • Keynote v.1 won't open on MacPro

    I've looked and can't find any indication that KN v.1 won't work on Intel Mac but I can't get it open. I installed from original disk and when I try to open -- I choose the theme and it starts to load then stops with this message - "an unexpected err

  • Printer won't work.  Canon MX922

    Downloaded Mavericks yesterday. Tried to print last evening.  Error reads that the printer is not connected.  We have a wireless printer that has worked with my MacBook Air until yesterday's download.  Any suggestions?  I am also relatively new to Ma

  • MacroMedia DreamWeaver MX error after error

    I'm Running MacroMedia MX and have just switched machines so I've reinstalled the program and brought over all my projects. How for some strange reason every time I go between pages I get the following messages while executing getCurrentValue in Addr