Positioning the same text object on multiple pages

Posted by: Sami786

Positioning the same text object on multiple pages - 05/11/21 12:51 PM

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.
Posted by: jouberto

Re: Positioning the same text object on multiple pages - 05/11/21 12:59 PM

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()
Posted by: Sami786

Re: Positioning the same text object on multiple pages - 05/11/21 01:57 PM

thank you so much