PDF-Forms is a service provided by PDFzone.com | http://www.pdfzone.com/
__________________________________________________________________
Derrick,
Yes, as Rob said, it is possible to "Batch" the process of inserting field
level JavaScript in all fields in an existing PDF file.
An example is the following code, which I got at a PDF conference, I think
from Max Wyss:
// Enumerate through all of the fields in the document.
for (var i = 0; i < this.numFields; i++)
{
app.alert("Working on field " + i + " " + this.getNthFieldName(i) + ".");
var f = this.getField(this.getNthFieldName(i));
f.setAction("OnFocus", "SetBGColor();");
}
Then add this function, for example, as a Document-Level function:
function SetBGColor ()
{event.target.fillColor = color.yellow;}
-----Original Message-----
From: MacNaughton, Rob [mailto:[EMAIL PROTECTED]
Sent: Monday, July 28, 2003 5:06 PM
To: '[EMAIL PROTECTED]'
Subject: RE: [PDF-Forms] Batching Javascript in existing fields
PDF-Forms is a service provided by PDFzone.com | http://www.pdfzone.com/
__________________________________________________________________
Yes, It's also very useful to use a naming convention on the feilds so all
feilds that you'd want to update together have the same prefix.
-----Original Message-----
From: Derrick Rosslee [mailto:[EMAIL PROTECTED]
Sent: Monday, July 28, 2003 4:53 PM
To: [EMAIL PROTECTED]
Subject: [PDF-Forms] Batching Javascript in existing fields
PDF-Forms is a service provided by PDFzone.com | http://www.pdfzone.com/
__________________________________________________________________
RE: Batch Process
Is it possible to "Batch" the process of inserting
field level Javascript (all fields in doc) in an
existing PDF file (Acrobat 5.x and up)?
Example: Background field color "On Focus"
Thanks for any info,
Derrick
__________________________________
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com
To change your subscription:
http://www.pdfzone.com/discussions/lists-pdfforms.html
To change your subscription:
http://www.pdfzone.com/discussions/lists-pdfforms.html
To change your subscription:
http://www.pdfzone.com/discussions/lists-pdfforms.html