Skip to main content
Known Participant
April 15, 2015
Answered

Place multiple PDF files (or a folder of PDF files) into one InDesign document

  • April 15, 2015
  • 1 reply
  • 1584 views


Hi,

I know there are several scripts to place multipage Pdf's in InDesign.

Based on those scripts I made one myself which places a PDF file with multiple pages as an InLine graphic where the name of the PDF file is inserted as a heading.

Works great. But when I want to import 20 PDF files I have to run that script 20 times which isn't handy.

So I'm looking for a way to choose a folder in which are several PDF-files that will be placed inside 1 ID doc.

Any suggestions?

This topic has been closed for replies.
Correct answer Peter Kahrel

Use .selectDlg():

function getPDFs(){

    var f = someFolder.selectDlg ('Select a folder')

    if (f != null){

        return f.getFiles('*.pdf');

    }

    return [];

}

Peter

1 reply

Peter Kahrel
Community Expert
Peter KahrelCommunity ExpertCorrect answer
Community Expert
April 15, 2015

Use .selectDlg():

function getPDFs(){

    var f = someFolder.selectDlg ('Select a folder')

    if (f != null){

        return f.getFiles('*.pdf');

    }

    return [];

}

Peter

Known Participant
April 15, 2015

Thx Peter

Wim