Skip to main content
Participating Frequently
November 13, 2025
Question

indesign preflight warn for only visible items

  • November 13, 2025
  • 2 replies
  • 141 views

Hello.

 

I want to have a preeflight for indesign that only checks visible objects.

We have alot of hidden objects due to we work with a plugin Easy Catalog and its able to change things (for example price bubble/market bubble) depending on different variables.

 

I cant see you have that option when you set up an preeflight option.

Would it be possible to write/program a specific one that meets this demand?

Best regards Mattias

2 replies

m1b
Community Expert
Community Expert
November 13, 2025

Hi @mattiaso33135605 sorry if this is a dumb questions, but just checking that you have these options set?

Inspiring
November 14, 2025

Hidden objects are not non-printing by default. This script below sets all hidden page items' non-printing value to true. Notice that hidden layer doesn't make its items hidden.  

 

doc = app.activeDocument;
for (var i = 0; i < doc.allPageItems.length; i++){
if (doc.allPageItems[i].visible == false) doc.allPageItems[i].nonprinting = true;
}

Participating Frequently
November 14, 2025

Hi Funtom.

First i didnt understand how to get this script/text in to indesign.

I duplicated an excisting .jsx file and put your code in to that and renamned it.

Worked good but how would you suggest to put code like this (im not a coder)

Anyway the script did exactly what i wanted, all the warnings dissapeared for the hidden objects but i also see that if you bring back a hidden object its still not effected by the preeflight (you dont get back a warning for the text overflow) is it possible to have this function included in one script so you just runs the same script after the document has been updated? or shall it be a second script that puts back the non-printing value as it was before on all showing objects, i hope you understands what i mean 😊

Inspiring
November 13, 2025

Hello Mattias,

A cleaning script can be written, which deletes all hidden objects. That way the file size is reduced also. Of course if the hidden objects are needed later this is no good.

Cheers!

Funtom

Participating Frequently
November 13, 2025

Thanks for the tip, unfortunately the hidden objects may be needed later in the process.