cancel
Showing results for 
Search instead for 
Did you mean: 
New Member
New Member

Insert before 1st page of a certain size only?

Hello,

I have documents that contain a page range of 8.5 X 11 sheets, then a page range of 11X 17, then back to 8.5 X 11. I am trying to insert a blank 8.5 X 11 only before the first 11X17 so when I split by page size there is an insert in the 8.5X11 section to show production where to manually insert the 11X17s after printing. I have tried multiple ways, but cannot seem to have it work.

Thank you,

Scott

0 Kudos
7 Replies
FreeFlow Production Workflow Moderator
FreeFlow Production Workflow Moderator

Re: Insert before 1st page of a certain size only?

This should work:

 

size.png

0 Kudos
New Member
New Member

Re: Insert before 1st page of a certain size only?

Thank you for the reply, however, that will put a slip sheet before each 11 X 17, not just the first one.

0 Kudos
FreeFlow Production Workflow Moderator
FreeFlow Production Workflow Moderator

Re: Insert before 1st page of a certain size only?

Can you add a bookmark to the first 11X17 page? The insert could be based on the bookmark content.

0 Kudos
New Member
New Member

Re: Insert before 1st page of a certain size only?

Currently all of the files we receive from this client are bookmarked. The bookmarks which take place on the 11X17 pages are always named something different. I have tried this method already. I appreciate the quick reply!

There really should be a choice in Core where you can put an n amount of inserts before or after the first page of X size or before or after the last page of X size.

0 Kudos
FreeFlow Production Workflow Moderator
FreeFlow Production Workflow Moderator

Re: Insert before 1st page of a certain size only?

Try this script in an External Process. Upload batch file and Python script to the FreeFlow Core Scripts folder. In the External Process point to the batch file using the default parameters "$FFin$" "$FFout$". Python has to be installed along with PyPDF2 (pip install PyPDF2). You may need to change the paths in the batch file to Python and the FreeFlow Core Scripts folder.

The Python script will check the MediaBox of all the pages in a pdf. If the next page is larger than the current page, then a page will be added. You need to change the path in this row in the Python script to where that page is:

blank = PdfFileReader('C:/Temp/blank.pdf')

The script also assumes there is a C:/Temp/ folder.

Stefan

 

New Member
New Member

Re: Insert before 1st page of a certain size only?

Thank you for this, I will give it a test!

0 Kudos
New Member
New Member

Re: Insert before 1st page of a certain size only?

That did it Stefan. Much appreciated!

0 Kudos