I want to create a text field on all documents within a folder.
I need the text field to say:
Printed Document Only Valid This Date
in the textfield.
I need to do this to thousands of documents.
I know how to create a textfield... but what's the property or method to populate the text
in a text field in Adobe Acrobat?
Sorry new to Javascript here...
I also imagine you are using the "addField()" function, this function returns the field object. So your code should look something like this:
since this is for static text on the PDF you should consider using the "addWatermarkFromText()" fucntion.
You can find all the information you need in the Acrobat JavaScript Reference and other documentation.
Thom Parker
The source for PDF Scripting Info
[url=http://www.pdfScripting.com]pdfscripting.com[/url]
The Acrobat JavaScript Reference, Use it Early and Often
[url=http://www.adobe.com/devnet/acrobat/javascript.php]http://www.adobe.com/devnet/acrobat/javascript.php[/url]
Then most important JavaScript Development tool in Acrobat
[url=http://www.pdfscripting.com/public/34.cfm#JSIntro][b]The Console Window (Video tutorial)[/b][/url]
[url=http://www.acrobatusers.com/tutorials/2006/javascript_console][b]The Console Window(article)[/b][/url]
Thom Parker
The source for PDF Scripting Info
www.pdfscripting.com
Very Important - How to Debug Your Script