Skip to main content
lakhwinders1831208
Participant
July 29, 2019
Question

How to create document of Adobe in-design in c# or Java with instantiating the UI

  • July 29, 2019
  • 1 reply
  • 3066 views

How to make document without opening the application in c# or Java.

I am able to create the document but for that, I have instantiated the UI of Adobe in-design

Below is the code I tried which is working but for this application need to be instantiated.

Type type = Type.GetTypeFromProgID("InDesign.Application.CC.2019", true);
dynamic app = System.Activator.CreateInstance(type,true);InDesign.idScriptLanguage.idJavascript, new object[] { "" });
Document document = app.open("D:\\ResumeInDesign.indd", false);

This topic has been closed for replies.

1 reply

Community Expert
July 29, 2019

So you want to create an InDesign document without accessing InDesign, as in on a machine that does not have InDesign installed?

-Manan

-Manan
lakhwinders1831208
Participant
July 29, 2019

Yes but I have no issues in installing SDK, but the whole application I don't want to install on the server.

And in case if that is compulsory then I can install that as well but don't want to open from code for any activity from code.

Thanks

Community Expert
July 29, 2019

Not possible InDesign file format is a closed proprietary format, you can't create it without the use of InDesign. What you could do is create an IDML file, look into the specs

http://wwwimages.adobe.com/content/dam/acom/en/devnet/indesign/sdk/cs6/idml/idml-specification.pdf

IDML is basically an XML format that can describe the InDesign document fully, so you can write code to create IDML files instead on INDD files.

-Manan

-Manan