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

How do I enable text wrapping and set non-printing?

Guide ,
Oct 26, 2025 Oct 26, 2025

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,
}

010.png

TOPICS
How to , Scripting
165
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

correct answers 1 Correct answer

Guide , Oct 26, 2025 Oct 26, 2025

It seems to be this:
objectStyle.nonprinting = true;

Translate
Guide ,
Oct 26, 2025 Oct 26, 2025

Found this switch, but couldn't locate the non-printing setting.
enableTextWrapAndOthers: 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
Guide ,
Oct 26, 2025 Oct 26, 2025

It seems to be this:
objectStyle.nonprinting = 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
Engaged ,
Oct 26, 2025 Oct 26, 2025

This is a Japanese site, but
http://indesign.cs5.xyz/dom/about.html
is also worth checking out.

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 ,
Oct 26, 2025 Oct 26, 2025

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:

 

 

Screen Shot 19.png

 

 

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
Guide ,
Oct 27, 2025 Oct 27, 2025

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;

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 ,
Oct 27, 2025 Oct 27, 2025
LATEST

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

 

 

Screen Shot 20.png

 

Screen Shot 21.png

 

 

 

 

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