Suppress Trailing Spaces for Graphics?

99 views
Skip to first unread message

Alison Krouse

unread,
Sep 25, 2019, 12:15:33 PM9/25/19
to XMPie Interest Group
Hello everyone,

So I have a scenario where a business has a flyer where several logos can appear in a vertical row, sort of like below:

alllogos.jpg

Now, if the client, only wants the red blue and pink logo, they can just select those logos. However, I want it so that the logos will align to centre like this:

somelogos.jpg

I have put the logos into the asset folder. I have set up a different graphic content object for each logo, so the client will be able to select "Red Logo: Yes No" and then I have set up the QLingo like this:

if(|->[Red] = "yes")
{
    "Red"
}
else
{
    ""
}

I then placed all of these graphic boxes into a text box, hoping to use the "Suppress Trailing Spaces on Empty Content" feature, however that did not work and what I am left with when logos are not selected is this:

spaces.jpg


I do not want spaces in between the logos I want them all to re-align to the centre. I am at a bit of a loss at how to achieve this. Does anyone have an idea on how to achieve this function?


Thank you so much! 


eko...@gmail.com

unread,
Sep 25, 2019, 3:57:05 PM9/25/19
to XMPie Interest Group
If your logos are a fixed size you can save them at 100

eko...@gmail.com

unread,
Sep 25, 2019, 4:04:36 PM9/25/19
to XMPie Interest Group
Darn it. I hit post sooner than I wanted to... That's what I get for using my phone...

100% of size. Then copy/paste the logos into a text box and allow them to float. Then tag with XMPie and set the fitting for each of the logos to Fit Frame to Content so the hidden logos will vanish. Set your text box alignment to center vertically and turn on Suppress Trailing Spaces.

This is not the most efficient in terms of processing since the logos cannot be cached in the print file, but it will solve your puzzle. Just be sure to minimize the file size of your logos so the PDF files are faster to RIP.

ROBERT HOPFNER

unread,
Sep 25, 2019, 4:11:45 PM9/25/19
to xmpie...@googlegroups.com, Alison Krouse

Hi Allison,


Your approach was smart but it doesn't work unfortunately.


My suggestion is that you need 5 layers, Then your data should reflect your 5,4,3,2,1 image places.


You need to ask the user what they want in 


spotE (bottom +4)

spotD (bottom +3)

spotC (bottom +2)

spotB (bottom +1)

spotA (bottom)


Then you have to check for images, count them, and turn on the appropriate layer although if you make sure the data reflects null, you could do it with one layer. 


I don't think there is an easy way to translate the Red start from SpotE to SpotC if they don't want Spot D. I think you need to force the user to choose to put the logo in the spot they want it.


Getting your users to understand your orientation must start at the bottom vs. the top is counter intuitive. 


Your data would look like this


spotA spotB spotC spotD spotE

red     yel     cyan   purp   mag

null    null     red     cyan  yel

null    null    null     null    red


Then doing check on !null of each ADOR and then summation would give 5,3 and 1 and you can use those numbers in a case statement to turn on the correct layer


Your InDesign layers would be layer1, layer2, layer3, layer4 and layer5

layer1 only has spotE

layer2 has spotD and spotE

layer3 has spotC, spotD and spotE


Then your images should show up just fine... I am not working in XMPie right now but I think this is the approach I would take.



--
You received this message because you are subscribed to the Google Groups "XMPie Interest Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to xmpie-users...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/xmpie-users/69c6c3cd-4767-432d-8ffb-09219f7acf2f%40googlegroups.com.

eko...@gmail.com

unread,
Sep 25, 2019, 4:52:32 PM9/25/19
to XMPie Interest Group
When I retested the solution that I suggested above, I realized that I forgot 2 important details. 
  • You'll need to change the font size in the text box to 1pt (or less)
  • You'll need to add a dummy text ADOR with NULL or "" as the value in the text box to enable Suppress Trailing Spaces (if there are only images in the text box, XMPie doesn't offer the copyfitting options)
Feel free to use the attached CPKG file to get an idea how to accomplish the task.
I also included a PDF so you can see how it prints.
CollapsingLogos.pdf
CollapsingLogos.cpkg
Reply all
Reply to author
Forward
0 new messages