How do I combine folders into one pdf, preserving subfolders as bookmarks?

So far I've had to go into each folder, convert its contents and name the file the same name as the folder name, and combine all of these folders. I'd like it if there were an easier way.

Hi,
sometimes ago I wrote a VBScript which may do, what you want.
Copy the attached Script into Notepad, change the settings and save it as AcMerge.vbs.
If you have produced the PDF FileList, you can double click on the VBS or Drag 'n Drop
the PDF FileList on the vbs.
HTH, Reinhard
AcMerge.vbs
REM: Insert single/multi Pdfs into one PDF, based on a filelist file
REM: to produce a file list file you can type into "Win Start" -> "Execute" 
REM: cmd /c "dir c:\temp\*.pdf /b /s >c:\PdfList.tmp"
REM:  where c:\temp\ is the base-folder.
REM: The "Settings.." you can change to your needs. Drag&drop for 1 filelist-file accepted.
*********Settings in File**************************
FLFile = "C:\PdfList.tmp"      '//Filename for filelist-file (files to merged)
Ask = 1                  '//0=don't ask for Insert;1=ask
Bookmark = 1             '//0=Insert No bookmarks; 1=Insert with BM based on Filename
InsWithBM = 1        '//1=Insert bookmarked files with BM; 0 = insert without BM
set WshShell = CreateObject ("Wscript.Shell")
set fs = CreateObject("Scripting.FileSystemObject")
Set objArgs = WScript.Arguments
if objArgs.Count = 1 then FLFile = ObjArgs(0)
Info = "Insert PDF-Files in Acrobat based on File-list-file."&VbCr&_
       "File Name: "&FLFile &" Start now?"
OK = MsgBox(Info, vbQuestion+vbYesNo,"Insert Files") : if OK = vbNo then WScript.quit
  '//Start or switch to Acrobat
WshShell.run "Acrobat.exe"
While not WshShell.AppActivate("Adobe Acrobat") : Wscript.Sleep 1000 : Wend
Set gApp = CreateObject("AcroExch.App")
gApp.Show
if not fs.FileExists(FLFile) then
     MsgBox "Ups! " & FLFile & " doesn't exist? " & "Try new!", vbExclamation
     WScript.quit
