Creating Table of contents in PDF

  • Thread starter Thread starter ComputerGeek
  • Start date Start date
  • Tags Tags
    Pdf Table
Join the discussion
Ask a follow-up here, or get your own question answered by working scientists, mathematicians and engineers — people, not an autocomplete.
Real named experts · corrections over time · the nuance an AI answer skips
3 replies · 6K views
ComputerGeek
Messages
383
Reaction score
0
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?
 
Physics news on Phys.org
Dr Transport said:
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...

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.
 
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.