Public Sub updfConcatenate(pvarFromPaths As Variant, _
#Adobe acrobat combine pdf code
This was adapted from code I found here, and will merge files, and put bookmarks at each merge point: Private mlngBkmkCounter As Long This was pure hell to get working, so I'm happy to share what I've got.
#Adobe acrobat combine pdf how to
I also tried the option to programatically insert pages from one pdf file into another, but that does not produce the bookmark structure that I am looking for, nor does it let me manipulate the bookmark heirarchy to create the bookmark structure I am looking for.ĭoes anyone have an idea of how to do this? Any help would be greatly appreciated!
I at first tried automating the process via the Acrobat SDK, but from what I understand the Acrobat SDK does not allow programs to interact with the dialog box that appears when you execute the "Combine Files" menu option, so that did not work.
I want to programatically combine these three files into a single file that has 9 bookmarks that look like the structure below: A In other words, say I have three files called "A.pdf", "B.pdf", and "C.pdf", and each file contains two bookmarks called "Bkmrk 1" and "Bkmrk 2". I currently have code that will combine pdf files, but it it does not keep the bookmark structure the same way that "Combine supported files in Acrobat" does. What I would like to do is replicate this exact same process programmatically (preferrably in Excel/VBA, but C# or Batch commands are acceptable alternatives).
I have to merge a set of many (100+) PDF files into a single report on a weekly basis, and so far, I have been doing the process by hand by selecting the files, right clicking, and selecting "Combine supported files in Acrobat". I originally asked this on Adobe's forums but yet to receive any reponses.