Fan of creative technology, elearning, instructional design and a little geeky

Creating Interactive PDFs from InDesign (4)

Showing/Hiding Content

We learnt in previous tips to create buttons, add roll over effects. In this tip we’ll look at how we can create a roll over effect button that reveals hidden information and hides that which is shown originally.

083-00

We start at the very beginning. By creating buttons for each of the items that we want to show and hide.

To make things a little easier I have placed the content that is to be shown and hidden into separate layers.

Batavia Layer

Our PDF page will show and hide three different parts of content. Which originates from the “Batavia”, “Skeleton” and “Portico”-layers.

Skeleton Layer

Step 1: displaying what is shown by default

Our first step is to determine which content must be revealed when the PDF viewer first navigates to the “Shipwreck Galleries” page. I’ve decided to choose the Batavia topic for this.

Start by showing the content of this layer, by toggling the visibility icon ‘on’ (it displays the ‘eye’-symbol) and by selecting all of its content.

Select Layer Content

To select all items on this layer, Alt or Option click the Layer Name in the Layers panel.

Before we can make this content into a button we must group it. Choose Object > Group.

Group content

Next display the Button panel, and with the group still selected, click the Normal State Appearance to turn the Object into a Button.

Make Button

With the button created, we now need to determine whether this button’s content is visible by default when we navigate to the Shipwreck Galleries page. From the Buttons panel menu choose “Visible in PDF”, this option will ensure that we can see the Batavia information when we first look at this PDF page.

Visible in PDF

Before jumping to the next layer & content, Name the button. I’ve named my button “Batavia”.

Button Completed

Naturally displaying the Batavia content, means we should leave the other two topics hidden in the PDF. We’ll make these appear later 🙂

Step 2: Hiding what’s hidden by default

We’re now ready to work on those two pieces of content that are hidden by default. The content of the “Skeleton” and the “Portico” layer. I’ll describe the steps for the “Skeleton” layer, you’ll need to repeat these for all other layers in your project that should be hidden by default.

As in Step 1 – Start by showing the content of this layer, by toggling the visibility icon ‘on’ (it displays the ‘eye’-symbol) and by selecting all of its content.

Next select all items on this layer, by Alt or Option clicking the Layer  in the Layers panel and group the content. Choose Object > Group.

Next display the Button panel, and with the group still selected, click the Normal State Appearance to turn the Object into a Button.

New Button Added, Hide by default

With the button created, we now need to determine whether this button’s content is visible by default when we navigate to the Shipwreck Galleries page. From the Buttons panel menu choose “Hidden in PDF”, this option will ensure that we can see the Batavia information when we first look at this PDF page.

Name the button. I’ve named my button “Skeleton”.

Button completed

Repeat these steps for any other button that must be created and for which the content will be hidden when first viewing the PDF page.

Step 3: show all layer content

Our next step involves displaying all layer content. Click the visibility icons for the three (or more layers) that are part of the show/hide magic we’re working on.

Display all content

Things might look a little messy in InDesign, but remember, we’re working towards creating an interactive PDF 🙂

Step 4: Creating the roll over buttons

We’re now ready to create three more buttons and that will provide us with the roll over.  Each of these roll over buttons will (a) show the content to which it relates and (b) hide the rest of the content. Let’s start with the Batavia button.

Roll Over button

Select the text frame, that is to become the roll over button, and in the Buttons panel click the Normal State Appearance.

Button

This turns the object into a button, we can now work on the show/hide business 🙂  Change the Event setting to “Roll Over“, then select the Actions drop-down menu and choose Show/Hide Buttons.

Show hide

After you’ve set the Show/Hide Button Action, a Visibility section appears in the Buttons panel, locate the Button names you created earlier (Portico, Skeleton, Batavia) for each of the content that is going to reveal/hide. Select the button that needs to be hidden, then click the “Hide” button.

Name Button

This will change the visibility icon to an eye-symbol with a red line over it. Repeat this step for all button content you want to hide on the page when someone rolls over the selected button with the mouse/cursor.

