Data Merge and Anchored objects
Copy link to clipboard
Copied
Hello InDesign Experts,
I’m trying to produce a series of logos using the Data Merge function in InDesign. I have attached an example below to help illustrate the issues. The first issue is with having two lines of text (a Bold font line and a Regular font line). I need them to stay center to the logo regardless of how much text is loaded on each line from the .csv file. I have tried to use an Anchor Object function to push the text up. However, I can not find an option that works. The second issue is with the ability to mass adjust similar text box widths on all pages at once (all the bold lines of text or all the Regular lines of text). Can I universally change these text box size without adjusting the font size from page to page? In my case a script like Fit Text to Frame will not work because it adjusts the size of the font.
Thanks kindly, Kevin
Copy link to clipboard
Copied
For issue 1, set vertical alignment of the text frame to centered. Set it in an object style, which can solve the second issue.
Copy link to clipboard
Copied
Hi @Kevin33194884x0zc Brian's idea of using basic vertical alignment of the text frame seems to work. Also maybe using auto-size width will also help.
See my attached demo.indd document and .csv for the datamerge. I tried it with some random lines and it doesn't do too bad a job, at least as a starting point.
Or are we missing the point? If so, please clarify.
- Mark
P.S. There is further scope for a script to adjust the width based on the text, but we'd need to know much more about your actual data and other requirements to do that.
Copy link to clipboard
Copied
Thank you so much for getting back to me. I think that this method will help the problem immensely. I will test this out. Thanks
Copy link to clipboard
Copied
Might be misunderstanding the issue here
But a table would allow for resizing automatically at least vertically - seems like it would be an easy solution.
I take it all logos will be the same width, for consistency on the page(s).
Copy link to clipboard
Copied
Hi Eugene, thanks for getting back to me. I did not know that data merge will work in a table. I will look into this also.
Copy link to clipboard
Copied
You might need some sorcery in a table - sorry forgot to mention
https://creativepro.com/using-data-merge-to-create-a-table-for-a-directory/

