Hello everyone,
I have a couple of questions for you regarding abasic document level script.
We have a document which displays an alert message on every single page open which is very annoying. When scrolling throgh a document to find something the screen is flooded with these alert messages.
The Document Java Script is called VARS and has the single entry:
var accepted =1; <-- I have already set this to 0 to disable these messages, but I would like to remove the scripts as they are redundant.
I tried deleteing the Document Javascript VARS and the scripts below but I not sure what XML tags I need preserve for this to work. Can anyone show me what tags I need to keep please?
Editing all Javascripts looks like this :
//------------------------------------------------------------- //-----------------Do not edit the XML tags-------------------- //------------------------------------------------------------- //<ACRO_Document-Level> //<ACRO_source>VARS</ACRO_source> //<ACRO_script> /*********** belongs to: ACRO_Document-Level.VARS ***********/ var accepted = 0; //</ACRO_script> //</ACRO_Document-Level> //<ACRO_Page-Actions> //<ACRO_source>ACRO_Page1.Page Open</ACRO_source> //<ACRO_script> /*********** belongs to: ACRO_Page-Actions.ACRO_Page1.Page Open ***********/ if( accepted == 1 ) { app.alert( "This message is soley designed to irrate and annoy.\r"+ "Please click okay to continue.\r" ,1,0); accepted = 1; } //</ACRO_script> //</ACRO_Page-Actions> //<ACRO_Page-Actions> //<ACRO_source>ACRO_Page2.Page Open</ACRO_source> //<ACRO_script> /*********** belongs to: ACRO_Page-Actions.ACRO_Page2.Page Open ***********/ if( accepted == 1 ) { app.alert( "This message is soley designed to irrate and annoy.\r"+ "Please click okay to continue.\r" ,1,0); accepted = 1; } //</ACRO_script> //</ACRO_Page-Actions> . . .
The other question I have is what external editor tool do I use to edit all Javascripts which cannot be display the scripts in full in the Edit Dialog. I am using an old copy of Adobe Acrobat 5.0 (Standard I think) to try and fix this.
Thankyou,
Robert.
I would use JavaScirpt to loop through the page of the PDF and use the 'setPageAcrtion()' method to null out the 'open' page action for each page.
You can use any text editor. This means text not a document editor like Word. Note Pad, Text Pad, Ultra Edit, Note Pad++.
George Kaiser