Skip to main content
Participant
September 19, 2022
Answered

How to change order of pageItems in InDesign?

  • September 19, 2022
  • 3 replies
  • 595 views

How to change order of pageItems in InDesign?

For example I have two pageItems
.pageItems[0] and .pageItems[1] on the same placement.
Of course, now .pageItems[0] is on the top of .pageItems[1] and this one covers that.
How can I change the order of them?

This topic has been closed for replies.
Correct answer mateuszp13156491

Hi

pagItems[1].bringToFront()

or

pageItems[1].bringToFront(.pageItems[0])

 

or 

bringForward()

3 replies

mateuszp13156491Correct answer
Inspiring
September 19, 2022

Hi

pagItems[1].bringToFront()

or

pageItems[1].bringToFront(.pageItems[0])

 

or 

bringForward()

Participant
September 19, 2022

Many, many thanks, Mateusz. This is what I needed.

Willi Adelberger
Community Expert
Community Expert
September 19, 2022

Use Layers.

Participant
September 19, 2022

It's a good solution, but I thought it had to be simpler as well. Since I can change the order of objects on the same layer in InDesign real time, I want to be able to do it also with a script.

Eric Dumas
Community Expert
Community Expert
September 19, 2022

Can you share more details where doeas the data/design comes from, your process to import it...

Participant
September 19, 2022

In my example I have two pdf.
I placed the first and then the I placed second pdf, by scripting, of course. The order of my placement things is important for another my action in this job.
But finally for me is important to have the second thing as the background for the first.
What should I do?