问题标签 [indesign-server]
For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.
adobe - 如何在线或不安装 InDesign Suite 将 InDesign (.indd) 文件转换为 .idml 文件(并返回)?
我收到了一个 Indesign (.indd) 文件,我使用 Indesign App 从中提取了 .idml 文件。是否可以通过 Adobe 的 SDK 或任何在线 api 完成这种和其他方式的转换,而无需安装应用程序。在 Adobe 的 SDK 文档中没有看到任何参考。另外,我需要在网络浏览器上预览 Indesign 文档,我目前可以通过在 Adobe CC 中上传 .indd 文件来实现。Indesign 文件的在线预览还有其他替代方法吗?
adobe-indesign - 为什么“FindTextPreferences”不起作用?
我有 1 个字体丢失:[ddddの]
。我想查找并替换为 Font [Ab]
This is my Code,但找不到 .
但是如果缺少字体的名称是:[dddd]
. 它工作正常。为什么“FindTextPreferences”不起作用?,如果字体名称包含日语。谢谢大家。
javascript - Cannot access kerningValue property of character or paragraph
I am trying to ascertain the kerning of the characters in a TextFrame using IDS's SOAP API. For the sake of simplicity I am currently still trying to examine only the first character, which is not any kind of special character (it's an uppercase T). I am using this script to examine it:
However, when I run the script I get an error 30615: The property is not applicable in the current state
.
It works fine if I try to get any other property from the character, rather than kerningValue
. For example, kerningMethod
returns Metrics
.
What circumstance is causing this property to be unavailable, and how can I read it?
javascript - 如何通过脚本在 InDesign 中用给定文件替换图形?
我需要用给定文件替换 InDesign 文档中的一些图像。使用 InDesign 服务器会发生这种情况,但脚本编写与常规 InDesign 几乎相同,只是无法进行用户交互。
我拥有的是一个 InDesign 文档,包含一些图像的 Rectangle 的 ID 和应该替换图像的新图像的路径。
应替换图像,但 FitOptions 等设置应保持不变。此外,新文件应嵌入 InDesign 文档中。已经有一些可以工作的代码:
这似乎不对。为什么doc.textFrames
在对象是矩形时使用它?我实际上很困惑这甚至有效。
它也只是设置了一些 FitOptions,但我想保留现有的。
我对 InDesign 脚本非常陌生,所以我在这里迷路了。我正在阅读文档和其他资源,但我很困惑。例如,为什么doc.textFrames.itemByID
其他框架没有类似的东西?我是否必须迭代doc.allPageItems
和比较 id?
com - InDesign 服务器 COM 错误
我在 Windows 上使用 InDesign 服务器。并使用 Microsoft .Net Web 平台 (ASP.NET) 开发应用程序。
我正在使用 InDesign 提供的 ImportXML() 方法生成 Indd 文件。我随机收到以下错误(有时更频繁):
InDesign 没有提供更多关于失败位置的信息,因此被阻止在那里。
任何人都可以在这里帮忙。谢谢。
adobe-indesign - 用于识别和替换 indd 文档图像的 InDesign 脚本
我正在使用 InDesign CS6 服务器更改 .indd 文件的文本和图像。
虽然我有更改文本的脚本,但我无法更改 indd 文档的图像。
有人可以帮助我使用脚本来识别 indd doc 中使用的所有图像,然后用用户选择的图像替换这些图像。
谢谢!!!!
adobe-indesign - 用于将 idml 导入到 indd 文档的 InDesign 脚本
我正在使用 InDesign Server 和基于肥皂的应用程序通过服务器进行通信。
我能够获取 indd 文档中使用的所有表单字段,并且还能够替换其文本/值。
现在,我希望获取 indd doc 中使用的所有图像,并在我的应用程序中提供上传图像选项,并能够用用户选择的图像替换图像。任何人都可以提供用于识别和替换图像的脚本。
其次,为了向后兼容,我有一个 indd 文档的 idml。现在如何导入或打开这个 idml 并通过脚本将其转换为 indd doc。
第三,如何将pdf转换为indd doc。
请帮助我处理这些脚本。
javascript - InDesign Server CS6 脚本 - 获取包含 DataMergeField 的 TextFrame
我无法确定 DataMergeField 是否包含在 TextFrame 中。
我正在尝试为任何 DataMergeFields 的文本内容提供换行、适合、填充选项,并根据 TextFrame 尺寸调整它们。在不知道文档中使用的任何 DataMergeFields 或 TextFrames 属性的情况下。
adobe-indesign - 根据需要为动态内容创建尽可能多的页面
我有一个模板,我正在用文本填充。有一个页眉,页眉后面有几个内容页。每个内容页面有两列,底部有一些标志和东西。我正在用图像和格式化文本动态填充内容。
页数是可变的。如何根据需要复制内容页面,或者(如果我创建包含许多预先复制的内容页面的模板)在填写内容后删除空白页面?
node.js - 连接到 InDesign Server 的节点 SOAP 客户端
我正在尝试让 node/express 向 indesign 服务器发送肥皂请求。
从 Soap.ui 或 Postman 发布请求可以正常工作。在浏览器错误中加载“soap”页面。
我还用新的一些示例脚本尝试了节点客户端,它们可以工作,所以安装应该没问题。
这是我到目前为止所拥有的:
client.describe() 返回:
我正在尝试使用 RunScript 对象。
client.describe().Service.Service.RunScript:
控制台显示此错误:
Indesign Server wsdl 可以在这里查看:
https://gist.github.com/tomtaylor/1034317
我怀疑这是 args 变量格式的问题。