Copy link to clipboard
Copied
Couldn't find any examples.
Looked through the developer documentation, but I don't know how to use it.
https://www.indesignjs.de/extendscriptAPI/indesign-latest/#ObjectStyle.html
Is this correct? It doesn't seem to work. It also shows a syntax error for nonprinting.
objectStyle.textWrapPreferences.properties = {
nonprinting: true,
}It seems to be this:
objectStyle.nonprinting = true;
Copy link to clipboard
Copied
Found this switch, but couldn't locate the non-printing setting.
enableTextWrapAndOthers: true,
Copy link to clipboard
Copied
It seems to be this:
objectStyle.nonprinting = true;
Copy link to clipboard
Copied
This is a Japanese site, but
http://indesign.cs5.xyz/dom/about.html
is also worth checking out.
Copy link to clipboard
Copied
There is no nonprinting property is objectStyle.textWrapPreferences
https://www.indesignjs.de/extendscriptAPI/indesign-latest/#TextWrapPreference.html
You can set in on a pageItem:
https://www.indesignjs.de/extendscriptAPI/indesign-latest/#PageItem.html
If you do a search for nonprinting in the API docs, you’ll get a list of objects that have the nonprinting property:
Copy link to clipboard
Copied
Hi rob day.
I need to add nonprinting to the object style.
I don't know how to add it to pageItem.
The following works:
objectStyle.nonprinting = true;
Copy link to clipboard
Copied
I don't know how to add it to pageItem.
For a pageItem it would be (nonprinting page items are hidden when Overprint/Separation Preview is turned on):
var pi = app.documents[0].selection[0]
pi.nonprinting = true
$.writeln(pi)
//returns the selected object
Find more inspiration, events, and resources on the new Adobe Community
Explore Now