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.

Related Products at PDF Store

Nitro PDF Professional

Nitro PDF Professional, your PDF creation and editing product. Priced at $99, Nitro PDF Pro is the m... View full product details
Download free demo

PDFlib TET

Reliably extract text from any PDF file with this library/component. TET makes available the text co... View full product details
Download free demo

ARTS PDF Aerialist

Take Acrobat to the next level with advanced splitting and merging; flexible bookmark creation and m... View full product details
Download free demo

PDF In-Depth Free Product Trials Ubiquitous PDF

Nitro PDF Professional

the perfect PDF product for business and enterprise, combining an extremely competitive price with a...

Download free demo

XpdfViewer

This ActiveX control (OCX) provides a PDF file viewer component, enabling developers to add PDF viewing...

Download free demo

Ubiquitous PDF: PDF eBooks-Library

If you are looking for a good store of PDF content, you could do a lot worse than visiting eBooks-Library.com...

September 03, 2009
Search Planet PDF
more searching options...







Convert PDF Files

Planet PDF Newsletter
Most Popluar Articles
Features

How to Create Slide Shows and Self-running Kiosks in Acrobat

In this tutorial, Ted Padova and Wendy Halderman explain how to best use the features of Acrobat 6 Professional to create a self-running multi-media kiosk for use with displays such as tradeshow exhibits.

Featured Product

ARTS PDF Aerialist

The ultimate plug-in for Adobe Acrobat and #1 selling product at PDF Store. Advanced splitting, merging, stamping, bookmarking, and link control. Take Acrobat to the next level.

Platinum Sponsor
Create & Edit PDF - Nitro PDF Software

ARTS PDF

Silver Sponsors

PDF-Tools enfocus

QuickPDF: The Unrivaled PDF Developer Toolkit