【问题标题】:How to download an image from url to use in ILLUSTRATOR scripting (ExtendScript Toolkit)如何从 url 下载图像以用于 ILLUSTRATOR 脚本(ExtendScript 工具包)
【发布时间】:2023-01-23 06:48:26
【问题描述】:

使用 ExtendScript Toolkit 将图像放入 Adob​​e Illustrator 中有详细记录:

var placedItem = doc.placedItems.add();
placedItem.file = new File("~/Desktop/xxx.jpg");
placedItem.position = [100,370];

有谁知道如何将 URL 中的图像放入 Adob​​e Illustrator 中。例如:https://www.bcgen.com/demo/IDAutomationStreamingDataMatrix.aspx?D=TEST123&PT=T&MODE=3&X=1&LM=1

在 Photoshop 中,可以使用 app.system(curl -o .....),如此处所述 (How to download an image from url to use in Photoshop scripting (ExtendScript Toolkit))。但在 Illustrator 中 app.system() 似乎不可用。也许 do.script() 是正确的方法,但到目前为止还没有弄清楚......

【问题讨论】:

    标签: adobe


    【解决方案1】:

    JSXGetURL 旨在与任何支持 ExtendScript 的 Adob​​e Creative Cloud 应用程序一起工作——InDesign、InDesign Server、InCopy、Illustrator、Photoshop……

    JSXGetURL 作为一个 ExtendScript DLL/框架实现,用 C/C++ 编写。

    此 DLL 允许您直接从 ExtendScript 访问 URL(包括 https: 或 ftp:)。

    无需安装 - 您需要做的就是 //@include 一个 .jsx 文件,然后加载 DLL。

    https://coppieters.nz/?p=577

    披露:我是 JSXGetURL 的作者。

    【讨论】:

      猜你喜欢
      • 2016-12-24
      • 2015-08-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2019-12-24
      • 1970-01-01
      • 2014-09-07
      • 1970-01-01
      相关资源
      最近更新 更多