Hi,
Currently I have 2 master pages, front and back, and one Print section all the record details like name, record ids, address block are on the master page (front page) and some repeated details in the back (master page back).
This is set up this way because there will be an overflow happening on the first page body, when it does overflow front/page are repeated to the next sheet. This is fine and working.
I have set the background in the media, where I set front and back. This is working just fine.
But if I want to introduce dynamic background, how would my control script look like?
I am aware that I can do something like this:
var background = newClone.background;
background.source = BackgroundResource.RESOURCE_IMAGE;
background.allPages = true;
if(jobName.toLowerCase().indexOf("another job") >=0){
background.url = "images/background for job 1.pdf"; // 2 pages pdf
} else {
background.url = "images/background for job 2.pdf"; // 2 pages pdf
}
This does not work, as it gives me 4 pages in total when I do this. Im assuming this is because how I have my template set up.
So how would I go about setting specific page background for front and back, without changing my set up (2 master pages back and front)
Thank you.
Any help is appreciated
Kind regards
E