Login using the username and password you created for AcrobatUsers.com.
Note: This is not the same as your Adobe ID.
Benefits of Free Membership:
Find out what AcrobatUsers.com is all about
You don't have to be a member to look at any content on the site. Increase your expertise with our helpful tutorials, videos, forums, and sample PDFs.
Like what you see? Take the next step and become a member. Register now to get discounts, attend eSeminars, ask questions and more.
Get the most out of your membership. Post in the forums, create your profile, submit to the gallery, attend a user group meeting. Log In now.
I am stuck with this simple project of adding a stamp to the page at a specific location from my custom stamps when a forms menu item is selected. Here is the code. The rectangle is created but not filled with the stamp jpeg picture. Variable stampName does match and receive the name of the stamp in the custom stamp file. This works perfectly fine when I add a standard stamp name like "Approved".
Am I missing something here with the path to custom stamps or something?
//<Document-Level>
//<ACRO_source>SetStamp</ACRO_source>
//<ACRO_script>
/*********** belongs to: Document-Level:SetStamp ***********/
function SetStamp(stampName)
{
var annot = this.addAnnot({
page: 0,
type: "Stamp",
rect: [20, 570, 150, 680],
AP: stampName
});
}
//</ACRO_script>
//</Document-Level>
//<AcroForm>
//<ACRO_source>Title:Keystroke</ACRO_source>
//<ACRO_script>
/*********** belongs to: AcroForm:Title:Keystroke ***********/
if(event.willCommit)
{
if(event.value == "")
this.resetForm([ ]);
else
SetStamp(event.value);
}
//</ACRO_script>
//</AcroForm>
Last edited by shenry (2009-12-27 13:43:21)
My Product Information:
Acrobat Pro 9.2 / Macintosh
Offline