mike-edel / ID-MultiPageImporter

Script for automating the placing (import) of PDF and InDesign files inside Adobe InDesign
119 stars 24 forks source link

Placing PDF on Even or Odds rather than All Pages. #27

Open GHDakota opened 2 years ago

GHDakota commented 2 years ago

Hello! Is there any way to have the script only apply to evens or odds rather than all pages? I need to place my PDF onto all even pages and can't figure out the code to make this happen nor a way to do such! Thanks!

mike-edel commented 2 years ago

Unfortunately no built-in way but what I usually do is split the original PDF in Acrobat. This post describes a fairly efficient method to select all even/odd pages - you just have to export them into a new PDF instead of deleting them. https://answers.acrobatusers.com/delete-multiple-pages-time-q112681.aspx

mike-edel commented 2 years ago

Alternatively, Acrobat's Organize Pages toll has an option to extract only odd/even pages: https://youtu.be/NBK5-TKChwI?t=114

GHDakota commented 2 years ago

I see - I was trying to take a PDF of about 120 pages and import it to only the evens in ID - So if you placed it on page 2 and then the import/script would then place 2,4,6,8 etc. What I did and it just took a little longer was use blanks in the PDF and then imported with your script and since the blanks show as frames I just ignored them! Thanks for the reply though I really appreciate it! I took a peak into the script to see if it was possible for me to change, but figured my way was a good bandaid!

mgmhunt commented 1 year ago

For anyone else stumbling on this - attached is a version which allows inserting every X pages, rather than all. It is not tested at all but got the job done that I needed at the time. Can't be bothered with the pull request etc as it's rushed - maybe maintainer will spend a bit of time testing and merging.

I've used it by running twice - e.g. 1st run Pages 1-10, every 2 pages, start doc page 1, top right. 2nd run Pages 2-10, every 2 pages, start doc page 2, top left. MultiPageImporter2.7.0.jsx.zip