Go Back   MarcomCentral (PTI) and FusionPro User Communities > Software-Related Talk > FusionPro® VDP Creator

Notices

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old January 27th, 2016, 12:17 PM
dbentley dbentley is offline
Junior Community Member
 
Join Date: May 2011
Posts: 13
Default Simple Imposition Question - I think

I have a single page 8.5 x 11 PDF file with 112 pages. (All pages are to print 1 sided.)

There is no data file associated with this job. I need to impose this PDF file 2up on a press sheet, but only 1up of each of the single pages ganging with different pages to create 2 collated stacks. (56 total print sheets)

(In other words - I need to stack the pages 1-56 on the left side of the final print sheets - and pages 57-112 on the right side of the final print sheets.)

I've attached an example of how i would like the final print sheets to look. Each number corresponds to the actual page number within the single page PDF file I have to start with.

I've been successful with imposing this when a sequence data file has been used to compose with, but I cannot seem to get anything to work without the data option.

Any help would be greatly appreciated. Thanks!

Example.pdf
__________________
Danielle Bentley
FusionPro VDP Creator 9.3.15
Adobe Acrobat X 10.1.15
Mac OS X 10.8.5
Reply With Quote
  #2  
Old January 27th, 2016, 12:40 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,320
Default Re: Simple Imposition Question - I think

Create a FusionPro template with input format None, a single blank 8.5x11" page, and a single graphic frame covering the page completely, and enter a variable name for the frame, such as "Resource Page". Then create an OnRecordStart rule with code like this:
Code:
var r = CreateResource("path and name of the PDF resource", "graphic");
FusionPro.Composition.repeatRecordCount = r.countPages;
r.pagenumber = FusionPro.Composition.repeatRecordNumber;
FusionPro.Composition.AddGraphicVariable("Resource Page", r);
Set up your imposition, and compose.
__________________
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
  #3  
Old January 27th, 2016, 01:04 PM
step's Avatar
step step is offline
Senior Contributor
 
Join Date: Jan 2010
Location: Charlotte, NC
Posts: 955
Default Re: Simple Imposition Question - I think

Quote:
Originally Posted by dbentley
I have a single page 8.5 x 11 PDF file with 112 pages. (All pages are to print 1 sided.)
How does a "single page PDF" file have 112 pages? Are you saying that you have a 112 page PDF file that you want FP to impose as if each page were a record? You can do that – you just have to make FP think that each page is a different record.

If you're wanting to turn the 112 page PDF into the template, you'll need an OnRecordStart rule that looks like this:
Code:
FusionPro.Composition.repeatRecordCount = 112;
var i = FusionPro.Composition.repeatRecordCount + 1;
while (--i)
    FusionPro.Composition.SetBodyPageUsage(i, i == FusionPro.Composition.repeatRecordNumber)
That is:
Setting the "record" to repeat 112 times (once per page in the template)
and for each repeat, it turns off every page with the exception of the current repeat number. So, for the first repeat it turns off pages 2–112, for the second repeat it turns off page 1 and pages 3–112, until it gets to page 112.
__________________
Ste Pennell
FusionPro VDP Creator 9.3.15
Adobe Acrobat X 10.1.1
Mac OS X 10.12

LinkedIn
Reply With Quote
  #4  
Old January 27th, 2016, 01:16 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,320
Default Re: Simple Imposition Question - I think

Quote:
Originally Posted by step View Post
Setting the "record" to repeat 112 times (once per page in the template)
and for each repeat, it turns off every page with the exception of the current repeat number. So, for the first repeat it turns off pages 2–112, for the second repeat it turns off page 1 and pages 3–112, until it gets to page 112.
I think that would work, but it would be a lot slower than using a one-page template as I suggested.
__________________
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
  #5  
Old January 27th, 2016, 01:31 PM
dbentley dbentley is offline
Junior Community Member
 
Join Date: May 2011
Posts: 13
Default Re: Simple Imposition Question - I think

Dan -

