🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: adobe.scripting
Article #23

Re: How do I add the same field and javascript to multiple documents

#23
From: debbie_foster
Date: Tue, 31 Aug 2004 21:16
15 lines
1439 bytes
George,

I looked up the Acrobat JavaScript reference and found the "addField" and "setAction" but I am still confused as to where and how to use these actions. Do I go under batch processing and add a new javascript there? The script I wanted to use is as follows with the field called Date1:

var dField = this.getField("Date1");
dField.value == "";
dField.alignment="center";
dField.textColor = color.red;
dField.fontWeight = 600;
var nDate = new Date();
dField.value="Only the online system will contain the current revision. Printed documents shall be verified against the online system before use." + � This document was printed " + util.printd("ddd mmm dd, yyyy", nDate)+".";
dField.multiline = true;
dField.readonly = true;

Please help!
Technical Details
Message-ID: <3bb5a337.1@webx.la2eafNXanI>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!news.zanker.org!npeer.de.kpn-eurorings.net!feed.news.schlund.de!schlund.de!newsfeed01.sul.t-online.de!t-online.de!webx
References: <3bb5a337.-1@webx.la2eafNXanI>

Show Full Headers
Complete Article Headers
X-Google-Thread: 109719,26af56007af4c519
X-Google-Attributes: gid109719,public
X-Google-Language: ENGLISH,ASCII
From: debbie_foster@adobeforums.com
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!news.zanker.org!npeer.de.kpn-eurorings.net!feed.news.schlund.de!schlund.de!newsfeed01.sul.t-online.de!t-online.de!webx
Newsgroups: adobe.scripting
Subject: Re: How do I add the same field and javascript to multiple documents
Message-ID: <3bb5a337.1@webx.la2eafNXanI>
Date: Tue, 31 Aug 2004 14:16:29 -0700
References: <3bb5a337.-1@webx.la2eafNXanI>
Lines: 21
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit