Place all pages in pdf into indesign

I want to place all pages in a pdf file into indesign, I mean need to load all pages in a pdf in single place method and place every pages individually on iterating through pages in indesign.
Note: Manually this can be done by enable "Show import option",which opens preference window in which we can prefer to ALL option under PAGES menu under GENERAL tab while preforming Place pdf.

You are finding PlaceMultipagePDF.jsx script and here is it for you
//PlaceMultipagePDF.jsx
//An InDesign CS3 JavaScript
//Places all of the pages of a multi-page PDF.
//For more on InDesign scripting, go to http://www.adobe.com/products/indesign/xml_scripting.html
//or visit the InDesign Scripting User to User forum at http://www.adobeforums.com
//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){
        myDocument, myNewDocument = myChooseDocument();
    else{
          myDocument = app.documents.add();
          myNewDocument = false;
    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});
     myChooseDocumentDialog.show();
    if(myChooseDocumentDropdown.selectedIndex == 0){
        myDocument = app.documents.add();
        myNewDocument = true;
    else{
         myDocument = app.documents.item(myChooseDocumentDropdown.selectedIndex-1);
        myNewDocument = false;
    myChooseDocumentDialog.destroy();
    return myDocument, myNewDocument;
function myChoosePage(myDocument){
    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;
Shonky

Similar Messages

  • Place pdf into InDesign CS4 js

    Hi, I have those lines of script that place the pdf into InDesign, but in the process new frame gets created in which the pdf is placed, and I need it to be placed into my existing frame. How could I do it:
        var myRectangle = myDoc.pages[0].rectangles[0];   
        myPage = myDoc.pages[0];
        myPDFPage = myPage.place(File(myFile), [0,0])[0];
    Thank you very much for your help.
    Yulia

    Yes, you are right, I am stuck for a different reason, it does places the second page.
    What I think is going on,  and maybe there is a better approach to it than the one I am going about it: when I have single page pdf for the 1st page and single page pdf for the 2nd page, my script first tries to upload 1st pdf as multi-page just in case there is only one pdf with both files. And for some reason it uploads single page pdf twice (into the second InDesign page as well when there is no second page in the 1st pdf [If I could avoid that all together would be great]). So my script verifies if the pdf uploaded into the 2nd page is 1st page of 1st pdf then it deletes it. And then it looks if there is a file for the second page, and uploads it. So my new challenge is that when it verifies what page of the pdf is uploaded into the 2nd page of InDesign after the 1st pdf upload, it just crashes, and it worked with the previous way of placing pdfs (the green line of the script).
    The second my issue is that, as it places the files, it dis-attaches the frames from the master page, and I need them to be still half attached. For the same reason new frames created by place command - is a problem for me. Maybe easier way, if it's possible at all, half-attach those new frames to the Master page afterwords. (This is the main goal for me).
    Here are both functions: to upload first pdf and second pdf:
    function myPlacePDF(myDoc, myFile){
        app.pdfPlacePreferences.pdfCrop = PDFCrop.cropMedia;
        // page 1
        myPage = myDoc.pages[0];
        var myRectangle = myDoc.pages[0].rectangles[0];   
        app.pdfPlacePreferences.pageNumber = 1;
        myRectangle.place(myFile);
        //PDF.place (myFile);
        //myPDFPage = myPage.place(File(myFile), [0,0])[0];
        myRectangle.geometricBounds = [0, 0, myGB_Y2, myGB_X2];
        // page 2
        myPage = myDoc.pages[1];
        var myRectangle = myDoc.pages[1].rectangles[0];
        app.pdfPlacePreferences.pageNumber = 2;
        myPDFPage = myRectangle.place(myFile);
        //PDF.place (myFile);
        //myPDFPage = myPage.place(File(myFile), [0,0])[0];
        myRectangle.geometricBounds = [0, 0, myGB_Y2, myGB_X2];
        if (myPDFPage.pdfAttributes.pageNumber != 2){
            myPDFPage.parent.remove();
        try{
            var myFrame = myDoc.pages[0].rectangles[1];
            if (myFrame.isValid == true){
                myFrame.remove();
        catch (e){}
        try{
            var myFrame = myDoc.pages[1].rectangles[1];
            if (myFrame.isValid == true){
                myFrame.remove();
        catch (e){}
        app.pdfPlacePreferences.pageNumber = 1;
    function myPlacePDFback(myDoc, myFile){
        var myFrame= myDoc.pages[1].rectangles.[0];
        if (myFrame.isValid == false){
            myDoc.pages[1].rectangles.add();
            myFrame.strokeWeight = 0;
            myFrame.geometricBounds = [0, 0, myGB_Y2, myGB_X2];
        app.pdfPlacePreferences.pdfCrop = PDFCrop.cropMedia;
        myPage = myDoc.pages[1];
        var myRectangle = myDoc.pages[1].rectangles[0];
        app.pdfPlacePreferences.pageNumber = 2;
        myRectangle.place(myFile);
        //myPDFPage = myPage.place(File(myFile), [0,0])[0];
        app.pdfPlacePreferences.pageNumber = 1;
    Kasyan, your script might be helpful, and I would like to look into it.
    Thank you very much for your help.
    Yulia

  • How do I import a .PDF into inDesign?

    How do I import a .PDF into inDesign? Does anybody know how? I need to edit a book in inDesign that is a .PDF. So if anyone know how to do that please tell me.

    Bob, Peter, grmg, many thanks for your very helpful comments.  Delighted mac/pc not relevant.  Will scratch that from list of herrings to chase.
    Re PDFs - actually, I'm working in Acrobat (not just a finalized PDF), and Acrobat does of course allow editing of a sort; I'd concluded that since Adobe is willing to tolerate that degree of editing with its product, it should therefore tolerate moving its native format (*.pdf) into another of its own native formats (*.indd). I see that's a misconception.
    This morning I tried all flavors I could find of getting my Acrobatted content into ID3, including copy/paste, place, and import (from the ID side); none was satisfactory.  Output from Acrobat to Word and then placing Word was fine for English but destroyed the Greek - not just wrong font, but complete gobbledygook and loss of all diacriticals.  Names of fonts don't matter for my purposes; the legibility of the English, and the legibility and tonic accuracy of the Greek do matter. Author of this project is not tech-savvy and is using old Greek system as well; nothing he or i can do to fix that.
    Current plan is to request author to provide me his native files, which will be Mac files.  Am I understanding the Import dialog and your collecitve comments to suggest that with that file resident on my PC (and unopened), I can use the Place dialog, with "Show Options" selected, to get the Mac file into ID?
    Chapeaux to those of you with constructive comments - hugely appreciated.
    YC

  • Acrobat 5 - Placing PDF into inDesign and Output to Colour Separations are Wrong

    Acrobat 5 - Placing PDF into inDesign and Output to Colour Separations are Wrong
    I have a 2 Page PDF file from my client which I have to have setup 2UP on 450x320 for Metal Plates for the Press.
    I setup my page size in inDesign and Placed each page from the PDF file into the inDesign Document.
    Because I need 4 Metal plates (CMYK) I had to check the Colour Seperations for the file by outputting it to a Postscript file with CMYK SEPS and then using Adobe Distiller to turn it into a PDF file for me to view the Seperations.
    As I've shown in the screen shot below. The CYAN plate has boxes all around the images in the PDF file which will come out on a Metal Plate.
    Compared to the Colour version of the Client's PDF they supplied me, there is no boxes around the images.
    I know this is a error with dropping a PDF file into inDesign, outputting to a PS file and then Distilling it to the SEPS. I've had the same problem when I've opened a PDF file that has been distilled in Illustrator and the Artwork is sliced into pieces and uneditable.
    Has anyone else found this problem and if so is there a workaround?
    I'm using Adobe inDesign CS and Adobe Acrobat Professional Version 5.

    Im facing a similar kind of problem. I want to store and retrieve Office files, PDF and Jpegs into/from the database to view them on web in disconnected mode. Please reply as I cant find any help/documentation regarding saving BLOB data into files. I was able to store file data into BLOB, using DBMS_LOB package.
    Shahzad

  • 3D PDF into InDesign

    I am trying to place a 3D PDF into Indesign but it just comes up as "Enable 3D view" What does that mean and what do I need to do differently?

    InDesign's implementation of the PDFLib engine doesn't support 3D annotations or scripting.

  • Cannot place files from Bridge CC into Indesign CC 2014. No option for anything except Photoshop.

    I can no longer place files from Bridge CC into Indesign CC 2014. No option for anything except Photoshop.

    I can no longer place files from Bridge CC into Indesign CC 2014. No option for anything except Photoshop.

  • Make Data Merge import certain page of pdf or indesign document

    I don't know if it is possible but can you make Data Merge import certain page of pdf or indesign document, this would be great addition for indesign

    Here are a couple of questions that might help understand what might need to be done to achieve your request:
    * How do you propose to identify the desired page(s) within a PDF and an ID document, so the merge field placeholder knows how to find it?
    * How do you propose to keep track of the page if they're re-ordered in an updated document?
    * What if the identification marker is within text and flows to a different page - would you want to retrieve the original page (before the reflow) or the new page to which the marker would have flowed?
    Perhaps the scripters could comment on the possibility of scripting these.
    Regards,
    Peter
    Peter Gold
    KnowHow ProServices
    aybekDes wrote:
    I don't know if it is possible but can you make Data Merge import certain page of pdf or indesign document, this would be great addition for indesign

  • Fireworks CS6 export all pages as PDF crash

    I cannot for the life of me Export all pages as pdf from FW CS6 on my Mac. All software is fully up-to-date. I have many times Exported scucessfully before, but now the same file is no longer exportable. I'm going crazy. The source PNG file is a 15 MB file of 68 pages, it is filled with hotspots that should export an interactive PDF. (I deleted all of the "unused library symbols" (even though that deletes symbols that are actually in use)). My Mac is a PowerMac 8GB RAM... I can't remeber the processor setup... I can tell you later when I'm at work...
    I have been using FW since late 90s. FW crashes a dozen or more times a day these days. I'm tired of fighting it. Adobe has frankly been woeful in updating FW (on the Mac at least). It is an excellent product... but at best an unfinished product. I've sent bug reports through official channels for years and every year Adobe fails to fix them. It is quite shocking really.
    I hope I can get a quick answer, or else my job will become much more difficult.

    Here's a partial Crash output, let me know if more would help:
    Process:         Adobe Fireworks CS6 [5239]
    Path:            /Applications/Adobe Fireworks CS6/Adobe Fireworks CS6.app/Contents/MacOS/Adobe Fireworks CS6
    Identifier:      com.macromedia.fireworks
    Version:         Adobe Fireworks CS6 version 12.0.0.236 (12.0.0)
    Code Type:       X86 (Native)
    Parent Process:  launchd [163]
    User ID:         502
    Date/Time:       2013-02-05 17:33:03.564 -0500
    OS Version:      Mac OS X 10.8.2 (12C60)
    Report Version:  10
    Interval Since Last Report:          95268 sec
    Crashes Since Last Report:           72
    Per-App Interval Since Last Report:  84851 sec
    Per-App Crashes Since Last Report:   17
    Anonymous UUID:                      EDC2114F-8AD4-DC55-0A2A-EC60302FB1F0
    Crashed Thread:  0  Dispatch queue: com.apple.main-thread
    Exception Type:  EXC_CRASH (SIGABRT)
    Exception Codes: 0x0000000000000000, 0x0000000000000000
    Application Specific Information:
    abort() called
    Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
    0   libsystem_kernel.dylib                  0x9856fa6a __pthread_kill + 10
    1   libsystem_c.dylib                       0x935caacf pthread_kill + 101

  • Placing a multiple page PDF into InDesign

    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?

    GArshamA wrote:
    [...]   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?
    No, there is no such option. Steve's suggestion does pop up a dialog so you can select page 2, page 3, etc. -- and even "all" -- but InDesign does not create the pages for you, as it does with text.
    Use Scott Zanelli's script for this: http://indesignsecrets.com/zanelli-releases-multipageimporter-for-importing-both-pdf-and-i ndd-files.php

  • How do you Place rtf files from LibreOffice into InDesign CS6

    I am new to InDesign CS6. I am having a problem Placing LibreOffice rtf files into InDesign.
    I am using LibreOffice 4.3.2.2, Lotus WordPro, and Windows 7. I am saving my work in rtf files. Each page has two columns.
    Placing rtf files from WordPro into InDesign works with no problems, but - I wonder just how long WordPro will continue to work with Windows 7 so I would like to switch to LibreOffice.
    When I Place a rtf file that has two columns from LibreOffice into InDesign, I get a loaded text cursor, but nothing loads. I can take this same file, remove the columns so there is only one column, and it loads just as it should. Further, if I load the one column file into a Master set up for two columns, the file loads into two columns with all the proper formating.
    Please guide me in how to Place the LibreOffice two column rtf files into InDesign.
      Thanks.
      Carole

    Thanks to everyone who read about my problem. I have solved it myself by using "RTF Import Options."
    Carole

  • Problem Importing a PDF into Indesign CC

    We don't usually have this problem with InDesign CC, but this came at a very bad time and I'm not sure if it is a bug in InDesign CC or not. We were given a PDF from an auditor of a client to bring into their financial report. The strange thing is that we were only able to bring in pages on left pages, any page that was brought in on the right hand page did not show. In fact, if we copied a page that showed up on the left page and moved it to the right page, it would not show it.
    Fortunately we still have CS6 and we were able to place the same PDF with no problem. So we had to save the document into a CS6 format and then insert the PDF.
    I don't know what would have caused this, but we haven't had problems with other PDFs. It seems that there was something about that PDF that InDesign CC didn't like (but that CS6 was able to handle).
    Any ideas?

    I think we'd need to see samples from the actual .indd and PDF files to give you any real answers.

  • Importing PDF into Indesign

    Is it possible to import PDf documents into the current version of Adobe Indesign ? I am currently testing the software and was wondering if it would be possible to import around 50 of my already published PDF docs to work on it and redesign it with Indesign ?
    Thank you in advance.

    Hi @plummerdesign and @MasterStudios - indeed, it is a crying shame our website does not work in IE and they are looking into this. Thank you. We do not have a demo for several reasons and can understand your point. We do have numerous forms of detailed video demsontrations on PDF to InDesign via PDF2DTP here and we have some awesome testiominals from graphic arts industry experts, Frank Romano, Michael Jahn, Joe Marin and more (click on the hyper links on their names to view what they say about PDF2DTP).
    One of many customer quotes we have include this:
    "Really pleased to have this product [PDF2DTP for InDesign].  The Beta version was really good and saved me loads of hassle with amends to pdfs."
    Graham Bell - http://www.absolutegraphics.co.uk
    Another quote is:
    “We have a lot of PDFs from „Word“ ;-) Before PDF2DTP, we used PitStop for the corrections, now we can do it better! As a recent example, we had come in an advert in PDF for a meeting. The ad was in RGB, Fonts not included, the trim and bleed were not correct, etc. I open it with the PDF2DTP plugin and it works very nice. A little bit of touching-up work on the pictures and the colours, but not much… Thanks for the app!”
    Dirk Rosenplänter
    Blueprint Werbeagentur e.K.
    Hopefully this helps you see how useful and yet still affordable PDF2DTP for InDesign is. It is truly a gem, especially when all you have left is the said PDF! Thank you for the feedback and we will strive to better that side of it, for sure.

  • Opening a PDF into InDesign.

    Hello, I'm new to InDesign and need help importing an existing PDF to modify. I tried following the instructions here: http://bim.wikispaces.com/file/view/How+to+Import+and+Edit+PDFs+in+Adobe+InDesign.pdf , but do not have the option of opening from "Place" -- The Place option in in gray still.
    Help?

    File > Place... is not available?
    And you do understand that you cannot change the content of the PDF inside InDesign, right? You can scale or crop, but nothing else with a placed PDF.

  • CS3 and Delphi: Place pdf into indesign

    Hello,
    I am developing a script with Deplhi  that automates the creation of documents.
    I would like to be able to place pdf documents in an InDesign document. I adapted a script that I found in this thread: http://forums.adobe.com/message/3013174
    I only had to define the proper types for the variables, cause Delphi doesn't allow untyped variables. There was one line in particular that I had to modify thoroughly:
    myPDFPage = myPage.place(File(myPDFFile), [0,0])[0];
    The PlacePoint parameter had to be an array of double, and the missing parameters had to be set. Eventually, the following code worked:
    var
      APoint:      array of double;
    begin
      SetLength(APoint, 2);
      APoint[0] := 0;
      APoint[1] := 0;
      myPage.place(Filename, APoint, ActiveDocument.Layers[1], false, false);
    In the original script, the result of the place function is assigned to the variable myPDFPage, and I am having troubles to get this assigment working. Often the TypeLib uses OleVariants and you have to figure out by ourself which type(s) are allowed and have to be used, and which type cast(s).
    In the original script this code follows:
    myFirstPage = myPDFPage.pdfAttributes.pageNumber;
    The only interfaces in the TypeLib that have a property called pdfAttributes are PDF and ImportedPage. But neither of those types work if I define pdfAttributes to be of that type. I am not sure whether the fact that place seems to return an array adds additional problems. Most of the times, arrays from in TypeLib are based in the index 1, not zero.
    But I tried
    var
      APoint:      array of double;
      myPDFPage:   PDF;
    begin
      myPDFPage := PDF(myPage.place(Filename, APoint, ActiveDocument.Layers[1], false, false)[0]);
    and
    var
      APoint:      array of double;
      myPDFPage:   ImportedPage;
    begin
      myPDFPage := ImportedPage(myPage.place(Filename, APoint, ActiveDocument.Layers[1], false, false)[0]);
    and the same with and array index of 1 instead of 0, and without any index. But none of it would be compiled without an error.
    Doies anybody know how that command line has to be or which type myPDFPage has to have?
    And more generally: How could I determine the possibla types of a parameter, variable or return type that is an OleVariant in the TypeLib?
    I found some InDesign CS3 scripting specific pdfs here: http://www.adobe.com/products/indesign/scripting/, but no complete reference of all functions and types.
    Best regards,
    Christian Kirchhoff

    In order to make the code compilable, I had to do a double typecast. The result of the place function - in the Typelib - is OleVariant, and I couldn't use the snytax place(...)[0]; directly.
    So I declared a variable myPDFPages as an array of PDF, and assigned the entiry result of the place function to that.
    The new code is:
    var
      APoint:      array of double;
      myPDFPages:  array of PDF;
      myPDFPage:   PDF;
    begin
      myPDFPages := myPage.place(Filename, APoint, ActiveDocument.Layers[1], false, false);
      myPDFPage := PDF(myPDFPages[0]);
    But: allthough the code compiles, the line myPDFPages :=... throws an error (after the pdf is inserted in InDesign).
    If I just use execute the place command without assingning the result to anything, it works without an error. But the code I copied from the aforementioned forum thread uses the result, and so want I.
    I'll do some further testing on this.
    Best regards
    Christian

  • Converting .pdf into InDesign CS6 editable doc.

    I have a 103 page .pdf document that I need to edit the contents of (change fonts, type sizes, colors, insert revised logos, and place a few style elements). I have the latest version of acrobat pro. that enables you to edit text, but its not entirely efficient. I wanted to load it into ID so that I could create paragraph styles and effectively manipulate the contents of the .pdf. As far as I can tell the only way to do this is to purchase a third party plug in (such as pdf2id)-right? However, the agency who gave me the job, set up a file that looks as though they were able to accomplish my same goal of linking the pdf direclty into ID without the use of the plug-in.
    Any suggestions?

    Given the extent of your changes, I think you're in a tough spot.
    Even with PDF2ID, there will be a lot of rework to get the file back to where it started, but it may be an option if you can't get the source (InDesign?) file. In my experience with PDF2ID and a 15 page graphics/text document, I ended up with around 100 para styles, 50 character styles, many bulleted sentences missing, images chopped into multiple pieces etc. It took a day to fully clean up, but still better than starting from scratch.
    Only other option I can think of is to use the pdf import script 'PlaceMultipagePDF.jsx' to make a 103 page InD document with the placed pdfs as a background, then overlay new content and put images behind transparent areas. Maybe combine this with some pdf edits in Acrobat to remove elements.

Maybe you are looking for