Tips & Tricks

Using Page Actions to Trigger Events in PDFs

October 23, 2003

Advertisement
Advertisement
 

When you open or close a page in a PDF document Acrobat raises a little 'event' that you can hook into to activate a movie, play a sound or even run a Javascript code.

To demonstrate Page Actions let's make a movie start playing when the page is opened.

Open your PDF document and insert a Movie using the Movie tool from the Advanced Editing toolbar.

Once you have a movie inserted (Windows users can insert the test movie in the Windows directory: clock.avi), open the 'Pages' pane (View>Navigation Tabs>Pages).

Right Mouse Click (Mac: Control + Click) on the thumbnail for the page that you have inserted the movie into and choose 'Page Properties'.

There are two trigger types for hooking into Page Actions, the first is to hook into the Page Open action and the other option is the Page Closed Action. Choose the Page Open trigger type.

From the 'Select Action' drop down box choose 'Play Acrobat 6 Compatible Media' (or version 5 Compatible Media is applicable).

Now click 'Add' and select the 'Annotation from Movie' that you inserted earlier (also note that you could have also inserted your movie by choosing the 'Browse' button).

The next dialog box allows you to select what will happen to the Movie when the Page is opened, choose 'Play' from the drop down.

Once you clicked 'Ok' you will find your inserted Media will be listed as Media that will play when the Page is opened.

All that's left to do is save your PDF document. The next time this page (or document if it's the first page) is opened the movie will automatically start playing.

Note: If you have the movie tool still selected the movie will not automatically play, to correct this simply choose the Hand tool and open and close the page again.

Copyright Dave Wraight & Planet PDF. No unauthorised reproduction, distribution or publication permitted.

PDF In-Depth Free Product Trials Ubiquitous PDF

Debenu Quick PDF Library

Get products to market faster with this amazing PDF developer SDK. Over 900 functions and an equally...

Download free demo

Back to the past, 15 years ago! Open Publish 2002

Looking back to 2002, it's amazing how much of the prediction became a reality. Take a read and see what you think!

September 14, 2017
Platinum Sponsor





Search Planet PDF
more searching options...
Planet PDF Newsletter
Most Popular Articles
Featured Product

Debenu PDF Aerialist

The ultimate plug-in for Adobe Acrobat. Advanced splitting, merging, stamping, bookmarking, and link control. Take Acrobat to the next level.

Features

Adding a PDF Stamp Comment

OK, so you want to stamp your document. Maybe you need to give reviewers some advice about the document's status or sensitivity. This tip from author Ted Padova demonstrates how to add stamps with the Stamp Tool along with related comments.