Jump to content

Recommended Posts

Posted (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 by dreimer
Posted
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.
Posted

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;

Posted
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.
Posted

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;

Posted

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

Posted (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 by dreimer

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...