|
|
Help with javascript for a pdf presentation
Hi you all,
I'm trying to make a more "dynamic" pdf presentation with some "flash like"
text effects using javascripts in acrobat. Its actually working and I can
sense somehow that the possibilities are endless, but I'm a newbie and my
code is quite rudimentary and is giving me some errors (on repetead
open/close page actions). Maybe some of you could take a look at the
document and the javascripts(document and page levels) and point me in the
appropriate direction. I have attached to the message the .pdf file.
Thanks.
John
Here is the javacode:
//<Document-Level>
//<ACRO_source>cres</ACRO_source>
//<ACRO_script>
/*********** belongs to: Document-Level:cres ***********/
function cres(arg){
global.test = arg;
var f = this.getField("txt_"+(arg+1));
t1rect = f.rect;
t2rect = f.rect;
t1h = t1rect[1]-t1rect[3];
t1w = t1rect[0]-t1rect[2];
t1rect[1] += t1h+35;
t1rect[3] -= t1h-55;
t1rect[0] += t1w+75;
t1rect[2] -= t1w-85;
app.setTimeOut("maremic(global.test,t1rect)",25);
app.setTimeOut("maremic(global.test,t2rect)",125);
}
//</ACRO_script>
//</Document-Level>
//<Document-Level>
//<ACRO_source>maremic</ACRO_source>
//<ACRO_script>
/*********** belongs to: Document-Level:maremic ***********/
function maremic(x,txrect){
this.getField("txt_"+(x+1)).rect=txrect;
this.getField("txt_"+(x+1)).display=display.visible;
}
//</ACRO_script>
//</Document-Level>
//<Page-Actions>
//<ACRO_source>Page2:Page Open:Action1</ACRO_source>
//<ACRO_script>
/*********** belongs to: Page-Actions:Page2:Page Open:Action1 ***********/
global.cnt_y = 0;
global.bannerRunning_y = 0;
global.bannerKey_y =0;
//</ACRO_script>
//</Page-Actions>
//<Page-Actions>
//<ACRO_source>Page2:Page Open:Action2</ACRO_source>
//<ACRO_script>
/*********** belongs to: Page-Actions:Page2:Page Open:Action2 ***********/
if (global.bannerRunning_y == 0) {
global.bannerRunning_y = 1;
global.bannerKey_y=app.setInterval('cres(global.cnt_y++ % 20)',
175);
stoprun=app.setTimeOut("app.clearInterval(global.bannerKey_y)",3500);
}
//</ACRO_script>
//</Page-Actions>
//<Page-Actions>
//<ACRO_source>Page2:Page Close:Action1</ACRO_source>
//<ACRO_script>
/*********** belongs to: Page-Actions:Page2:Page Close:Action1 ***********/
if (global.bannerRunning_y == 1) {
app.clearInterval(global.bannerKey_y);
global.bannerRunning_y = 0;
}
for (i=1; i<21; i=i+1){
this.getField("txt_"+i).display=display.hidden;
}
//</ACRO_script>
//</Page-Actions>
|
|
0
|
|
|
|
Reply
|
John
|
4/24/2004 5:11:14 PM |
|
|
0 Replies
325 Views
(page loaded in 0.019 seconds)
Similiar Articles: Open PDF File in Maximized Window - comp.lang.javascript ...possibly something like this might help: wd=screen.width ht=screen.heigth window.open("mypdf.pdf","presentation","width="+wd+", heigth="+ht+"") Best Regards, Sandfordc ... javascript and Acrobat "saveAs" ... why is it so elusive? - comp ...I have created a PDF with fillable forms - using javascript to achieve certain results and it works B-E ... user motion: CLICK, SAVE, CLOSEMac OS, Acrobat 8.Can someone help ... PDF popup with close button - comp.lang.javascript... image on a button: PdfReaderreader = new PdfReader("form.pdf ... comp.text.pdf Help me ... Auto Close an Alert Message - comp.lang.javascript Popups in PDF - comp.text.pdf Auto ... Acrobat 5.05 javascript read txt file? - comp.text.pdfCan anyone help on this one? Can I get acrobat javascript in version 5 Reader to read an external ... Acrobat 5.05 javascript read txt file? - comp.text.pdf Using JavaScript ... Pdf javascript event onOpen, OnLoad? - comp.text.pdfJavascript: Event.value - comp.text.pdf Pdf javascript event onOpen, OnLoad? - comp.text ... articles. 8 followers. ... Could Not Load the Index - Help - comp.text.pdf Help ... file does not begin with '%PDF-' - comp.text.pdfBut whithout any help :-/ (I read ... me "File does not begin with '%PDF ... We are trying to ... javascript ... PDF, also known as a Portable Document Format file ... How to run a JavaScript immediately after the document opens ...Acrobat 6 allows insertions of JavaScript to be run ... Thanks for your help. I understand your option ... pdf expiration with javascript - comp.text.pdf How to run a JavaScript ... Safari Adobe Reader plug-in - comp.sys.mac.appsI keep my PDF programs in a sub-directory ... comp.text.pdf file does not begin with '%PDF-' - comp.text.pdf JavaScript ... Help installing Plugins - comp.graphics.apps ... Display PDF from Ajax Response - comp.lang.javascript... have the response open a new window and display the pdf ... objects sent as a http request - comp.lang.java.help ... Display PDF from Ajax Response - comp.lang.javascript ... Adding "New Page" to Document Menu in Acrobat - comp.text.pdf ...If anyone reading this post knows how, please help. ... I imagine it was by using a file level JavaScript (i.e. a .js ... Planet PDF - Insert pages into existing PDF documents ... Use Adobe Presenter to create a Flash-embedded PDF slide showNow's the fun part . . . publish your presentation to PDF! Click the Publish button (PPT 2007) or appropriate menu pick for PPT 2003. The Publish Presentation window appears: JavaScript - Wikipedia, the free encyclopediaJavaScript's use in applications outside Web pages — for example in PDF ... Checking the HTTP Referrer header can also help. "JavaScript hijacking" is a type of CSRF ... 7/21/2012 6:30:06 PM
|
|
|
|
|
|
|
|
|