Hi - Donna Baker refered me to this Forum after I posed this problem:
> I'm a rank newcomer to PDFs, bookmarks, destinations, and the Acrobat
> / interapplication Communications. I'm a software engineer, tasked
> with providing context-sensitive help (at the app procedure level) for
> a C# .NET windows app using a Word doc-converted-to-PDF using RoboHelp.
>>
> What caught my eye re. a Destination is that the drag-and-drop acrobat
> COM control in .NET provides a SetNamedDest("mydest") function,
> whereas I can't find an equivalent function for a Bookmark. The tech
> writer knows Word, links, Bookmarks and RoboHelp, but was clueless re.
> setting up Destinations in Word.
>
> So my first work-around is to hand-edit Destinations in the exported
> PDF file, using Acrobat 8.0. This works. The problem is the
> Destination definitions are lost each time the PDF is generated. So,
> next problem is How to regenerate the Destinations (to avoid
> hand-editing each time), either from the Word doc, ?javascript for
> Acrobat? The Interapplication Communicaitons SDK?
>
> Whatever general pointers, references to articles, sample code,
> alternative techniques, etc. Much Appreciated!
>
> Thanks,
> Barney Wray, Software Engineer
> Uster Technologies, Inc.
> Knoxville, TN
> USA
Word has similar concepts. For example, each heading type (H1, H2, H3, etc.) is considered part of a Hierachal bookmark structure and can be used for things like creating a table of contents. If you have Acrobat Pro installed on the same system as Word, then work should have an Acrobat menu, which contains a "settings.." entry. In the settings you can specify the conversion of headings and other elements to bookmarks in PDF.
The right way to approach this is to use the existing word elements to convert into PDF bookmarks. But if you really want to perserve the active elements in a PDF, like bookmarks and links. Then do not overwrite your working PDF when you do the conversion. Instead, convert the word doc to a different file name. Then in Acrobat do a replace pages using the new doc. This replaces the existing page content without affecting the interactive elements on the PDF.
Thom Parker
The source for PDF Scripting Info
www.pdfscripting.com
Very Important - How to Debug Your Script