Go Back   PTI Marketing Technologies User Community > Software-Related Talk > The JavaScript Library > Graphic Rules


Thread Tools Search this Thread Display Modes
Old October 9th, 2017, 08:53 AM
traba5058 traba5058 is offline
Regular Contributor
Join Date: Jan 2012
Location: Atlanta, GA
Posts: 76
Default Return Multiple Graphics in 1 Graphic Box

Please help! I'm stuck again.

One of our clients has the ability to select up to 6 logos for the footer on a flyer.
The logos need to be centered in the footer, so i can't have multiple image boxes.

I need to place all images in 1 image box and have it center aligned.

I keep getting This graphic rule must return a Resource type of graphic or no error and no logos populating.

I've attached sample data.

Thanks so much to anyone that can help!
Attached Files
File Type: txt SiteOne_flyer_v5.txt (17.3 KB, 12 views)
Reply With Quote
Old October 9th, 2017, 12:41 PM
GreggRusson GreggRusson is offline
Junior Community Member
Join Date: May 2011
Location: Seattle
Posts: 33
Default Re: Return Multiple Graphics in 1 Graphic Box

One idea would be to use a textbox and write a rule using a FPTable object with 1 row and up to 6 columns (one for each logo field that's not empty). Then center the returned table...

Reply With Quote
Old October 9th, 2017, 02:09 PM
step's Avatar
step step is offline
Senior Contributor
Join Date: Jan 2010
Location: Charlotte, NC
Posts: 939
Default Re: Return Multiple Graphics in 1 Graphic Box

You should try returning an inline graphic in a text frame:
var result = '';
for (var i = 1; i <= 6; i++) {
  if (!(logo = Field("Logo " + i))) continue;
  result += CreateResource('/path/to/logos/' + logo).content;
return result;
Ste Pennell
FusionPro VDP Creator 9.3.15
Adobe Acrobat X 10.1.1
Mac OS X 10.12

Reply With Quote

graphic, multiple

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 08:17 AM.

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