These forums are now Read Only. If you have an Acrobat question, ask questions and get help from one of our experts.

PDF TOC of PDFs

madmars
Registered: Feb 27 2008
Posts: 4

Is it possible to create a TOC as .pdf from a compilation of multiple PDFs in a filesystem?

My Product Information:
Acrobat Pro 8.0, Windows
lkassuba
ExpertTeam
Registered: Jun 28 2007
Posts: 3636
You could create a blank PDF and then manually add the TOC entries via the link tool. Or, you could create a PDF Package, which will visually add navigation to the various PDFs from within the Package.

Lori Kassuba is an AUC Expert and Community Manager for AcrobatUsers.com.

daka630
Expert
Registered: Mar 1 2007
Posts: 1420
madmars,
If the population of PDFs in the file system are located in one specific folder/directory -
Try obtaining a text file containing a listing of the files from the command line.
Start > Run > cmd
Enter
cd ///.../
Enter
dir /b > [filename].txte.g.,
When open, the command line window will show the default directory...
C:\Documents and Settings\[User Name]>Type in the change directory string...
C:\Documents and Settings\[User Name]>cd c:\_01a\testAfter using the Enter key...
C:\_01a\test>Type in the dir command string...
C:\_01a\test>dir /b > filelist.txtAfter using the Enter key...
C:\_01a\test>Type in "exit" and press Enter to close out the window.

With Windows Explorer, browse to the target folder to locate the text file.

You could park this file elsewhere by providing a path in front of [filename].txt if you wanted to.
Create a PDF from the text file. Use the link tool to create the link to each listed file.

If the population of PDFs reside in several different folders that are under a common "parent" level folder you could repeat the process above for each folder.
Put the text files directly under the parent folder.
Combine the text files into one PDF.
Again, use the link tool to link each entry to the target PDF.

Alternatively, you could bring the text files' content into Word Perfect, MS Word or whatever.
Cleanup as desired.
Lay the links, output a PDF or output the PDF and lay the links.

If you somewhat regularly put together code you could devise a more elegant approach to harvesting the filenames.
If not, then the plug 'n chug approach above will get the job done.

A discussion of the dir command is at this link:
[url]http://www.computerhope.com/dirhlp.htm[/url]

Be well...

Be well...

George_Johnson
Expert
Registered: Jul 6 2008
Posts: 1875
Another approach is to use JavaScript in a batch sequence to gather information from a collection of PDFs and generate a TOC using the Report object.

George