Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Set single text frame content to overpring in Indd CS 6, js

Participant ,
Jul 14, 2017 Jul 14, 2017

Hi,

I need to set single text frame content to overprint in Indd CS 6 with Javascript.  Maybe something like this:

my_FOLD_TextFrame.contents(0).overprintFill = true;

Thank you.

Yulia

TOPICS
Scripting
573
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Enthusiast ,
Jul 15, 2017 Jul 15, 2017

app.selection[0].texts[0].overprintFill = true;

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jul 16, 2017 Jul 16, 2017

Hi,

I would also consider setting texts[0].overprintStroke to true.

In case someone is a bit experimental with some text design.

@Yulia,

contents of a text frame does not define formatted text.

And contents is no method or function.

So:

my_FOLD_TextFrame.contents(0)

should result in an error message: "my_FOLD_TextFrame.contents is not a function".

And then it does not make sense to go on and add:

my_FOLD_TextFrame.contents(0).overprintFill = true;

before resolving the problem.

Do as Chinna suggested and maybe add another line for overprintStroke as well.

Regards,
Uwe

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Participant ,
Jul 25, 2017 Jul 25, 2017
LATEST

Thank you.

I think this is great.

And what I end up doing is setting Paragraph to overprint:

myParagraph.overprintFill = true;

Yulia

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines