Javascript navigation in PDF files

I’m currently working on an enhanced, interactive version of a 24 page brochure I designed. In the PDF, we’re adding web-like navigation items, including the standard previous and next buttons.

Going through this tutorial, the best bit is how to use Javascript to create forward/next buttons. Since the original post is from 2007, I wanted to blog it quickly for my own future reference. (For Javascripters out there, I’m sure this is old news, but for me this is a neat trick.)

Note that you can also use JavaScript to move to the next page. Use the Run a JavaScript action and type the following in the JavaScript Editor:



Thanks to for showing the way.