带有应用段落样式的导入对象格式
我正在从单独的 .indd 中导入样式,并使用函数newTextFrame.AppliedObjectStyle
对象样式具有“ apply apply apply apply next段落样式”选项,但是当我执行时,我的脚本,仅应用第一段样式。当我在脚本完成后重新应用对象样式时,它正在工作。
我尝试添加.applynextParagragrAgraphStyle
或.enableParagragraphStyle
但它不起作用(我知道这些是用uSussed使用的用于创建对象样式)
I am importing styles from a separate .indd and applying them with the function newTextFrame.appliedObjectStyle
The Object Style has the "Apply next Paragraph Style" Option enabled, but when i execute my script, only the first paragraph style is applied. When i reapply the object style after my script has finished, it is working.
I tried adding .applyNextParagraphStyle
or .enableParagraphStyle
but it didn't work ( I know these are ususally used for creating object styles)
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
好吧,我找到了解决方案。
它与我的代码顺序有关。基本上,在加载内容之前,我正在应用对象样式。现在,内容已经放置在文本框架中,然后使用对象样式应用,它可以正常工作!
Okay, I found the solution.
It had something to do with the order of my code. Basically i was applying the object style before loading the content. Now, that the content is already placed in the text frame and THEN applied with the object style, it works fine!