Skip to main content
March 22, 2012
Answered

Placing a multiple page PDF into InDesign

  • March 22, 2012
  • 35 replies
  • 636647 views

I have CS5.  I'm working on a multipage document in InDesign and I want to bring in a multipage PDF document into that InDesign document.  For some reason, when I do File>Place, it brings in the first page of the PDF (with perfect formatting) but the other pages do not come in.  Is there some other setting that I'm missing to capture all pages of the PDF to transfer into the same number of pages in my InDesign document?

Correct answer Srishti Bali

Hi all,

 

See  (https://community.adobe.com/t5/indesign/place-a-multipage-pdf-in-indesign/td-p/11343293 )  for a consolidated list of scripts and solutions to place multipage PDF in InDesign. Try the solutions and let us know if you still need assistance.  

 

Regards,

Srishti

35 replies

Participant
July 18, 2017

How do I place the pdf with format Trimbox or whatever box, can I change this in the JavaScript?

Participant
July 18, 2017

The advice about placing multiple pages at once seems sound:

"

To place multiple pages in Indesign effortlessly

Step 1: Go to file>>New>>Document, Fill in the number of pages and first page. (Do not mix up the number 

              of pages and the first page boxes). Also if you want single pages, uncheck the facing pages and   

               check the single page (make sure only one of these is checked)

Step 2: From Window (on the Tools Bar) go to Utilities>>Scripts

Step 3: In the appearing panel,Click Applications> then scripts>>then javascripts.

Step 4: Under javascripts scroll down to "placemultiplePDFpages and double-click it.,

etc.

But what if I see n scripts under Utilities>>Scripts? How do I add Javascripts and Utilities>>Scripts to InDesign?

Participant
July 18, 2017

". . . no scripts" was omitted in previous note: What if I see no scripts . . .?

Inspiring
March 31, 2017

Hi all,

I've had the same issue and have been using Zanelli's script in general which has been a lifesaver. Zanelli's script will place one PDF page per Indesign page. However I recently had a need to place a multiple paged PDF into a grid of pre-existing image frames. I want to do this sometimes when I'm putting an existing document into a "presentation" document for review. Placing PDFs is much faster than placing Indesign files by the way.

So I wrote an AppleScript that does this and I'd love to share it with you all for review. I also improved it by giving the option to place not just a multiple paged PDF into existing image frames but also a whole folder of images (which may also contain PDFs). If there aren't enough picture frames selected on the page to hold all the PDF pages or images in the folder, there is the option to let the script duplicate the original page and continue filling the boxes until all images or pages have been placed.

Try it out and let me know what you think!

Place multiple paged PDF into existing image frames – Dr Scripto

Regards,

David

ralucan94198959
Participant
March 28, 2017

Thank you soooo much !!! best explanation EVER

Participant
March 9, 2017

Works! Awesome advice GArshamA ! ©Adobe should notice your help ! I'm happy google ranked you high ! Tomer

Participant
February 21, 2017

This was AWESOME advice!!
Thank you!!
Jouna

philippanmei
Participating Frequently
September 10, 2016

This script works fine for me

//PlaceMultipagePDF.jsx

//An InDesign JavaScript

/* 

@@@BUILDINFO@@@ "PlaceMultipagePDF.jsx" 3.0.0 15 December 2009

*/

//Places all of the pages of a multi-page PDF.

//

main();

function main(){

  //Make certain that user interaction (display of dialogs, etc.) is turned on.

  app.scriptPreferences.userInteractionLevel = UserInteractionLevels.interactWithAll;

  //Display a standard Open File dialog box.

  var myPDFFile = File.openDialog("Choose a PDF File");

  if((myPDFFile != "")&&(myPDFFile != null)){

  var myDocument, myPage;

  if(app.documents.length != 0){

  var myTemp = myChooseDocument();

  myDocument = myTemp[0];

  myNewDocument = myTemp[1];

  }

  else{

  myDocument = app.documents.add();

  myNewDocument = false;

  }

  alert(myDocument.constructor.name);

  if(myNewDocument == false){

  myPage = myChoosePage(myDocument);

  }

  else{

  myPage = myDocument.pages.item(0);

  }

  myPlacePDF(myDocument, myPage, myPDFFile);

  }

}

function myChooseDocument(){

    var myDocumentNames = new Array;

    myDocumentNames.push("New Document");

    //Get the names of the documents

    for(var myDocumentCounter = 0;myDocumentCounter < app.documents.length; myDocumentCounter++){

        myDocumentNames.push(app.documents.item(myDocumentCounter).name);

    }

    var myChooseDocumentDialog = app.dialogs.add({name:"Choose a Document", canCancel:false});

    with(myChooseDocumentDialog.dialogColumns.add()){

        with(dialogRows.add()){

            with(dialogColumns.add()){

                staticTexts.add({staticLabel:"Place PDF in:"});

            }

            with(dialogColumns.add()){

                var myChooseDocumentDropdown = dropdowns.add({stringList:myDocumentNames, selectedIndex:0});

            }

        }

    }

  var myResult = myChooseDocumentDialog.show();

  if(myResult == true){

  if(myChooseDocumentDropdown.selectedIndex == 0){

  myDocument = app.documents.add();

  myNewDocument = true;

  }

  else{

  myDocument = app.documents.item(myChooseDocumentDropdown.selectedIndex-1);

  myNewDocument = false;

  }

  myChooseDocumentDialog.destroy();

  }

  else{

  myDocument = "";

  myNewDocument = "";

  myChooseDocumentDialog.destroy();

  }

    return [myDocument, myNewDocument];

}

function myChoosePage(myDocument){

  alert(myDocument.name);

    var myPageNames = new Array;

    //Get the names of the pages in the document

    for(var myCounter = 0; myCounter < myDocument.pages.length;myCounter++){

        myPageNames.push(myDocument.pages.item(myCounter).name);

    }

    var myChoosePageDialog = app.dialogs.add({name:"Choose a Page", canCancel:false});

    with(myChoosePageDialog.dialogColumns.add()){

        with(dialogRows.add()){

            with(dialogColumns.add()){

                staticTexts.add({staticLabel:"Place PDF on:"});

            }

            with(dialogColumns.add()){

                var myChoosePageDropdown = dropdowns.add({stringList:myPageNames, selectedIndex:0});

            }

        }

    }

    myChoosePageDialog.show();

    var myPage = myDocument.pages.item(myChoosePageDropdown.selectedIndex);

    myChoosePageDialog.destroy();

    return myPage;

}

function myPlacePDF(myDocument, myPage, myPDFFile){

  var myPDFPage;

  app.pdfPlacePreferences.pdfCrop = PDFCrop.cropMedia;

  var myCounter = 1;

  var myBreak = false;

  while(myBreak == false){

  if(myCounter > 1){

  myPage = myDocument.pages.add(LocationOptions.after, myPage);

  }

  app.pdfPlacePreferences.pageNumber = myCounter;

  myPDFPage = myPage.place(File(myPDFFile), [0,0])[0];

  if(myCounter == 1){

  var myFirstPage = myPDFPage.pdfAttributes.pageNumber;

  }

  else{

  if(myPDFPage.pdfAttributes.pageNumber == myFirstPage){

  myPage.remove();

  myBreak = true;

  }

  }

  myCounter = myCounter + 1;

  }

}

Participant
April 20, 2016

Hello Guys,

I've read this thread. The Zanelli's solution is quiet good for a document that have several pages, and for the user who want all this pages joined in a new indesign document and in separate pages. Furthermore, i've got a problem :

I’m under Indesign CS6. I’ve a made an indesign document called Master_file.ind composed of 50 blank pages. Each page contains 5 empty image blocs. I want to load a bunch of 500 .indd files (each file has just 1 page) in these 5 blocs in each page until all is done.
Do you know if there’s a script for that ? The Zanelli's script doesn't work for that.

Help welcome !
E’

Colin Flashman
Community Expert
Community Expert
March 26, 2016

FYI it works fine on ID version 11.3.0.34 on a mac running El Capitan 10.11.3.

I know it doesn't work on every PDF though, and the PDF that is being imported is usually to blame - anything from media boxes not set correctly, to inherent errors with the PDF when it was created (e.g. if it was created from a source other than a CC application).

If the answer wasn't in my post, perhaps it might be on my blog at colecandoo!
Participant
March 25, 2016

I'm using Indesign CC 2015 and I'm unable to load the script. Am I missing something? Does it not work with CC?

Peter Spier
Community Expert
Community Expert
March 25, 2016

Zanelli's script should work fine, as far as I know, but if there's a problem you could put it into a subfolder named "Version 7.0 Scripts" (case sensitive, but without the quotes).

aafrempong
Participating Frequently
December 10, 2015

To place multiple pages in Indesign effortlessly

Step 1: Go to file>>New>>Document, Fill in the number of pages and first page. (Do not mix up the number 

              of pages and the first page boxes). Also if you want single pages, uncheck the facing pages and   

               check the single page (make sure only one of these is checked)

Step 2: From Window (on the Tools Bar) go to Utilities>>Scripts

Step 3: In the appearing panel,Click Applications> then scripts>>then javascripts.

Step 4: Under javascripts scroll down to "placemultiplePDFpages and double-click it.

Step 5: In the appearing "choose File box" search for the pdf you want to place in Indesign and clck open.   

            You will see a message"place pdf in new document. Click OK, Followed by another OK( message

             Indesign document) and relax to enjoy watching the placement being done for you automatically. 

             You do not have even have to touch the mouse.

