Copy link to clipboard
Copied
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
Copy link to clipboard
Copied
app.selection[0].texts[0].overprintFill = true;
Copy link to clipboard
Copied
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
Copy link to clipboard
Copied
Thank you.
I think this is great.
And what I end up doing is setting Paragraph to overprint:
myParagraph.overprintFill = true;
Yulia
Get ready! An upgraded Adobe Community experience is coming in January.
Learn more