MarcomCentral (PTI) and FusionPro User Communities

MarcomCentral (PTI) and FusionPro User Communities (http://forums.pti.com/index.php)
-   Getting Started (http://forums.pti.com/forumdisplay.php?f=18)
-   -   Replacing both pages of a document based on a database field (http://forums.pti.com/showthread.php?t=5345)

Shuman May 2nd, 2019 12:48 PM

Replacing both pages of a document based on a database field
 
I have a single mail file with four 2 sided PDF Postcards. I need both sides of the file to change based on a filed in the CSV.

If Field = Bel Aire then the Bel Aire.PDF file is used for both sides of the document. How would I do that in Fusion? I've done single sided changes with image swapping but, not a two sided document.

Thanks

Dan Korn May 2nd, 2019 04:47 PM

Re: Replacing both pages of a document based on a database field
 
Presumably you have a graphic frame at the back of each of the two pages of your template (sides of the postcards), and a graphic rule for the front page frame which looks something like this:
Code:

return CreateResource(Field("YourCSVFieldNameHere"));
Where the field value is the name of a graphic file.

So you need to modify that rule slightly to get the second page of the graphic, something like this:
Code:

var r = CreateResource(Field("YourCSVFieldNameHere"));
r.pagenumber = 2;
return r;


Shuman May 3rd, 2019 08:03 AM

Re: Replacing both pages of a document based on a database field
 
Thanks Dan!

We did this once before with a letter and I Created a blank PDF with an image box and swapped the background as needed but, that was a single sided document. We are coming from PrintShop Mail so, everything is a different workflow with Fusion. Overall it's going well though.

Dan Korn May 3rd, 2019 10:09 AM

Re: Replacing both pages of a document based on a database field
 
Quote:

Originally Posted by Shuman (Post 21869)
We did this once before with a letter and I Created a blank PDF with an image box and swapped the background as needed but, that was a single sided document. We are coming from PrintShop Mail so, everything is a different workflow with Fusion. Overall it's going well though.

Glad to hear it. Any other comments you have regarding how FusionPro works compared to other products are welcome, as they can help us improve it.


All times are GMT -7. The time now is 07:36 AM.

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