Planet PDF Forum Archive

Planet PDF ForumWowsers! This is page is old, head to the LIVE Planet PDF Forum. It features more than 10 conferences, covering everything from beginner to in-depth developer and pre-press discussions. If you wish to continue... one & two archive covers 1999-2011 (160,000 pages).

New Forum | Previous | Next | (P-PDF) Developers

Topic: Re: The creation of a specific type of pdf button
Conf: (P-PDF) Developers, Msg: 58654
From: dpstory
Date: 5/29/2002 05:33 PM

On 24 Nov 2001, at 3:41, p-pdf-developer Listmanager wrote:

> From: "Noel"
> --- Planet PDF Forum | ----
> Hello,
> I wish to create the following types of buttons
> (1) I want to click on a button and for a box of text to appear below the
> button. I have used the show/hide field command to show the text when I click
> the button once. My problem is that I want to the same button let the box of
> text disappear again when I click it again. Basically, I wish to create 1
> button that both shows and hides the box of text after each click.

Try: this mouse up javascript action within your button, where "mytext" is
the field name of your other field.

var f = this.getField("mytext");
f.display = ( (f.display %= 2) == 0 ) ? 1 : 0;

> (2) Kas Thomas has created a type of animation for acrobat. I wish to use
> his techniques to create a clickable button to view an image one frame at a
> time within the same pdf file. The viewer clicks a button to advance to each
> slide image and when they reach the end of the animation by clicking the same
> button again the button resets the animation to the starting frame

You can prepare your 'slides' and give them titles in the info dialog
image01, image02, image03, etc.

Place all (pdf) images in the same folder. Then use the batch sequence
called, as I recall, "Import Named Icons". Import these icons into your
target document. (The batch will automatically name the icons using either
the base file name, or the title in the info field.)

Now look at page 179 (page 181 base 0) of the Acrobat JavaScript Object Specs.
The example for the buttonSetIcon method can be studied and modified to suite
your needs. Control is through a button rather then a list box.

Hope this helps.


> Basically, I require the type of buttons that are used in acrobat to advance
> to previous or next pages, for the control of each image in my slide show. If
> anybody can provide any help I would be very grateful.

> --------- ePublish Store's Top 10 List for October -----------
> ARTS Split & Merge Wizard - StampPDF - AMYUNI PDF Converter
> Jaws PDF Creator - Gemini - BCL easyPDF - BatchPrintPDF
> PDFlib - BCL Drake - Mapsoft Impress Stamper
> Find out why these were the best-selling products last
> month. Free demos of most at the ePublish Store!
> (formerly known as the Planet PDF Store)
> ------- Powered by & -------

Dr. D. P. Story / / (330) 972-7514 Dept of Mathematics
and Computer Science / University of Akron / Akron, Ohio 44325
AcroTeX Web Site:
Site Includes: e-Calculus, Algebra Review in Ten Lessons,
Mathematics Games, Pdfmarks:Links & Forms,
Using LaTeX to Create Quality PDF Documents for the WWW,
Web.sty and Exerquiz.sty Packages for LaTeX,
and much, much more.

PDF In-Depth Free Product Trials Ubiquitous PDF

Debenu Aerialist

The ultimate plug-in for Adobe Acrobat. Advanced splitting, merging, stamping, bookmarking, and link...

Download free demo

Debenu PDF Tools Pro

It's simple to use and will let you preview and edit PDF files, it's a Windows application that makes...

Download free demo

Five visions of a PDF Day

In the world of PDFs or as we like to say Planet (of) PDF, a year isn't a real PDF year without an intense few days of industry knowledge sharing.

May 15, 2018
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.


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.