Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

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

share|improve this question
    
For this you need to generate "thumbnails", the little preview images, that are embedded in the PDF file. I'm putting this as a comment while I figure out how to actually generate them, but having the correct terminology may help find an answer. –  roadmr Dec 16 '11 at 17:06
    
i've just added an image in the question –  Matteo Pagliazzi Dec 16 '11 at 17:10
    
oh OK, then I hadn't understood correctly. Sorry. Scrap the thumbnails thing :) –  roadmr Dec 16 '11 at 17:11
1  
Can someone replace "indexing" tag with "bookmarks" as indexing is something different –  zetah Dec 16 '11 at 17:36
2  
I think these are called 'PDF Bookmarks'. –  Tom Brossman Dec 16 '11 at 17:37

2 Answers 2

up vote 4 down vote accepted

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

share|improve this answer
    
i've tried with PDF MOD it works but indexing is shown only in xournal not in evince! –  Matteo Pagliazzi Dec 16 '11 at 18:29
    
my fault... it works –  Matteo Pagliazzi Dec 16 '11 at 18:38

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.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.