There's no direct relation between a bookmark and a page. A bookmark can
point to a page, or it can do something different altogether, or nothing at
Ok, I see...
But is it possible to the the text (content) of the bookmark where it is linked, e.g. the Bookmark "Test" is on page 3, and I want to print it there?
There could be multiple bookmarks pointing to the same page, though...
It is possible to get a bookmark name from the bookmark object but as noted a reverse lookup for a bookmark to a given page is not fool proof.
You could write a script that walks the bookmark tree and then use execute to go to the page that book mark points too and then fill-in the bookmark name. This assumes all bookmarks perform the go to page/view action and do not run a script or open another PDF. You may also need to account for more than one bookmark pointing to a page.