Mikeness Posted December 18, 2014 Share Posted December 18, 2014 I've read through all the available posts but just can't seem to get this functionality to work. I have a two page PDF template, loaded with 7 PDF resources, 2 of which are two-page documents while the balance are 1 page. I've setup a variable graphic frame on both pages and assigned a switch rule based on the "Version" field in our .mdb file. The following rule works fine to call the first page of the PDF, however I can't seem to apply the pagenumber function to this structure. I've highlighted the two 2-page resources with red text. What is the most straightforward method to be able to call on the second page of the resource in the second variable graphic frame? Rule for page 1 that works well: switch (Field("Version").toLowerCase()) { case "NA".toLowerCase(): return Resource("NA"); case "NB".toLowerCase(): return Resource("NB"); case "TEB".toLowerCase(): return Resource("TEB"); case "TEC".toLowerCase(): return Resource("TEC"); case "TFA".toLowerCase(): return Resource("TFA"); case "TFB".toLowerCase(): return Resource("TFB"); case "TFC".toLowerCase(): return Resource("TFC"); default: return ""; } Quote Link to comment Share on other sites More sharing options...
jwhittaker Posted December 18, 2014 Share Posted December 18, 2014 try this switch (Field("Version").toLowerCase()) { case "NA".toLowerCase(): return Resource("NA"); case "NB".toLowerCase(): return Resource("NB"); case "TEB".toLowerCase(): { var image = Resource("TEB"); image.pagenumber = 2 return image; } //return Resource("TEB"); case "TEC".toLowerCase(): { var image = Resource("TEC"); image.pagenumber = 2 return image; } //return Resource("TEC"); case "TFA".toLowerCase(): return Resource("TFA"); case "TFB".toLowerCase(): return Resource("TFB"); case "TFC".toLowerCase(): return Resource("TFC"); default: return ""; } Quote Link to comment Share on other sites More sharing options...
Mikeness Posted December 18, 2014 Author Share Posted December 18, 2014 Worked like a charm! Thanks. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.