Jump to content

Calling second page of PDF


Mikeness

Recommended Posts

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 "";

}

Link to comment
Share on other sites

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 "";

}

Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...