在 .NET 中操作 EPS/AI 文件

发布于 2024-12-29 02:21:02 字数 632 浏览 1 评论 0原文

我正在尝试自动操作 Illustrator (EPS/AI) 文件。我需要在线自动生成 EPS 文件并将其发送到打印机。

我有一个模板 AI 文件,我想在其中插入唯一的条形码。 AI 文件很简单,它有一个渐变背景,有 3 个形状和 2 行文本。条形码是自动生成的,格式为 PNG。

我尝试过ImageMagick、ImageGlue。虽然这些基本上做了我想要的事情,但它们光栅化了插画文件,最终结果的质量很糟糕。

我尝试过 ReaConverter,如果输出文件是 AI/EPS,它不会插入条形码,但对于其他格式它会正确执行。

我也尝试过 Inkscape。尽管可以从命令行使用它,但它在打开 illustrator 文件时会显示一个对话框,因此无法在无人值守的情况下运行。

我以前从未使用过 Illustrator,所以缺乏经验。并且可能遗漏了一些明显的东西。

有没有人有类似任务的经验。

是否可以从 .Net 实现 illustrator 自动化?如果失败的话,是否有我可以使用的任何应用程序/组件(商业版也可以)。我确信这个问题之前已经解决了。

我已经研究这个问题好几天了,可能从错误的角度看待问题。

感谢您的阅读,如果您能提供任何帮助,我将不胜感激。

如果您需要更多信息,请告诉我。

I am trying to automate the manipulation of Illustrator (EPS/AI) files. I need to automatically generate EPS files online and send them to a printer.

I have a template AI file into which I want to insert a unique barcode. The AI file is simple enough, it has a gradient background with 3 shapes and 2 lines of text. The barcode is generated automatically and is a PNG.

I have tried ImageMagick, ImageGlue. Although these essentially do what I want they rasterize the illustrator file and the quality of final result is terrible.

I have tried ReaConverter which will not insert the barcode if the output file is AI/EPS, it will do it correctly for other formats.

I have also tried Inkscape. Although it can be used from the command line it displays a dialog box when opening an illustrator file and so can't be run unattended.

I've never worked with Illustrator before so I am lacking experience. And probably missing something obvious.

Has anyone any experience with a similar task.

Is it possible to automate illustrator from .Net? Failing that is there any applications/components (commercial is fine) that I can use. I'm sure that this problem as been solved before.

I've been at this for several days now and may be looking at the problem from the wrong angle.

Thanks for reading and I'd appreciate any help that you can give.

If you need anymore information please let me know.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

夏末的微笑 2025-01-05 02:21:02

您可以使用公开的 COM 对象通过 .NET 代码自动化 AI。几年前我就这样做了,我能够在 AI 文档上创建图形和基元,或多或少就像通过自动化使用 Excel 和 Word 所做的那样。

我记得一旦你购买了 AI 许可证,这是免费的,不需要额外的 SDK 或库。看看这里:

http://www.adobe.com/devnet/illustrator/sdk。 html

并在那里:

http://wwwimages.adobe.com/www.adobe.com/content/dam/Adobe/en/devnet/illustrator/pdfs/programmers-guide.pdf

you can automate AI via .NET code by using the exposed COM objects. I did this some years ago and I was able to create graphics and primitives on the AI document, more or less like you do with Excel and Word via Automation.

I remember this is free once you have bought a license of AI, no additional SDKs or libraries required. have a look here:

http://www.adobe.com/devnet/illustrator/sdk.html

and there:

http://wwwimages.adobe.com/www.adobe.com/content/dam/Adobe/en/devnet/illustrator/pdfs/programmers-guide.pdf

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文