dreimer Posted January 27, 2014 Posted January 27, 2014 (edited) So basically all I want to do is merge a 1,124 page PDF onto a PDF background. Each page of the 1,124 page PDF would be the first page merged with the background PDF and page two of the template would be a static page. Is there an easy way to do this? I know I could split the 1,124 page PDF into single page PDFs and the create a data source to call in each One page PDF into a graphic box on page one of the template. Was hoping there was a quicker and easier way. TIA Edited January 27, 2014 by dreimer Quote
step Posted January 27, 2014 Posted January 27, 2014 Don, take a look at this thread. I think it sounds like what you're trying to accomplish. Quote
dreimer Posted January 27, 2014 Author Posted January 27, 2014 Tried that, I only get my page two of the background once at the end of the composed file instead of after each page one from the multi page PDF. Quote
step Posted January 27, 2014 Posted January 27, 2014 Oh I see. Maybe try repeating the record 1,124 times (the number of pages in your PDF) and then defining the page number of the PDF by the repeat record number? Like this: var pdf = CreateResource("yourPDFfile.pdf"); pdf.countPages; pdf.pagenumber = FusionPro.Composition.repeatRecordNumber; return pdf; Quote
dreimer Posted January 27, 2014 Author Posted January 27, 2014 I appreciate the help step. I have run the job after separating the PDF into individual PDFs since it needed to go today. But would like to understand your thought for future use. So would I use the same rules as the template you noted and add the above rule somewhere else? Sorry, not to good with how some of these rules work. Quote
step Posted January 27, 2014 Posted January 27, 2014 I would put the code mentioned in my previous post in a graphic rule and apply it to a graphic frame on the first page. And just add this to the OnRecordStart rule: FusionPro.Composition.repeatRecordCount = 1124; Quote
ThomasLewis Posted January 27, 2014 Posted January 27, 2014 Attached is an example of how I would approach this if I understand the issue right. Your data source would be set to "None" and you define the pages in the input record range in the composition dialog. In this sample it's 10 instead of 1,124. The only rule is in OnRecordStart although you could use a graphic rule instead and assign it to the graphic frame.insert-pages-sample.zip Quote
dreimer Posted January 28, 2014 Author Posted January 28, 2014 (edited) Thanks for the help guys. Both ideas seem to work, but run super slow. Strangely enough, it was way quicker to make 1,124 single page PDFs and a data source to call them in. Thanks again for the ideas! Edited January 28, 2014 by dreimer Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.