#67. Building an Interactive PDF in InDesignSure, InDesign is a page layout application through and through, but it turns out to be a very capable tool for getting your ideas into an interactive format. Among InDesign's well-known page layout tools are less familiar features for creating interactive PDF files. You can create hyperlinks and bookmarks that result in navigational aides in the exported PDF. You can also add buttons to your InDesign document and then assign actions such as jumping to a page, playing a movie, or hiding elements.
Adding bookmarks and hyperlinksYou can add bookmarks to your InDesign document to make it easier navigate the exported PDF. The bookmarks appear in the PDF within the Bookmarks tab in Acrobat or Adobe Reader (Figure 67a). To create a bookmark, open the Bookmarks palette in InDesign by choosing Window > Interactive > Bookmarks. Next, decide where you want the bookmark to jump to by clicking an insertion point in text, highlighting text, selecting a graphic, or choose an entire page by double-clicking on a page in the Pages palette. Then just click the New Bookmark button on the Bookmarks palette to create the bookmark. Figure 67a. Bookmarks that you create in your InDesign document (left) end up in the exported PDF (right), making it easy for readers to navigate your document.
Hyperlinks are similar to bookmarks but allow you to set up navigational links directly within your document's content much like a Web page. Adding and managing hyperlinks is all done in the Hyperlinks palette (Window > Interactive > Hyperlinks). Select the text or graphic you want to act as your hyperlink's source and then click the New Hyperlink button in the Hyperlinks palette. In the New Hyperlink dialog (Figure 67b), name your hyperlink and choose a destination. Destinations can be other pages (even in other documents), a URL (e.g., www.adobe.com), or a text anchor. You can then choose an appearance for your hyperlink and click OK. When you export your PDF, be sure to select the Include Bookmarks and Hyperlinks option in the Export PDF dialog. Figure 67b. Use the New Hyperlink dialog to specify a destination and appearance for your hyperlink.
Creating buttons
You can create buttons in InDesign and set them up to perform actions when the document is exported to a PDF. You can create a button by using the Button tool to drag out an area on top of text or a graphic. (A button acts as an overlay, so you still need to create content for your button.) But the easiest way to create a button is to select your button content (text or graphics) and choose Object > Interactive > Convert to Button. Once you've created your button, you can then assign actions to it by choosing Object > Interactive > Button Options. In the General tab, you can edit the name, description, and visibility attributes of the button. Switch to the Behaviors tab of the dialog (Figure 67c) to add behaviors triggered by certain events. For example, to show the next page in your document when you click the button, you would choose Event: Mouse Up along with Behavior: Go To Next Page. Remember to click the Add button in the lower-right corner of the dialog to add the behavior you've set up. To make your buttons function in your exported PDF, select the Include Interactive Elements option in the Export PDF dialog. Figure 67c. The Button Options dialog offers several useful behaviors that you can associate to common events like mouse clicks and rollovers.
|