Answered
I want a simple dialog box to pop up with a message when my pdf opens. I am using acrobat 8 pro. I'm new to javascript in acrobat. I've added the following under Advanced>Document Processing>Document Javascripts:
function documentopen()
{
app.alert('Attention','You must print, complete, and obtain proper signatures on both copies of this form.',3);
}
After saving and reopening the pdf the box does not appear. Please help!
"var dialog =
{
description:
{
name: "Your caption here",
align_children: "align_left",
width: 200,
height: 80,
elements:
[
{
type: "static_text",
name: "Your message here."
},
{
alignment: "align_right",
type: "ok",
ok_name: "OK",
}
]
}
};
app.execDialog(dialog);"
I copied it from one of my scripts so you might want to adjust the size and alignment.
Also, if you are new and need help, you should try this:
http://www.adobe.com/devnet/acrobat/pdfs/js_api_reference.pdf
so long...