Go Back   MarcomCentral (PTI) and FusionPro User Communities > Software-Related Talk > FusionPro® VDP Creator

Notices

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old April 25th, 2022, 02:51 PM
DSweet's Avatar
DSweet DSweet is offline
Senior Contributor
 
Join Date: Sep 2008
Location: Oberlin, Ohio
Posts: 253
Default Adjusting In-Line Graphics

We have an online project for a trucking company with multiple locations that sell different brands of trucks depending on the location. They always want their logos to be as large as possible inside a given space on their stationery products. The problem is that some locations sell several brands of trucks while others sell only 1 or 2 brands (max is 9 brands). Their logos are different sizes and orientations as well but I've managed to recreate all of them to be about .25" high for line space purposes so that the max of 9 logos will fit in 1 line along the bottom edge of a notepad item like the client requests. I used an in-line string feature to place the logos across the page.

My problem is that when there is only a small number of logos needed (say 1 or 2) that height is too short and the logo looks like a smudge on the paper.

Does anyone know if the overflow->"adjust to fit" feature will compress the logos to fit within a text box.

Or is there another feature (possible newer version) that will put a string of variable logos in a text box (or graphic box) at the maximum height of the box and shrink to fit as more and more logos are added to the string without having to make the box wider to accommodate the additional logos?

I've attached a sample of a single and a multiple logo location page. The red outline shows the amount of space that I am allotted for the logos to reside. They are to be left justified to the page as shown.

.
Attached Files
File Type: pdf TruckLogos.pdf (323.6 KB, 4 views)
__________________
David A. Sweet
Variable Data Specialist
HKM Direct Market Communications
Windows 7, Acrobat 10.x
FusionPro Desktop and Server 10.0.26

Last edited by DSweet; April 25th, 2022 at 02:55 PM..
Reply With Quote
  #2  
Old April 26th, 2022, 03:54 PM
Dan Korn's Avatar
Dan Korn Dan Korn is offline
FusionPro Senior Engineer / Forum Moderator
 
Join Date: Aug 2008
Location: Chicago, IL
Posts: 4,647
Default Re: Adjusting In-Line Graphics

So, there are some improvements to copyfitting coming in a future release, which might help with a case like this.

For now, probably the simplest thing to do would be to just do a bit of math to set the width attribute of each <graphic> tag, dividing the total width of the frame by the number of graphics. That will probably work for most cases.

That said, I would approach this differently, and not use inline graphics at all. Especially since the graphics, as you say, are going into a fixed space on the page. Inline graphics are meant to be, well, inline with text, i.e. flowing with it. Yes, you're trying to kind of "flow" multiple graphics and size them as a group, but I think there's a better approach.

My idea is to use a set of graphic frames, and have some kind of logic to swap out the number and sizes of the frames based on the number of graphics to show. I can think of several different ways to accomplish this (in order from probably easiest to hardest):
  1. Have a series of 9 named graphic frames on the page, and dynamically set their sizes and hide the unneeded ones as appropriate. (Similar to the approach above with the inline graphics, but you have more control over the scaling and position of each graphic in its resized frame.)
  2. In FusionPro 11 and later, set up multiple groups of graphic frames, one group for each number of frames, all hidden, and show the appropriate one.
  3. Create a series of Repeatable Component (Template) pages, all at the size of the entire area for the graphics on the main page, with different numbers of graphic frames laid out. Then you can have a rule which selectively calls out one of those Repeatable Components based on the number of graphics.
__________________
Dan Korn
FusionPro Developer / JavaScript Guru / Forum Moderator
PTI Marketing Technologies | Printable | MarcomCentral
LinkedIn

I am a not a Support engineer, and this forum is not a substitute for Support. My participation on this forum is primarily as a fellow user (and a forum moderator). I am happy to provide help and answers to questions when I can; however, there is no guarantee that I, or anyone else on this forum, will be able to answer all questions or fix any problems. If I ask for files to clarify an issue, I might not be able to look at them personally. I am not able to answer private messages, emails, or phone calls unless they go through proper Support channels. Please direct any sales or pricing questions to your salesperson or inquiries@marcom.com.

Complex template-building questions, as well as all installation and font questions or problems, should be directed to FusionProSupport@marcom.com. Paid consulting work may be required to fulfill your template-building needs.

This is a publicly viewable forum. Please DO NOT post fonts, or other proprietary content, to this forum. Also, please DO NOT post any "live" data with real names, addresses, or any other personal, private, or confidential data.

Please include the specific versions of FusionPro, Acrobat, and your operating system in any problem reports or help requests. I recommend putting this information in your forum signature. Please also check your composition log (.msg) file for relevant error or warning messages.

Please post questions specific to the MarcomCentral Enterprise and Web-to-Print applications in the MarcomCentral forum. Click here to request access. Or contact your Business Relationship Manager (BRM/CPM) for assistance.

Please direct any questions specific to EFI's Digital StoreFront (DSF) to EFI support.

How To Ask Questions The Smart Way

The correct spellings are JavaScript, FusionPro, and MarcomCentral (each with two capital letters and no spaces). Acceptable abbreviations are JS, FP, and MC (or MCC). There is no "S" at the end of "Expression" or "Printable"! The name of the product is FusionPro, not "Fusion". "Java" is not is not the same as JavaScript.

Check out the JavaScript Guide and JavaScript Reference! FusionPro 8.0 and newer use JavaScript 1.7. Older versions use JavaScript 1.5.

return "KbwbTdsjqu!spdlt\"".replace(/./g,function(w){return String.fromCharCode(w.charCodeAt()-1)});
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -7. The time now is 11:26 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2022, Jelsoft Enterprises Ltd.
(c) 2011, PTI Marketing Technologies™, Inc.