083-16

Next, select the button-content that must be revealed during roll over and click the Show icon. This will add a small eye-symbol in the Visibility column.

083-17

In the example here, I’ve closed two eyes and opened one 🙂

083-18

Repeat the previous steps for each of your remaining roll over buttons.

083-19

You’re now ready to test the hard work and create the interactive PDF.

hoose a File > Adobe PDF Presets and select a PDF setting from the list of settings. Alternatively choose File > Export and set Format to PDF.

80_082

In the General section of the Export Adobe PDF dialog ensure the Interactive Element option is enabled for inclusion. Next click Export and generate the PDF.

Similar posts
  • Adobe InDesign and XML: A Reference Guide The following is a reference guide I have compiled over time for those of you who are looking at doing a little more with XML in InDesign (originally published Feb. 2011, last updated Feb 2018). If you have any extra information you’d like to see added to this guide, feel free to message me. Mapping XML tags to InDesign [...]
  • How to change the colour of bullet points in InDesig... A few weeks ago I recorded a short quick tip tutorial. InDesign’s Control panel, gives users a quick and easy way to format text as a bulleted list. Highlight the text, and click the Bulleted List button in the Paragraph Formatting Controls mode for the Control panel. This applies a universal bullet character as the [...]
  • Creating a pop-up window in a PDF with Adobe InDesig... In the following YouTube tutorial, we’ll create an interactive PDF from Adobe InDesign, in which we click on a button, which in turn opens up a simple pop-up window containing a close-box. When the close-box is clicked the pop-up window disappears [...]
  • InDesign: Facing pages with odd-numbered left pages Back in 2004 I wrote a tip for InDesign CS on how you could have the first page of your document be a left page AND have it start with page number 1. It’s hard to believe this is almost a decade ago… But a recent question on Facebook, made me think I should really [...]
  • Negative Lookbehind – GREP for Designers This is the fourth and final blog-posts in a series of posts on lookaheads and lookbehinds in GREP, written after speaking at the Perth InDesign User Group. My speaker notes are also available: What is GREP? (PDF download) (2.4Mb). In the previous three posts I briefly introduced GREP, and we took a look at Positive [...]

6 Comments

  1. April 29, 2013    

    @Peta You’d need to add a second action for that. Basically one action for the ‘roll-over’ that shows what you want to show, and the second that ‘hides’ what you want to hide on ‘roll-off’ — Hope this helps, Cari.

  2. PeteA PeteA
    April 6, 2012    

    Cari,
    Thank you for this very helpful tutorial. One problem I’ve come across is that the images that are changed by the rollover, since they are buttons, cause the mouse pointer to change to the hand, causing end users to think it’s clickable. Once it’s clicked on, it becomes selected and the rollover effect is disabled. The only way to get the rollover back is to click on an inactive part of the page. Do you know of a workaround? I’m using CS5.5 and Acrobat X Pro. Thanks.

  3. October 14, 2011    

    @DavLeMag don’t see why scripting this wouldn’t be an option. A Script could take you through the steps… with dialogs prompting you what to do I’d say. Or if your buttons are going to be named the same you’d be able to automate it in full. Note that in CS5+ you can now use MSO (Multi State Objects) to do this, which is… much, MUCH easier…

  4. DavLeMag DavLeMag
    October 7, 2011    

    Hello,
    Is it possible to do it through macro/script ?
    Thank you

  5. Cari Jansen Cari Jansen
    August 11, 2010    

    @Richa definitely consider upgrading your version of InDesign to CS5 if you’re interested in doing more SWF stuff, that adds a whole bundle of cool new features for you and can make this all work.

  6. Richa Richa
    July 13, 2010    

    I just had a question what do you do if you want to export it to a SWF file. The problem I am having is I don’t know how to control that only one picture is opened when you first go to the pages.

    Thanks

Leave a Reply

Your email address will not be published. Required fields are marked *