9

I've noticed that when viewing some PDFs in Evince some of them have a index in the left side of Evince where items are clickable.

Well i want to build something like that for one PDF is that possible in Ubuntu?

like this enter image description here

Panther
  • 104,528

3 Answers3

9

There are many ways for crating TOC in PDF. Best one is probably using pdfmarks file which exposes all possibilities described by Adobe pdfmarkReference
It's not that hard to programatically parse PDF documents and collect needed information for creating this pdfmarks files, which afterwards can be embedded in PDF file by using GhostScript i.e.

For an easy way of manually adding TOC entries, like you want I assume, PDFMod GUI utility can help. It's listed in Synaptic

zetah
  • 9,871
3

To supplement zetah's answers, here's a quick tutorial on how to create a pdfmarks file and use ghostscript to add that to a PDF file:

http://milan.kupcevic.net/ghostscript-ps-pdf/#marks

The syntax is a bit arcane, so you will probably need another tool to generate those files.

roadmr
  • 34,802
0

Here is an updated solution for this: https://help.gnome.org/users/evince/stable/bookmarks.html.en

However, this seems to only work locally. I tried viewing the same bookmarks in my iPad via the Adobe Acrobat Reader App, it did not show up for me.