I need to check required fields, "flatten" the PDF and send PDF saved to the e-mail recipient. Is there a way to do this?

I found flatten java script, but making my useless button and flatten the entire document.

I also found that the actions of document to check

for (var i = 0; i < this.numFields; i ++) {}

fieldName var = this.getNthFieldName (i);

field var = this.getField (fieldName);

If (field.value.length == 0)

{

field.setFocus)

App.Alert ("Field" fieldName + "is required.) Please enter a value. »)

}

}

but I do still need to flatten + send to an e-mail recipient. Is it possible to do all these steps with just one button? Or save the form as being "read" only.

IM currently using Acrobat XI

Invoke the var = new Array ("AFieldName... 1','AFieldName... 2", ".....");

var cFieldName = «»

var ok = true
for (var i = 0; i)< afields.length;="" i++)="">

cFieldName = this.getField (aFields [i])
If (cFieldName.value == "") {}

OK = false
cFieldName.setFocus)
App.Alert ("field [" + cFieldName.name + "] is required. ') Please enter a value. »)

}
}

If (ok == true) {}
for (var i = 0; i)< this.numfields="" ;="" i++)="">
var f = this.getField (this.getNthFieldName (i));
If (f == null) continue;
f.ReadOnly = true
}

this.mailDoc({)
cTo: "[email protected]."
bassujetti: "your subject...". »,
CMSG: "dear...". »
})
}

Tags: Acrobat

Similar Questions

Maybe you are looking for