Embed image to flow with text using data merge?

Learn / Forums / General InDesign Topics / Embed image to flow with text using data merge?

Viewing 3 reply threads
  • Author
    Posts
    • #102479
      Michael Tan
      Member

      I know how to place an image in a graphics frame with data merge – that’s easy. But is there a way to embed images within a text box so that it flows with the text? For instance, I’m trying to create a text box like “Click <e-mail icon> to contact us”. Note: I want an envelope icon there instead of text. I was thinking maybe I could accomplish this with GREP but I haven’t found a trigger for inserting images within text. I suppose a workaround would be to use a third part app to create my own font that contains all the icons I need then insert that font through GREP, but I’m hoping for a native solution within InDesign.

    • #102480
      Vinny –
      Member

      Hi Michael

      Maybe you could just anchor your image in your text flow like this:
      <<text>> <<your image>> <<text2>>

      Or, just like you suggested, use a 3rd part script to create your font. IndyFont would probably be what you need here. Obviously if you have multicolors icon, that won’t work.

    • #102485
      David Blatner
      Keymaster

      I like Vinny’s IndyFont idea. Another option is to use a script that swaps images for text, such as: https://www.rorohiko.com/wordpress/2014/06/24/peoples-choice-indesign-script-pepcon-2014-replace-words-images-vice-versa/

      But the easiest method may be just to use find/change:
      https://creativepro.com/find-text-change-to-graphic.php

    • #102490
      Patricia Tan
      Participant

      Thanks for the replies. I realized shortly after I posted that <<text>> <<your image>> <<text2>> was an option. That’s the path I decided to go with. I resulted in a bit of tedium as I had to update over 150 records and some text had multiple icons so I actually had to go with <<text>> <<your image>> <<text2>> <<your image2>> <<text3>> <<your image3>> <<text4>> but it is the cleanest method in the long run…

Viewing 3 reply threads
  • You must be logged in to reply to this topic.
>