New Forum | Previous | Next | (P-PDF) Developers
Topic: Re: The creation of a specific type of pdf button
Conf: (P-PDF) Developers, Msg: 58654
Date: 5/29/2002 05:33 PM
On 24 Nov 2001, at 3:41, p-pdf-developer Listmanager wrote:
> From: "Noel"
> --- Planet PDF Forum | http://forum.planetpdf.com ----
> 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.
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.)
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 foxitsoftware.com & www.PlanetPDF.com -------
Dr. D. P. Story / email@example.com / (330) 972-7514
http://www.math.uakron.edu/~dpstory/ Dept of Mathematics
and Computer Science / University of Akron / Akron, Ohio 44325
AcroTeX Web Site: http://www.math.uakron.edu/~dpstory/acrotex.html
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.