Thanks for the response. I'm giving yours a try - although we work on Mac's off of a secure server and trying to get a path to the actual graphic file is giving me more trouble than I planned. I thought I had the path correct, and the rule validates ok - but when I compose the final file - Fusion Pro shuts down.

Is there a way to use this rule as an uploaded graphic resource file instead?
__________________
Danielle Bentley
FusionPro VDP Creator 9.3.15
Adobe Acrobat X 10.1.15
Mac OS X 10.8.5
Reply With Quote
  #6  
Old January 27th, 2016, 01:35 PM
dbentley dbentley is offline
Junior Community Member
 
Join Date: May 2011
Posts: 13
Smile Re: Simple Imposition Question - I think

Quote:
Originally Posted by step View Post
How does a "single page PDF" file have 112 pages? Are you saying that you have a 112 page PDF file that you want FP to impose as if each page were a record? You can do that – you just have to make FP think that each page is a different record.
Step-
Yes, that is what I meant regarding the "single page PDF file". We generally refer PDF files into either "single page" vs "imposed page" PDF formats - sorry for the confusion.

Thanks for the help. I'll try both Dan's suggestion and yours as well to see which option works best!
__________________
Danielle Bentley
FusionPro VDP Creator 9.3.15
Adobe Acrobat X 10.1.15
Mac OS X 10.8.5
Reply With Quote
  #7  
Old January 27th, 2016, 01:58 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,320
Default Re: Simple Imposition Question - I think

Quote:
Originally Posted by dbentley View Post
Thanks for the response. I'm giving yours a try - although we work on Mac's off of a secure server and trying to get a path to the actual graphic file is giving me more trouble than I planned. I thought I had the path correct, and the rule validates ok - but when I compose the final file - Fusion Pro shuts down.
What do you mean by "shuts down?" Does it crash? If so, is there a crash report? Or is there an error code?
Quote:
Originally Posted by dbentley View Post
Is there a way to use this rule as an uploaded graphic resource file instead?
Sure, just add a named resource and call it out with the Resource function instead:
Code:
var r = Resource("your resource name here");
FusionPro.Composition.repeatRecordCount = r.countPages;
r.pagenumber = FusionPro.Composition.repeatRecordNumber;
FusionPro.Composition.AddGraphicVariable("Resource Page", r);
__________________
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
  #8  
Old February 25th, 2016, 09:46 AM
dbentley dbentley is offline
Junior Community Member
 
Join Date: May 2011
Posts: 13
Default Re: Simple Imposition Question - I think

Apologies for the delay in getting back to you...

I was able to get Step's rule to work for what I needed to accomplish, but I am still unable to get Dan's to compose without FP crashing.

We now are needing to have versions of these run as 2 sided with a common back for each page - which i would think would be easier to accomplish using Dan's method, but I am still struggling accomplishing his one sided method.

I've attached the working files that I am using, Dan. Could you take a look? I've included the error (crash) messages that I receive when trying to compose.

The additional file included in the Support_Files folder named "dummy.pdf" is what I need to incorporate as the common back for our 2 sided pieces.

Let me know if you have any suggestions.
Thanks tons!!
Danielle
Attached Files
File Type: zip Test_Files.zip (3.47 MB, 7 views)
File Type: email 1upImpoXX_220.fpi (1.7 KB, 3 views)
__________________
Danielle Bentley
FusionPro VDP Creator 9.3.15
Adobe Acrobat X 10.1.15
Mac OS X 10.8.5

Last edited by dbentley; February 25th, 2016 at 11:05 AM.. Reason: added impo file
Reply With Quote
  #9  
Old February 25th, 2016, 11:40 AM
step's Avatar
step step is offline
Senior Contributor
 
Join Date: Jan 2010
Location: Charlotte, NC
Posts: 955
Default Re: Simple Imposition Question - I think

