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

Notices

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old February 1st, 2017, 07:48 PM
Naval Naval is offline
Junior Community Member
 
Join Date: Oct 2015
Location: New Zealand
Posts: 40
Default Multiple templates in one

Hi all, I have a business card project to upload to EFI Digital Storefront which has multiple possible second sides to it. Couple of reverse sides are static but couple of it is VDP where user inputs data. This there a way i can combine these into one template? Hope this makes sense.

Thanks for your help in advance.

Naval
Reply With Quote
  #2  
Old February 3rd, 2017, 09:42 AM
David Miller David Miller is offline
Senior Contributor
 
Join Date: Oct 2008
Location: Wallingford, CT
Posts: 263
Default Re: Multiple templates in one

Quote:
Originally Posted by Naval View Post
Hi all, I have a business card project to upload to EFI Digital Storefront which has multiple possible second sides to it. Couple of reverse sides are static but couple of it is VDP where user inputs data. This there a way i can combine these into one template?
Yes. Take a look at this thread:

http://forums.printable.com/showthread.php?t=575
__________________
David Miller
FusionPro VDP Creator 10.0.26
Adobe Acrobat Pro 2019.008.20074
Suitcase Fusion 20.0.0 (7653)
macOS High Sierra 10.13.6
Reply With Quote
  #3  
Old February 3rd, 2017, 09:49 AM
Dan Korn's Avatar
Dan Korn Dan Korn is offline
FusionPro Senior Engineer / Forum Moderator
 
Join Date: Aug 2008
Location: Chicago, IL
Posts: 4,322
Default Re: Multiple templates in one

Yes, in addition to turning pages on and off with the FusionPro.Composition.SetPageUsage function, in FusionPro VDP 10, with a Server or Producer license, you can also add, move and resize text and graphic frames, and resize pages. This will work for compositions submitted to EFI DSF, since it uses FusionPro VDP Server. So you basically have an unlimited ability to make the layout variable, and have one job output some records which are completely different that others.
__________________
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
  #4  
Old February 8th, 2017, 02:00 AM
Naval Naval is offline
Junior Community Member
 
Join Date: Oct 2015
Location: New Zealand
Posts: 40
Default Re: Multiple templates in one

any other possible way to do this in fusionpro version 9.2?
Reply With Quote
  #5  
Old February 8th, 2017, 09:31 AM
Dan Korn's Avatar
Dan Korn Dan Korn is offline
FusionPro Senior Engineer / Forum Moderator
 
Join Date: Aug 2008
Location: Chicago, IL
Posts: 4,322
Default Re: Multiple templates in one

Quote:
Originally Posted by Naval View Post
any other possible way to do this in fusionpro version 9.2?
Yes. You can move and resize frames with FusionPro VDP 9.2, as long as you're composing with a Server or Producer license. If you only have a Creator license, you can still turn pages on and off.
__________________
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
  #6  
Old February 12th, 2017, 11:54 AM
Naval Naval is offline
Junior Community Member
 
Join Date: Oct 2015
Location: New Zealand
Posts: 40
Default Re: Multiple templates in one

Hi Dan, I only have FP 9.3.9 creator license. I have attached a PDF can you please have a look and advice what would be the best possible way of doing this. It has options of 2 backs on the business card and both need VDP fields.

Thank you in advance
Looking forward to hear from you.

Naval
Attached Files
File Type: pdf BC-Template.pdf (20.5 KB, 6 views)
Reply With Quote
  #7  
Old February 14th, 2017, 01:31 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,322
Default Re: Multiple templates in one

Quote:
Originally Posted by Naval View Post
Hi Dan, I only have FP 9.3.9 creator license. I have attached a PDF can you please have a look and advice what would be the best possible way of doing this. It has options of 2 backs on the business card and both need VDP fields.
You have several options, two of which have all been previously described in this thread:
  1. Create and name different Body pages in the FusionPro VDP template for each version of the "back" page, and call FusionPro.Composition.SetBodyPageUsage for each one, with each page's name and true or false as appropriate for the record, in OnRecordStart (as described in more detail in the thread which David linked to, and in many other threads here on the forum.)
  2. Name the frames on the back page, then call the FindTextFrame function, and set the x and y properties of the returned frame object as appropriate, in OnRecordStart. This will work when you compose the job in DSF, which uses FusionPro Server for composition, though it won't work if you compose locally in Acrobat on your machine.
Although, based on the PDF you uploaded, it looks like the only difference between the two versions of the back page is that one has an extra frame. So you could simply name that frame, and then in OnRecordStart call the FindTextFrame function and set the suppress property on the returned object to true for the records where you don't want it to show up. For example:
Code:
// in OnRecordStart
if (<some condition to hide the frame>)
  FindTextFrame("Phone Numbers").suppress = false;
Or, you could simply set up a Formatted Text Resource which contains everything that you want to go into that frame, and then make a regular Text rule which either returns that resource or nothing, and use that rule in the frame.

There may be other ways to accomplish this as well. It's hard to make more specific suggestions without seeing the data though.
__________________
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

Tags
vdp

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:31 PM.


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