aafrempong
Participating Frequently
December 10, 2015

To place multiple pages in Indesign effortlessly  (Using Applescript)

Step 1: Go to file>>New>>Document, Fill in the number of pages and  Start page. (Do not mix up the number 

              of pages and the Start page boxes). Also if you want single pages, uncheck the facing pages and   

               check the Primary Test Frame (make sure only one of these is checked)

Step 2: From Window (on the Tools Bar) go to Utilities>>Scripts

Step 3: In the appearing panel,Click Applications> then scripts>>then Applescripts

Step 4: Under Applescripots scroll down to "placemultipagePDF.applescript and double-click it.

Step 5: In the appearing "choose File box" search for the pdf you want to place in Indesign and clck open.   

            You will see a message"Place pdf " Start page (enter start page and Click OK,

             Relax to enjoy watching the placement being done for you automatically. 

             You do not  even have to touch the mouse.

           About using either the applescript or javascript: The applescript produced single pages, but the javascript 

           produced facing pages, even though the same settings were selected in Step 1. There might have been   

           some computer sensitivity.

A. A. Frempong

gert verrept
Inspiring
December 10, 2015

Scott Zanelli's script is the best option. Create a new doc with at least one page in it. Run the script (see link above), fill in the right settings (where to start, offset left or right, transparent background ...) and click run. I use it to place sometime 300 pages in to a file. takes me less that one minute.