Back

If your email is not recognized and you believe it should be, please contact us.

  • You must be logged in to reply to this topic.Login

Assigning InDesign properties on anchored objects when importing XML

Return to Member Forum

  • Author
    Posts
    • #103114
      Tonua Carano
      Member

      I’m developing XML for import into InDesign for page layout and styling. Are there attributes that can be used in the XML to automatically assign properties on anchored objects such as tables and images.

      For example, by default, images come in as inline and, if they are big enough, will overwrite the text in the lines preceding the insertion point of the graphic. I want to be able to automatically set graphics to ‘Above Line’ (treated as a block object) instead of ‘Inline’.

      Likewise, some of my tables span both columns in a 2-column document. When this occurs, I’d like to treat these tables as an anchored object that is aligned with the left side of the page and also are set to ‘Above Line’ to ensure surrounding text avoids the table.

      Is this possible at all? Or does this have to be handled manually with placeholders in the template or by adjusting the tables and graphics after the import? Neither of these is an option for us due to the number of different documents we need to import, the number of pages in each document, and the volume of images and tables in each document. We really need to find an automated solution for this, but I cannot find information on this topic anywhere.

    • #103136

      As far as I know, this is not possible during the import.But you can after placing your file on the page loop through you contents and set those properties with scripting. In this case, the different length of images and tables in your docs doesn’t matter.

      • #103167
        Tonua Carano
        Member

        Thank you, Kai. That is helpful information. I didn’t think about scripting.

    • #103257

      Hi Tonua,
      automate this situation is exactly what my company does, it’s not possible without a kind of programming language.
      We build the dynamic template and the scripts that make the necessary tasks after the import.
      Let me know if you are interested to go deeper.

Viewing 2 reply threads
  • The forum ‘General InDesign Topics (CLOSED)’ is closed to new topics and replies.
Forum Ads