Hi,
I am using a XFA form in my application which users can edit and submit. If the user has unchecked the "Open PDF in browser" setting in Adobe Reader, the PDF opens in Adobe Reader. I would like to close the PDF or Adobe Reader when the user submit the PDF by clicking the Submit button provided.
I also want to show the resultant HTML page on a browser after submitting the PDF. I am able to do this, but if I use event.target.closeDoc() in button click event I am not getting the result page even though the PDF submission worked fine.
Any suggestions?
Any help will be highly appreciated.
Thanks
Neeraj
Instead of closing the PDF, have you tried using the "app.launchURL()" function?
Thom Parker
The source for PDF Scripting Info
[url=http://www.pdfScripting.com]pdfscripting.com[/url]
The Acrobat JavaScript Reference, Use it Early and Often
[url=http://www.adobe.com/devnet/acrobat/javascript.php]http://www.adobe.com/devnet/acrobat/javascript.php[/url]
Then most important JavaScript Development tool in Acrobat
[url=http://www.pdfscripting.com/public/34.cfm#JSIntro][b]The Console Window (Video tutorial)[/b][/url]
[url=http://www.acrobatusers.com/tutorials/2006/javascript_console][b]The Console Window(article)[/b][/url]
Thom Parker
The source for PDF Scripting Info
www.pdfscripting.com
Very Important - How to Debug Your Script