These forums are now Read Only. If you have an Acrobat question, ask questions and get help from one of our experts.

Acrobat 8 pro javascript

marcopolo
Registered: Aug 4 2006
Posts: 11

Good day all...

I am a javascript newbie and put myself in a bind. I hope with all the resources here someone can help me with my situation.

For about a year now i have been converting my manufacturing blueprints into a pdf format using Acrobat 6 professional. At the same time i created a text box with some java scrippting appling a time and date form field. And all the mean time Pdf's have been working great.
Just recently i have upgraded to Acobat 8 professional, and now none of my scrippting works. My time and dates do not update to the current time. I feel as if my file folder of 2000 or so blueprints are subject to redo with Acro 8 unless someone here has a much simplier solution.. Please help.. below is my script that i have been using.

this.getField("Text1").value = "© RBC Southwest Products, 2006 "
this.getField("Text2").value = "Uncontrolled Document - This document will not be kept up-to-date "
+ util.printd("mm/dd/yyyy ",new Date());
this.getField("Text3").value = "THE DESIGNS, CONSTRUCTIONS, ARRANGEMENTS DISCLOSURES AND DEVICES SHOWN OR DESCRIBED IN THE PROPOSAL DRAWINGS, SKETCHES OR DOCUMENTS BEARING THIS LEGEND , ARE THE PROPERTY OF RBC SOUTHWEST PRODUCTS AND ARE SUBMITTED IN CONFIDENCE WITH THE UNDERSTANDING THAT SUCH DESIGNS, CONSTRUCTIONS, ARRANGEMENTS DISCLOSURES AND DEVICES SHALL NOT BE UTILIZED IN WHOLE OR IN PART BY ANY PERSON, FIRM OR CORPORATIONS WITHOUT THE PRIOR WRITTEN PERMISSION OF RBC SOUTHWEST PRODUCTS 2006."

Thank you All

Marco

My Product Information:
Acrobat Pro 8.1.2, Windows
gkaiseril
Expert
Registered: Feb 23 2006
Posts: 4307
I am surprised you have not also set the "defaultValue" to the same text, so if the PDF is reset somehow, the field value is not cleared. But I would have "flattened" the PDF and made the data part of the PDF.

I would check to see that "JavaScript" is allowed in the application's preferences.

Where exactly is this or the JavaScript's located in the PDF's.


What happens when you save and reopen the PDF?


What is the batch script used to add the form fields?

I would have added the field values and default value to the form fields at the same time as creating the form form field and possibly even flattening the PDF at that time.

George Kaiser

marcopolo
Registered: Aug 4 2006
Posts: 11
I am not sure by what you mean as "flattened".

I check a hand full of prints and it does allow for javascripting so thats a thumbs up.

As for your 2nd question the scrippting is saved under "edit all javascripts" & under "set document actions".Now as for opening a pdf and saving it. I just tried it and it seems to have fixed my problem. But i still would have to do this to about 2000 prints. Unless theres a faster way of doing it.

I currently do not use a batch script. When a blueprint is requested, at that time i create a form field box and add it to the "edit all javascripts" & "set document actions".I hope this helps..

Thank you