Forum Stats

  • 3,875,312 Users
  • 2,266,908 Discussions


how to interact with the document of a desktop application using java

Dinesh Member Posts: 14
edited May 27, 2011 6:56AM in Java Desktop Applications
Hi folks,

My requirement is to do file conversion. So, i am in need to interact with a third party application using JAVA. Is there any way to do this in JAVA without using their own APIs?
If so, Guide me to proceed the standard procedure. Else, give me any idea to proceed the requirement which i given below.

* Adobe InDesign CS4 document has to be converted to XML file.
* The document's extension is .indd (Can open only in Adobe InDesign CS4 Application)
* Adobe InDesign has its own Javascript. Using this script an .indd document can be converted into .xml file.

**I have to convert this .indd document into xml file using Java**
**Also Multiple documents has to be converted concurrently on the server side**

But, I haven't any idea to proceed this using JAVA.


  • gimbal2
    gimbal2 Member Posts: 11,949 Gold Trophy
    If Adobe provides a command line utility that can do the conversion, you can use Runtime.exec() to invoke that from Java. Otherwise the only possibility would be for Adobe to provide the Java classes to do so, or at least having the file format specification so you can write your own code to load such files.

    A quick Google for "java indesign" does give some hits, such as these documents:
  • Dinesh
    Dinesh Member Posts: 14
    thanks gimbal2,

    but what i need is, I want to do the process that is actually being done by the Indesign Application. Without using Indesign Application I have to convert .indd files using Java.

    Any more ideas??
  • gimbal2
    gimbal2 Member Posts: 11,949 Gold Trophy
    You'd need the file format (which means Adobe has to give it, or you somehow reverse-engineer it) and write a whole bunch of code to read in the files, if someone else hasn't done that already.

    I'd say that your requirement is a bit far fetched to be honest.
This discussion has been closed.