Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

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

New Here ,
Jul 29, 2019 Jul 29, 2019

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);

TOPICS
Scripting
3.0K
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jul 29, 2019 Jul 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

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Jul 29, 2019 Jul 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

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jul 29, 2019 Jul 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

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Jul 29, 2019 Jul 29, 2019
LATEST

Hi Manan, I will go through this documentation

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guru ,
Jul 29, 2019 Jul 29, 2019

InDesign server is designed exactly for what you are looking to do.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Jul 29, 2019 Jul 29, 2019

Can you share some examples with me if you have as I am not able  to find any with C#

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guru ,
Jul 29, 2019 Jul 29, 2019

I don't have any examples for InDesign Server, if you search the InDesign Server forum, you might find.

The are examples on this forum using c# with indesign.

Basically you just need to connect to the COM port and then you can use c# easily.

The big question is if you have the buget for the server, I think the staring cost is about $20,000

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines