8 Replies Latest reply on Apr 5, 2011 8:07 AM by [Jongware]

    Insert image into existing 'placeholder' [CS5] [JS]

    das_kaese Level 1

      Hi all,

       

      I have searched the Scripting guide but have found no clear answer to my problem (yet...).

       

      I'm currently using InDesign CS5 with JavaScript.

       

      I am (attempting to) build a solution that will enable users to customise business cards by inserting a custom image into a template document.

       

      My intended solution is thus:

       

      1. Include in the template document, a rectangular frame
      2. When the user has selected the image they would like to use in the business card, insert the selected image into the rectangular frame

       

      My problem is with inserting the image into an existing page item within the template document. How is this be done? The documentation refers primary to creating page items, and I keep hitting error messages when attempting to refer to existing page items!

       

      Many thanks,

      Ben