end if
set FLFileInhalt = fs.OpenTextFile(FLFile)
FLPOS = 1
do until FLFileInhalt.atEndOfStream
   inhalt = FLFileinhalt.ReadLine
   if  fs.FileExists(inhalt) then
   if Ask=1 then if MsgBox(FlPos&": "&inhalt, vbOKCancel + vbInformation) = vbCancel then exit do
          ' /->Open first File
     if FLPOS = 1 then
        ' Set gApp = CreateObject("AcroExch.App")
        Set BASFL = CreateObject("AcroExch.pdDoc")
        OK = BASFL.Open(INHALT)
        if not OK Then if MsgBox("Error open Basic File") then Wscript.quit
        BASFL.OpenAVDoc(mid(INHALT,InstrRev(INHALT,"\")+1))
        WScript.Sleep 500
        Set avdoc = gApp.GetActiveDoc
        Set pddoc = avdoc.GetPDDoc
        Set jso = pddoc.GetJSObject
        PageBAS = BASFL.GetNumPages-1
      else
        PageBAS = BASFL.GetNumPages
        jso.pageNum = PageBAS+1
        Set INSFL = CreateObject("AcroExch.PDDoc")
        OK = INSFL.Open(INHALT)
        if not OK Then if MsgBox("Error open InsertFile") then Wscript.quit
        PageIns = INSFL.GetNumPages
        OK = BASFL.InsertPages(PageBAS - 1,INSFL,0,PageIns,InsWithBM)
        INSFL.Close
        jso.pageNum = PageBAS+2
      end if
      if Bookmark = 1 then
        BMNameIE = mid(Inhalt, InstrRev(Inhalt, "\")+1)
        BMNameEE = left(BMNameIE, InstrRev(BMNameIE, ".")-1)
        Set BMR = JSO.BookmarkRoot
        BMR.CreateChild BMNameEE, "this.pageNum = " &PageBas, PageBas
      end if
    FLPOS = FLPOS+1
   else  '/-> file in Filelist (=inhalt) doesn't exist
       Ok = MsgBox(Inhalt &vbCr &"File don't exist! - Continue?", vbQuestion+vbYesNo,"Insert Files")
        if OK = vbNo then QUIT
    end if
  loop
MsgBox "DONE!" &vbCr &"Don't forget to save the File (save as)"

Similar Messages

  • I have 3 podcast folders in my iTunes account, how can I combine them into one folder in my iTunes library?

    I have 3 podcast folders in my iTunes account, how can I combine them into one folder in my iTunes library?

    What is the title of the other bookmark folder that can not be deleted?
    '''Try Firefox Safe Mode''' to see if the problem goes away. Safe Mode is a troubleshooting mode, which disables most add-ons.
    ''(If you're not using it, switch to the Default theme.)''
    * On Windows you can open Firefox 4.0+ in Safe Mode by holding the '''Shift''' key when you open the Firefox desktop or Start menu shortcut.
    * On Mac you can open Firefox 4.0+ in Safe Mode by holding the '''option''' key while starting Firefox.
    * On Linux you can open Firefox 4.0+ in Safe Mode by quitting Firefox and then going to your Terminal and running: firefox -safe-mode (you may need to specify the Firefox installation path e.g. /usr/lib/firefox)
    * Or open the Help menu and click on the '''Restart with Add-ons Disabled...''' menu item while Firefox is running.
    [[Image:FirefoxSafeMode|width=520]]
    ''Once you get the pop-up, just select "'Start in Safe Mode"''
    [[Image:Safe Mode Fx 15 - Win]]
    '''''If the issue is not present in Firefox Safe Mode''''', your problem is probably caused by an extension, and you need to figure out which one. Please follow the [[Troubleshooting extensions and themes]] article for that.
    ''To exit the Firefox Safe Mode, just close Firefox and wait a few seconds before opening Firefox for normal use again.''
    ''When you figure out what's causing your issues, please let us know. It might help other users who have the same problem.''
    Please report back soon.

  • Songs in my Itunes show up as separate folders.  How do I combine them into one album?

    Songs in my Itunes show up as separate folders.  How do I combine them into one album?

    Is this one of those CDs where the main artist asks their friend to sing a song with them?
    Such as, Slash's new album. Track 1 is "Slash Feat. Ian Astbury", track 2 is "Slash Feat. Ozzy Osbourne" and so on.
    To fix this, select all the tracks on that album, right-click > Get Info, and say YES to changing multiple items.
    Put "Slash" in the *Album Artist* field (for this example, of course).
    Make sure it is the *Album Artist* field, not the plain Artist field.

  • Trying to drag pdf files i have and combine them into one pdf file in the account i just purchased with Adobe. when i drag a pdf file over Adobe doesn't accept it. says it can not convert this type of file. but it is an Adobe file. Do I need to change it?

    Trying to drag pdf files i have and combine them into one pdf file in the account i just purchased with Adobe. when i drag a pdf file over Adobe doesn't accept it. says it can not convert this type of file. but it is an Adobe file. Do I need to change it in some other form befor dragging it?

    Hello djensen1x,
    Could you please let me know what version of Acrobat are you using.
    Also, tell me your workflow of combining those PDF files?
    Please share the screenshot of the error message that you get.
    Hope to get your response.
    Regards,
    Anubha

  • I have several pics of my new grandson throughout the year.  How do I combine them into one event

    I have several pics of my new grandson throughout the year.  How do I combine them into one event

    You can drag and drop photos from one Event to another. Or you can flag them and use the Events: Add Flagged photos to Select Event.
    However, why not use an Album for the job?

  • I have two different itunes music files on my computer.  How do I combine them into one file?

    I have two different itunes music files on my computer.  How do I combine them into one file?

    I don't think so. The only other ID I have is a developer id, and I didn't get that until several months after I got the phone. In addition purchases I made from the App Store onthe phone would sync up with It unes on the Mac meaning it would be the same id.
    However I looked at the AppStore on my phone while it was connected to the Mac with iTunes open, and now the balance has changed to the same as the others.

  • I have multiple documents how can I combine them into one document?

    I have multiple document files in Pages. How can I combine them into one document?

    Menu > View > Page Thumbnails > click on the thumbnails > Copy/Paste into thumbnails of other document
    Peter

  • TS3981 After migration files are now shared between two user accounts. How can I combine them into one account?

    After migration, from PC, files are now shared between two user accounts.I have to switch users to access files. How can I combine them into one account?

    See Pondini's  Transferring files from one User Account to another, for starters

  • How to scan more pages into one PDF file using hP inkjet 2515

    Dear friend 
    How to scan more pages into one PDF file using hP inkjet 2515 

    Dear friend 
    How to scan more pages into one PDF file using hP inkjet 2515 

  • "In Adobe Standard, when combining files into one pdf, how do I keep the original date"?

    I converted multiple emails into a pdf file.  After opening the pdf file, I wanted to combine the files into one pdf however once combining the files, the date modified of the files changes to the current date.  How do I preserve the original dates of the emails when combining the files?

    Hi Softball ,
    Thank You for posting on the forums. Apparently there is no such feature that would help you to achieve this.
    Thanks,
    Vikrantt Singh

  • I NEED HELP ON COMBINING FILES INTO ONE PDF FILE

    HOW CAN I TAKE 6 FILES AND MAKE THEM INTO ONE PDF FILE?

    Hi GOLDENSOROR
    How to merge files into one PDF:
    Within Acrobat XI, select File > Create > Combine Files into a Single PDF.
    Click Add Files and select the files you want to add.
    Click, drag, and drop to reorder the files and pages. Double-click on a file to expand and rearrange individual pages. Press the Delete key to remove unwanted content.
    When finished arranging the files, click Combine Files.
    Select File > Save As > PDF.
    Name your PDF file and click Save.
    Please refer : http://www.adobe.com/products/acrobat/merge-pdf-files.html

  • How to merge multiple files into one pdf

    I would like help with this task. If I could do this for free I woul actually be more likely to follow advice. Many thanks

    Hi Lauravill,
    The free Adobe Reader cannot help you with the merging job. If you have Acrobat Reader then you can merge files into one pdf with the following steps-
    Within Acrobat XI, select File > Create > Combine Files into a Single PDF.
    Click Add Files and select the files you want to add.
    Click, drag, and drop to reorder the files and pages. Double-click on a file to expand and rearrange individual pages. Press the Delete key to remove unwanted content.
    When finished arranging the files, click Combine Files.
    Select File > Save As > PDF.
    Name your PDF file and click Save.
    Let us know if you face any problemwith this or need extra support.
    Thanks
    -Satyadev

  • How do I combine Projects into one project?

    I like to make small projects while travelling and post on facebook. When home, I would like to combine them into one longer project for my Apple TV.
    Any suggestions would be greatly appreciated.
    Thanks,
    Skip

    you can copy (copy all) the clips from one project and paste them into another clip, but music and titles will not come with that. If you export one project as a .mov file and then reimport it into iMovie as suggested, that will easily work, but you wont be able to edit that movie's music or titles.
    rr

  • A music album is listed multiple times in my library but each listing only has a few songs in it-not the full listing.  How can I combine them into one album and get rid of other duplicate listings?

    Several music albums listed in my IPhone 5 music library are listed multiple times, but each one only has a portion of the songs listed.  How can I combine them to make one album?

    First....Thank you so much for your prompt reply.  I am sorry for not getting back to you regarding your suggestion-I had computer issues that just got resolved.  Also, this is my first foray into online chat rooms so I have a lot to learn to precisely state my issue!  I did as you suggested and all the songs list the same album when I go into each song's "get info".  However, I am not sure how to edit as you suggested. When I downloaded this album originally, for some reason it broke up into several albums each with different songs from the original album.  I am trying to consolidate them back into one album in my library.  I would greatly appreciate further assistance if you can.  Also, I do not use "the cloud" to store any data and would like a good source of info on how to do this.  Thanks so much for your patience!
    SueZoo

  • I publish identical podcasts under different URLs.  How can I combine them into one?

    Over the years, my URL has changed a couple of times.  I didn't know (until recently) how to notify iTunes that the podcast location and URL had changed.  So, now after a number of years, I have three identical podcasts, each with different a different URL and a different list of subscribers.  I have them pointing to the same source file now, but I would love to combine the podcasts into one so that the subscribers from each are merged together and they don't show up as three possible subscriptions in iTunes.  Is this possible?

    You can't merge them: all you can do is to ask to have two of them deleted, and of course if you do that you will lose any ratings. However existing subscribers should all be using the same feed if the three Store pages are all using the same feed, and so removing two of them won't have any effect on subscribers.
    The method of getting a podcast removed is detailed here:
    http://www.apple.com/itunes/podcasts/specs.html#removing
    When you explain why you want each one of the two you choose removed, specifically say that the same feed is in use in three places, so you can't use the 'itunes:block' tag (because this would block all three).

Maybe you are looking for

  • Missing Images and CSS when going to portal/server.pt can't login

    Hi, I installed WebCenterInteraction_10.3.0.0.0 on Windows and followed all the steps mentioned in the install doc. Deployed the portal.ear and here is what I see on the command line after deployment: Task #1 (InitPortalObjects) END (OK) Task #2 (Che

  • How to use the variable value "ALL"

    Hello all, I'm trying to use the value "all" for a selection variable in a Web Interface so that to have no restrictions for that specific variable and that all the rows are shown on the interface. Unfortunately it does not seem to be working because

  • Acrobat Pro 9.2 freezes my system

    Mac OSX 10.6.2 with Acrobat pro 9.2.  When I open Acrobat it will open, however when I try to do anything it will immediately freeze causing the need to restart my laptop.  If I try to open a .pdf file, Acrobat will open, but if I try to do anything

  • Where are the RFCs at txn rccf_cust pointing to?

    I see several RFCs on txn rccf_cust but I do not see the server(or instance) that each RFC points to. Do you know why? Thanks a lot!

  • SEVERE:OUI-10037:Unable to set up inventory. You may not have the proper pe

    Hi All, Error during oracle 10g instalaltion in solaris 64 bit with slient mode. SEVERE:OUI-10037:Unable to set up inventory. You may not have the proper permissions. Thanks in advance.