I have a template where the user may add up to 12 sponsor logos, placed on a
panel of a brochure. This will ultimately be in our P1, but I'm having
difficulty even at the desktop level.
In a nutshell, I have to dynamically build a two-column table (fine there),
where some logos may occupy a single line and be larger (also fine there),
or some may end up two to a line. I've developed a rule that builds out a
tagged table inserted into a text frame. Works great if I just output text.
The issue I'm having is that even if I set the height or width (or both) of
the graphics to smaller than the table cell (and smaller than the actual
image), I get the following on composition (and preview leaves the logos
out):
Graphic <C:\Dev\Printable\SponsorLogos\alvaraz.jpg> is wider than the frame
after line 0 and is skipped.
To keep it simple for this post, I'm leaving out a bunch of other Javascript
code (loops and settings, and this snippet only pertains to a single
two-logo row:
returnstr += '<p quad="C" cellalignment="middle"><table columns="2"
alignment="center">';
returnstr += '<column width="' + intRegularRowWidth + '"><column width="' +
intRegularRowWidth + '">';
intRegularLogoHeight = intRegularRowHeight - 100;
intRegularLogoWidth = intRegularRowWidth - 100;
returnstr += '<row type="body" height="' + intRegularRowHeight +
'"><cell><graphic file="' + Field("Sponsor1") + '" height="' +
intRegularLogoHeight + '" width="' + intRegularLogoWidth + '">';
returnstr += '<cell><graphic file="' + Field("Sponsor2") + '" height="' +
intRegularLogoHeight + '" width="' + intRegularLogoWidth + '">';
returnstr += '</table>';
return returnstr;
I know that the above code could distort the graphic image since it's not
scaled, but according to the manual, setting either the height or width is
assumed to be the long edge and it is supposed to scale. I've tried only
setting one or the other, but if the actual graphic file is larger in X or Y
dimension (yes, everything above is calculated in hundreths of points), I
get the composition error. I've also seen in the documentation that 'some
modification of the graphic may be required to achieve the desired layout.'
The problem with simply scaling the actual input images for this product is
that once this is published to the P1, the graphics will be image profile
attributes, which will be used on other products (which may have larger
available X/Y to occupy; think poster).
Oh, and this is 4.2P1d on a PC.
Thanks!
-Joe
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-
FusionPro 5.0 Now Available!
Variable text on a curve and soft drop-shadows for variable text
LIMITED TIME upgrade offer of $299 per license for current customers:
http://fusionpro.printable.com/store/upgrade
New licenses available for $599 each at:
http://fusionpro.printable.com/store/
All FusionPro 5.0 customers to receive FusionPro 5.1 with
Adobe Acrobat 8 and InDesign CS3 support when released for FREE.
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-
--
Users of FusionPro Desktop have unlimited free email support. Contact Printable
Support at [EMAIL PROTECTED]
--
View FusionPro Knowledge Base, FusionPro Samples at
www.printable.com/vdp/desktop.htm
--
You are currently subscribed to fusionpro as: [EMAIL PROTECTED]
To unsubscribe send a blank email to [EMAIL PROTECTED]
--
--
Note: All e-mail sent to or from this address will be received or otherwise
recorded by the e-mail recipients of this forum. It is subject to archival,
monitoring or review by, and/or disclosure to someone other than the recipient.
Our privacy policy is posted on www.printplanet.com
--