Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

Creating Table of contents in PDF

  1. Dec 23, 2005 #1
    I was wondering.. How can you modify a PF file to have the TOC organization in the drawer rather than the flat page preview?

    Some PDFs of large documents have an organization that separates the PDF into sections and when you select that element or an element from the tree below an element, it jumps to that page.

    any Idea how I can add that to a PDF so it is no so obnoxious to navigate?
  2. jcsd
  3. Dec 23, 2005 #2

    Dr Transport

    User Avatar
    Science Advisor
    Gold Member

    Try writing the component sections then converting them to a PDF. When all is said and done, write the TOC and hyper-link the sections before creating the PDF of the TOC...
  4. Dec 23, 2005 #3
    Actually, I was hoping for help on taking an Old PDF I got on line and converting it to such a system so I can just click on the section I want to jump to. I do not have Acrobat either.
  5. Dec 23, 2005 #4


    User Avatar
    Staff Emeritus

    Do you have access to a unix machine?

    If so you can do this:

    pdf2ps (convert pdf to postscript)
    ps2html (convert postscript to html)
    htmltoc (generate table of contents)
    html2ps (convert html to postscript) make sure to use the --toc option
    ps2pdf (convert postscript to pdf)

    I think it should work, but i'm not sure. Try it if you can.
Share this great discussion with others via Reddit, Google+, Twitter, or Facebook