Topic Options
#57990 - 05/11/21 12:51 PM Positioning the same text object on multiple pages
Sami786 Offline
OL Expert

Registered: 01/29/14
Posts: 393
Loc: Home
Hi, I have used an Overly page and placed the text object with variables, but I'm stuck on how to positioning the same text object on multiple pages but on different locations on the pages.

For example the same Text Object should print on top of the page for page 1 but for page 2,3,4,5 needs to print on bottom of the page but from page 6-50 it needs to print on the right hand side of the page.

How can I reference the same Overly on different locations on different pages?

your help is appreciated.
_________________________
Peace

Top
#57991 - 05/11/21 12:59 PM Re: Positioning the same text object on multiple pages [Re: Sami786]
jouberto Offline
OL Toddler

Registered: 04/18/18
Posts: 49
Personally for this I would create an overlay just for this object and draw it at 0,0. Then whenever you need to call it just use $overlayname. Based on your page logic, apply the corresponding translate command to position it where it needs to be.
gsave()
translate(x,y)
$overlayname
grestore()

Top
#57992 - 05/11/21 01:57 PM Re: Positioning the same text object on multiple pages [Re: Sami786]
Sami786 Offline
OL Expert

Registered: 01/29/14
Posts: 393
Loc: Home
thank you so much
_________________________
Peace

Top