I think the reason your template is failing is because your code is creating a variable named "Resource Page" but you aren't assigning it to the graphic frame. You either need to type "Resource Page" in the graphic frame property window where it currently says "[Field of Rule]" or change Dan's code to this:
Code:
var r = Resource("Kafka on the Shore signature pages.pdf");
FusionPro.Composition.repeatRecordCount = r.countPages;
r.pagenumber = FusionPro.Composition.repeatRecordNumber;
FindGraphicFrame("ResourcePage").SetGraphic(r);
Quote:
Originally Posted by dbentley View Post
We now are needing to have versions of these run as 2 sided with a common back for each page - which i would think would be easier to accomplish using Dan's method, but I am still struggling accomplishing his one sided method.

The additional file included in the Support_Files folder named "dummy.pdf" is what I need to incorporate as the common back for our 2 sided pieces.
You could duplicate the first page in your template creating a second page that you toggle on/off from OnRecordStart depending on when you want to duplex. Then you'd just change the variable on the second page's frame from "Resource Page" to "Back Page" and your code would look like this:
Code:
var duplex = true; // false for 1 sided

var r = Resource("Kafka on the Shore signature pages.pdf");
FusionPro.Composition.repeatRecordCount = r.countPages;
r.pagenumber = FusionPro.Composition.repeatRecordNumber;
FusionPro.Composition.AddGraphicVariable("Resource Page", r);


FusionPro.Composition.AddGraphicVariable("Back Page", Resource("dummy.pdf"));
FusionPro.Composition.SetBodyPageUsage(2, duplex);
Alternatively, your template could remain unchanged and you could repeat each page twice (once for the front and once for the back) pulling in the "dummy" resource for even repeats:
Code:
var r = Resource("Kafka on the Shore signature pages.pdf");
FusionPro.Composition.repeatRecordCount = r.countPages * 2;

var rep = FusionPro.Composition.repeatRecordNumber;

if (rep % 2) 
    r.pagenumber = Round(rep/2,0);
else
    r = Resource("dummy.pdf");

FusionPro.Composition.AddGraphicVariable("Resource Page", r);
__________________
Ste Pennell
FusionPro VDP Creator 9.3.15
Adobe Acrobat X 10.1.1
Mac OS X 10.12

LinkedIn
Reply With Quote
  #10  
Old July 20th, 2017, 12:26 PM
DSweet's Avatar
DSweet DSweet is offline
Senior Contributor
 
Join Date: Sep 2008
Location: Oberlin, Ohio
Posts: 240
Default Re: Simple Imposition Question - I think

I would like to chime in and make this a "not so simple imposition question". I've set up my template as described above with a single page and a GraphicBox on it and placed this coding in OnRecordStart
Code:
var imgPath = ".\\Variable Artwork\\"
var imgName = Trim(Field("fileName"));
var r = new FusionProResource(imgPath + imgName, "graphic", true);

FusionPro.Composition.repeatRecordCount = r.countPages;
r.pagenumber = FusionPro.Composition.repeatRecordNumber;
FindGraphicFrame("ResourcePage").SetGraphic(r);
I'm reading in a simple data file that just contains the name of the file that I want to impose so I don't have to keep hard-coding this each time. However I would like to be able to do more than one file at a time. If I have 5 different files that need to be imposed I want the output to be five different files imposed 2-up.

The above coding works when I simply compose each record at a time ... but ... when I try to encode all 5 records while using the "output to multiple files" feature and set it to "1" to process each record separately, the resulting output is all five pdf files concatenated together and THEN imposed into one large 2-up file according to THAT page count. I was expecting to get 5 files named "Output_1.pdf, ... , Output_5.pdf" with each one being imposed 2-up according to their individual page lengths.

I was wondering why the multiple file functionality doesn't work for this? I've used it before set to 1 on a number of business card templates to process individual card proof files for large lists of sales people. Is there another line of coding that is needed?
.
__________________
David A. Sweet
Variable Data Specialist
HKM Direct Market Communications
Windows 7, Acrobat 10.x
FusionPro Desktop and Server 10.0.26
Reply With Quote
Reply

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:10 AM.


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