Lucky Singh

Lucky Singh

  • NA
  • 69
  • 2.2k

How to create a document in Adobe in-design in C# or Java

Jul 29 2019 8:55 AM
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);

Answers (1)