添加引用 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.CreateOutline();//文字转换成曲线
Illustrator.Layer la

本文介绍了如何在C#环境中通过引用Interop.Illustrator.dll与Adobe Illustrator进行交互,特别是针对SVG图片的置入问题进行了探讨,寻求解决方案。
最低0.47元/天 解锁文章
604

被折叠的 条评论
为什么被折叠?



