1 Reply Latest reply on Jun 19, 2012 9:52 AM by philmodjunk

    Importing pdf files into interactive containers

    BobRyner

      Title

      Importing pdf files into interactive containers

      Post

      I am trying to decide if filemaker pro will work for an application that we
      are developing. I have set up a test database application using interactive
      containers for pdf files. Placing the documents directly into the container
      works fine. What we need to do is batch input records into the database
      including inputting a pdf file (externally stored). When I try to input records
      everything works fine except the pdf file just has a file name and is not
      interactive. Is this possible to do in filemaker pro?

        • 1. Re: Importing pdf files into interactive containers
          philmodjunk

          It can be done, but not with Import Records | Folder--that option is limited to importing text or picture files--not PDF's.

          You can set up a script that takes a list of all the file names in a given folder and inserts them via looping script into a series of records--each with a container field using Insert PDF and a layout where the container field is located and formatted with the "interactive" option.

          The first trick is to get the list of filenames from a folder. This can be done in a FileMaker script in one of three ways:

          1) put the folder containing your PDF's inside your documents folder. Then there's a get function that lists the entire filepaths of every object in your documents folder that you can use to extract a list of file names in this specific folder.

          2) Use a system script such as a windows batch file or a Mac system Applescript to list the contents of the directory

          3) get one of several different plug ins available that can list the contents of any folder on your computer.

          Once you can do that, it's a matter of putting that list of file names into global field or variable and extracting one at a time to insert the file.