Highlighted

close Doc using Javascript

New Here ,
Jun 07, 2020

Copy link to clipboard

Copied

Hi folks,

 

i have a custom form and we use javascript to save and close the PDF file. Eveything works fine if  use save or close button on the form. If  we make any changes and  click on the 'X' button of Adobe reader which ask a conformation box and if i click on cancel and then if i click on custom close button, doc is not closing. Im using below  javascript code to close 

 

this.closeDoc(true);

 

if we directly clicked on close button without clicking 'x' button everything works fine. Any inputs really appreciated.

Topics

PDF forms

Views

79

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more

close Doc using Javascript

New Here ,
Jun 07, 2020

Copy link to clipboard

Copied

Hi folks,

 

i have a custom form and we use javascript to save and close the PDF file. Eveything works fine if  use save or close button on the form. If  we make any changes and  click on the 'X' button of Adobe reader which ask a conformation box and if i click on cancel and then if i click on custom close button, doc is not closing. Im using below  javascript code to close 

 

this.closeDoc(true);

 

if we directly clicked on close button without clicking 'x' button everything works fine. Any inputs really appreciated.

Topics

PDF forms

Views

80

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more

Have something to add?

Join the conversation
Resources
Trending Issue & Solution
Edit PDF in Adobe Acrobat Pro DC