The Bookmarks property determines whether to include bookmarks in a PDF file.
Examples:
The following VBA example publishes the active document to PDF. The resulting document includes bookmarks, hyperlinks, and thumbnails.
Sub Test()
With ActiveDocument.PDFSettings
Bookmarks = True
Hyperlinks = True
Thumbnails = True
End With
ActiveDocument.PublishToPDF "C:\MyDocument.pdf"
End Sub