how can I utilize an image on page 2....n in my PDF?

I have a two page PDF file that I want to use in a Connect template. Page 1 has the front side of my postcard image. Page 2 has the back. Where can I specify which page is which in my image element?

Hello,

From what Im understanding your trying to use a two page pdf as an Image resource in Connect Designer and you want to be able to retrieve images from both pages 1 and 2. If this is the case this is not possible, you will only be able to access the pdfs first page. You can always split the file into two pages and use both pages as 2 different images. If this is not the issue your trying to solve and I have missunderstood let me know, thank you!

Francis C

Thank you Francis, I will split the PDF into two separate files.

Do you know if this will be added as a feature in the future? The question hasn’t been asked yet by an end user to me, but eventually they will want to know.

thanks!

Lou Pace

Hello Lou,

I spoke with Fadila from training and she let me know that she saw someone answer the same question on the Connect forum a while back saying that it would be possible in the future. She did however say she’s not 100 percent sure. I would have liked to confirm with development but they are in the board room all day for a semi annual meeting. If it does become a feature it will surely be added to the release notes. Cheers!

Francis C

Hi Francis

Printshop Mail has this feature and we use it all the time, I can’t believe it has not been implemented in Connect…

So of I have a 16pp PDF template with variables, I will have to split the PDF into 16 separate files??

Thanks

Liam

Hello Liam,

Variables as in different variable images or variables as in data you would like to extract on several different pages? Thank you

Best Regards,

Francis C

Hi Francis

This is not extracting data but using the data to drive the pages that are displayed within a PDF.

Thanks
Liam

Hello Liam,

Yes this is now possible. Here is excerpt from training on how to do it -

Selecting a PDF Page Number

So you want to be able to select a specific page number from a PDF resource in your template? You want to do this either statically or dynamically? Look no further. The trick is super simple: ?page=N

Yes, that’s right, you just add a that to the end of your image’s Source (“src” attribute) and you’re golden! This can be from the Attributes pane in the Source box (images/myfile.pdf?page=3) or in a script (results.attr("src", "images/myfile.pdf?page=" + record.fields.pagenum); ). Of course this can only be dynamic using a script, but as you can see this particular one is not super complicated.

Oh and yes, this also works from external resources (see the Internal, External and Web resources tip!), but not for Web resources (at least not at the moment).

Thank you!

Perfect! Thanks ciroif!