How to I get this to populate the PDF's in batch mode here.
I've got 1000+ documents. Each needs this javascript embeded in it.
It's not working... think It's the syntax or something like that.
Would someone please explain how to get all this code to equal a variable, and
how do you do the next line featuer, similiar to VBA & _
which lets you separate code down a line but not break the code.
var cScriptName = "LoadDate";
var cScriptCode = "//Get System Date and Populate Field called todaysdate
var bAlreadyOpened;
function getsysDate()
{
if(bAlreadyOpened != "true")
{
var d = new Date();
var sDate = util.printd("mm/dd/yyyy", d);
this.getField("todaysdate").value = sDate;
bAlreadyOpened = "true";
}
else
{
}
}
getsysDate();";
this.addScript(cScriptName, cScriptCode);
What I'm trying to do is add a script into the document level of a PDF, via the batch processing feature.