Go Back   MarcomCentral (PTI) and FusionPro User Communities > Software-Related Talk > The JavaScript Library


Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
Old October 25th, 2019, 10:36 AM
Christian Johnson Christian Johnson is offline
Forum n00b
Join Date: Mar 2017
Location: Grand Junction, CO
Posts: 7
Default Connecting graphic frames

I'm trying to create a rule that allows a customer to upload a 2 page PDF and have the second page of the uploaded PDF flow to the second page of my template. I've been in constant contact with support on this and seem to hit a wall.

My Rule:

var pathName = "..\\RESOURCES\\";
var FullResourcePath = pathName + "<graphic file=" + Field("Cover") + ".pdf">;
var x = new FusionProResource(FullResourcePath, "graphic", 1);
if (!x.exists)
ReportError("Graphic not found: " + FullResourcePath);
var pdfString = '';
for (var pgnbr = 1; pgnbr <= x.countPages; pgnbr++)
x.pagenumber = pgnbr;
pdfString += x.value + '<p>\n';
Print("Result is: " + pdfString);
return pdfString;

Please note on this rule I do get a syntax error

Any help on this is greatly appreciated.
FusionPro VDP Creater v11.0.9
Acrobat DC
Reply With Quote

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 05:26 PM.

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