PDF export with limited bookmarks

Hi there,

I’f like to export my writer document to PDF. I’m using headings pretty much and have headings up to level 5. However, I only want level 1-3 in my index and the exported file. To limit it in the index i simply modify the depth-setting of the index and it only shows, what I want it to show. How can I archive that in the PDF export, since I dont want to have like 10 pages bookmarks?