Table of contents - spacing in PDFs

I’ve made a table of contents and it works great when I export to PDF. The problem is when you click on a TOC link in the PDF, it goes to the heading jammed up against the top of the page, there is no space above so it looks kind of ugly. I would’ve thought spacing could be defined somewhere in TOC index settings but I can’t find anywhere to do this. You can define spacing around headings but this is ignored when you click on a link in a PDF. Any way to do this?

Can you upload an ODF and a PDF sample file here?

Sure, attached.
test.odt (14.8 KB)
test.pdf (62.4 KB)

I just looked at the pdf for Illustator CS5.5 Help by Adobe. For those headings near the top of a page, the link jumps to heading line so it too is at the very top. Other headings jumped to have space above them if the display would have to show a page boundary at the bottom of the page. This is the same behaviour that I see in LibreOffice, see the Writer Guide as example, so I expect it is intended in the pdf spec.

BTW your test.odt is full of direct formatting and spacing by empty paragraphs. You should use styles to manage your layout. Paragraph styles let you set the spacing above and below paragraphs, also space to the border to give the height you need in your Heading 2 style and definitely in Heading 1 style which all but disappears in the middle of some text.
Using empty paragraphs to go to a new page will cause problems with layout after only a few pages and inserting a few lines; use Insert > Page Break or more breaks.

Thanks for the tips I’m in the process of updating paragraph styles etc.
RE the link spacing, I’m not entirely sure what the reference of page boundary is to but I take it to mean there’s no setting in LibreOffice which can over-ride the way acrobat reader views them hard up against the top…

I don’t see a setting in Adobe Reader to view a link with padding from the top.

In attached sample if you click the link for Heading Test 3 it will probably appear in the middle of the page because of the boundary between current page and next page, that is, the default setting shows only a single page.
Adobe Reader will put the linked Heading Test 3 at the very top of the page if you click View > Page display > Enable scrolling. I think you could enable that for viewers by clicking Continuous in the PDF Options dialogue > Initial View but that is the opposite of what you want.
TOCLinkTopOfPage_test.pdf (56.2 KB)

You also need to read about Chapter Numbering in the Writer Guide otherwise any edits might be a nightmare if you want to insert new level 1 or level 2 headings or other sub levels where you want the numbering to appear.

and remember: pdf is viewed with a bunch of programs, not only Acrobat(reader). Some will even reflow pdf, so actually you have not much control here.