Expand my Community achievements bar.

close current PDF document in acrobat livecycle designer

Avatar

Level 2

Hi experts

i just want to close the currnet pdf file using javascript in livecycle designer. I am using Acrobat 9 pro livecycle 8.2

Can anyone suggest me.

Thanks in advance

Regards

arul

2 Replies

Avatar

Level 10

Place the following code in the click event of the button.

Use javaScript as language.

app.execMenuItem("close");

Thanks

Srini

Avatar

Level 5

Hi,

You could use the code

event.target.closeDoc();

If the form is in Acrobat, the user will be asked if they wish to save it.

If the form is in Reader and the form has been reader extended to allow the Save right, they will also be asked if they wish to save

Otherwise the form will just close.

Hope this helps

Malcolm