添加引用 Interop.Illustrator.dll,安装 Illustrator 后台在 com中找到 adobe Illustrator cs* type library
Illustrator.Application app = new Illustrator.Application();
Illustrator.Document doc = app.Documents.Add(Illustrator.AiDocumentColorSpace.aiDocumentCMYKColor, 400, 240);
//Illustrator.Document doc=app.Open("f://a.ai");
Illustrator.Layer layer1 = doc.Layers.Add();//新建图层
layer1.Name = "文字图层1";
Illustrator.TextFrame textFrame = layer1.TextFrames.Add();
//object[] position = new object[2] { 0, 0 };
//textFrame.Position = position;
textFrame.Contents = "测试文字";
textFrame.Left = 1;
textFrame.Top = 20;
textFrame.Rotate(0, null, null, null, null, null); // 旋转
textFrame.C