Quantcast
Channel: VBForums
Viewing all articles
Browse latest Browse all 15507

Converting Word to PDF with Bookmarks

$
0
0
I'm working with legal transcripts that will have entries in the text that look like this:

(Joint Exhibit 1 admitted into evidence)

There is a bookmark that is placed into this labeled something like exhibits_username_123456. This is used later for creating an index in Word that uses that bookmark as a page number reference. That's more just for background information of what's going on. What I want to do now is when I convert it to PDF with the option of preserving bookmarks, the PDF is generated but the bookmarks of course show up as:

exhibits_username_123456

This isn't very appealing. So what I've attempted to do is change the Outline level to List 1. So now when I generate the PDF with headings instead of bookmarks I get:

(Joint Exhibit 1 admitted into evidence)

This is a great step and almost there. What I would like it to display as in the PDF bookmark is as follows:

Joint Exhibit 1 Admitted - Page 21

So without altering the text in the parenthesis, how can I get the bookmarks to be named the way I want them as shown above? If it's something I can do through VBA I'm happy to do it that way as well, any solution will suffice. I also tried adding in hidden text with the List 1 outline level, but unfortunately that didn't show up at all in the PDF bookmarks.

Viewing all articles
Browse latest Browse all 15507

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>