Use this in function PrintBookmarks:
if (bm.children != null && nLevel == 0)
You have given the perfect solution to the script, which will now generate a list of all of the top/parent bookmarks in the pdf file, without listing any of the sub bookmarks which is exactly what was required.
Thank you for your help Bernd much appreciated.
Thank you for the reply and answer. I do not know how to write/use/add scripts to Adobe. How can an end-user perform this task?
I like to use this script, but I get an error
"Report doesn"t have a constructor"
Who can help me with it?