Close adobe reader by javascript

Hi all,
My web-page have a menu item, when user click the menu item, it open a pdf document in adobe reader  (because I code the menu to submit to asp page, this asp page return a pdf document inline).
After user fill some info in the form, click submit, the form will be closed (because I put javascript to button, to close the form after submit).
The issue is: after document close, Adobe is still there. I want Adobe application is also closed, or minimized, but I cannot.
This is my code in submit button on pdf document:
in mouse-up of button, I put actions:   - submit the form
                                                       - Run a JavaScript:
this.closeDoc(true);
app.execMenuItem("MinimizeAll");
it doesn't work, after document closed, Adobe reader is not minimized at all.
I changed to this
this.closeDoc(true);
app.execMenuItem("Exit")
                                                       But It doesn't work too?
Any help would be very very very appreciated. Thank you so much.

app.execMenuItem("MinimizeAll") seems to work from the console, but not
from a button, so assuming you can't install a script on the local machine
of the users, I would say that no, you can't do it.
On Sat, Aug 9, 2014 at 1:31 AM, Orren Johnson <[email protected]>

Similar Messages

  • Adobe Reader Version 9.1.1 - Unable to close Adobe Reader.

    Using Firefox Version 3.0.10, under Microsoft Windows Vista Home Premium Edition 32-bit, patched as of today.
    I open a pdf file, Adobe Reader opens a new window, I can read/print pdf file.
    I select "Close" (Red X in upper right hand corner.) nothing happens.
    I select "File", select "Exit".
    An Adobe Reader message window pops up with "This action cannot be performed from within an external window.".
    I select "OK" message window goes away, but Adobe Reader is still there.
    I then closed Firefox.
    Try to close Adobe Reader again with the same results.
    Reboot the system.
    Open Firefox, select another web site, open a pdf, read/print pdf file.
    Try to close Adobe Reader, same results.
    This started after Adobe Reader was updated to version 9.1.1.
    Any ideas?

    It looks like ZoneAlarm Security Suites product Force Field with Virtualization Enabled may have something to do with strange behaviour.
    When I just open pdf files that are on the local machine, I don't have a problem, just on remote systems.
    I already know ZoneAlarm Support will blame this on Adobe Readers most recent update, since it worked with the previous version of Adobe Reader.
    Any ideas?

  • Can't open or close adobe reader

    Hello,
    This is the page that i get when I open or close adobe reader.
    I reinstall and shut off the computer and no change
    Please your help
    Regards
    Eran

    Operating system is Windows XP
    The reader is last version
    I thing there is a sudden problem with font.
    I dont know if it is the reason
    thanks
    בתאריך 22 ביונ 2013 11:49, מאת "Pat Willener" <[email protected]>:
       Re: can't open or close adobe reader  created by Pat Willener<http://forums.adobe.com/people/pwillener>in
    Adobe Reader - View the full discussion<http://forums.adobe.com/message/5438322#5438322

  • It keeps says I have to close Adobe Reader but it's not open

    I'm trying to download the free trial but it keeps saying I need to close Adobe Reader but its not open

    Closing Programs Interfering with Installation
    PC - Task Manager: (CTRL-ALT-Delete) http://support.microsoft.com/kb/323527
    Mac - Activity Monitor: http://osxdaily.com/2010/08/15/mac-task-manager/

  • Changing document restriction in Adobe Reader using JavaScript

    Hi all,
    I'm wondering if it's possible to change the "Commenting" document restriction option of a pdf file with "No Security" as the security method, using JavaScript while in Adobe Reader.
    Thanks in advance,
    Kamil

    Not possible.

  • JS: How to close Adobe reader/Acrobat?

    How to close a PDF file in Adobe reader/Acrobat using JS in Design?
    Thanks in advance.

    Here is an example:
    #target indesign
    var acroScript = 'var d = app.activeDocs;\r';
    acroScript += 'for ( var i in d ) d[i].closeDoc( true );';
    var bt = new BridgeTalk;
    bt.target = "acrobat";
    bt.body = acroScript;
    bt.send();
    It closes all open documents in Acrobat without saving. However it  works only on PC and only in certain versions of InDesign and Acrobat. (I tested it at work, in InDesign CS3 and Acrobat 8 Pro, on Windows XP)
    But at home computer I have Acrobat X version 10.1.1 and bridgetalk doesn't "see" it.
    Note that closeDoc method has an optional parameter -- bNoSave -- whether to close the document without saving. If false (the default), the user is prompted to save the document if it has been modified. If true, the document is closed without prompting the user and without saving, even if the document has been modified.
    Hope this helps.
    Kasyan

  • Close Adobe Reader 9 and Retry?

    I've been try for well over an hour now to download Adobe Reader DC in place of Adobe Reader 9 and I still keep getting a prompt to close 9 and then click Retry. I do not have 9 open so I am wondering what are your experiences with this and what must I do to fix it, please? I'm on a desk top computer.

    Hi Allen%20Wayne,
    Could you please let me know what version of OS are you working on.
    Once you install Adobe Reader DC, it will automatically remove the previously installed version.
    But, you can manually uninstall Reader from your machine and then install Reader DC (if supported) from here:
    Adobe Acrobat Reader DC Install for all versions
    Let me know.
    Regards,
    Anubha

  • Select a word using its quad points/rect in adobe reader using Javascript

    Select a word using its quad points/rect point in adobe reader using Javascript

    The only option you have to select a word using JS is by using the selectPageNthWord method, which works based off an index, not a quads.
    However, in principle you should be able to use a loop that iterates over all the words on the page, comparing their quads to the one you have, and then selecting the one that matches.

  • Execute VB script from Adobe reader 10 javascript

    Hi
    Is it possible to launch a VBS file or embedded script from Javascript?
    This basic example doesn't appear to work.
    var myscr = new File("/C/temp/run2.vbs"); if (myscr.exists) { app.doScript(myscr, ScriptLanguage.visualBasic) }
    By the way this throws an error.
    ReferenceError: File is not defined
    84:Menu:Exec

    I am getting the exact error trying to down load bank statements but when I go to 'uncheck' the "Do not save encrypted page to disk" box it is ALREADY unchecked.  Can't get my bank statements down loaded.  Any other suggestions.  Need help quick.

  • How do you close Adobe Reader Touch in Windows 8?

    I'm fairly new to Windows 8 and perhaps there are some things that I'm not used to yet.  But I can't seem to find a way to exit out of this application once I've finished using it?  Any suggestions?

    To close an app on the Windows 8 Metro interface, press the very top of the screen and swipe down gradually to the middle; the app will turn into a floating window; then drag it off the bottom of the screen.

  • Adobe Reader XI - javascript alert boxes appearing behind modal IE window

    Hi - I am experiencing the following issue:
    I am running Windows 7,  Internet Explorer 9 and Acrobat Reader XI. I am opening a pdf document in an IE modal dialog usiing the showModalDialog() function. My pdf document has a simple button which will display an app.alert box. The problem is that the alert box now appears in the back of the modal dialog, something it did not do before the upgrade to Reader version XI. This means that the user is forced to move the modal dialog out of the way to see and to click "OK" on the alert box.
    It doesn't seem like this is limited to app.alert boxes either. I tested on a new WIN7 machine and installed Reader XI. Making sure not to have opened Reader XI, I opened my pdf file in the modal window and it brought up the Reader XI EULA window and it was behind the modal dialog as well.
    Any help would be appreciated, I've tested on multiple machines and the problem seems to be with Reader XI & Internet Explorer 9, running on a Win7 OS. Thanks.

    Hello me_339,
    Yes, I'm also seeing the same behavior in Reader XI, and in Reader X, it works just fine. For the time being, uncheck 'Enable Protected Mode at startup' from 'Preferences > Security (Enhanced)' to avoid this situation.

  • Adobe Reader won't close

    When I close PDF files, Adober Reader continues to run in the background and slows down my computer. I have to go into Task Manager and close Adobe Reader each time. Any suggestions?

    I am having this same issue, which is frustrating.  How does Adobe not have weekend tech support?  I keep getting told to just "open the program"  well, i have tried to open it, and it doesnt show as downloaded, so i will go to download it, and it says "you already have this installed"... well okay, then i go to find it, and it doesnt exist anywhere on my computer and tells me to download it again, and annoying triangle i keep going in.

  • Error in Installing Adobe Reader

    I'm trying to install Adobe Reader and everytime, it gets to 96% and an error message pops up telling me that it can't finish installation until I close Adobe Reader- however there is nothing open except for the installation window and the error message.

    Make sure that anything that uses Adobe Reader is closed; check with the Task Manager's Processes tab.
    If you're still having problems, uninstall your current Reader installation, then reinstall the latest Reader.
    Download the installer from http://get.adobe.com/reader/enterprise/

  • Latest Adobe Reader update deleted all files from my desktop - help please!

    Dear all!
    Yesterday I opened up a .pdf document with Adobe Reader. I clicked the Help | Check for Updates option. The reader informed me that there was an update available. I then disabled my antivirus (as is recommended). I selected the available update by checking the box next to it. I then clicked the Download option.
    The update began to download. At that moment I noticed that the .pdf document was still open (i.e. Adobe Reader was still running). Knowing that the installation, when it begins, tends to notify me that it must close Adobe Reader in order for the installation to continue, I decided to close Adobe Reader myself before being prompted to do so. All was fine until that moment, as the update download and install runs in a completely separate process from the Reader, it was not affected.
    After I closed the Reader, with the update still running I noticed that all files I had on my desktop were gone. None of the folders were missing, just the single files and most of my shortcuts. I checked to see if the files were just invisible or phisically missing. It was the latter. Windows Explorer showed that all files I had on my desktop were gone (deleted/overwritten I guess). A search of my computer for the file names came up empty, even though I was searching with the "search hidden and system files" options enabled!
    I tried a number of deleted file restoration softwares but none have identified the desktop files I was missing.
    Be so kind as to spare me from the "did you check the power cord" category of "answers", as I am not a complete idiot. The Acrobat Update, or something associated with it has to be at the root of this problem, as the antivirus software I have installed came up empty when I searched the computer for virurses, worms and the likes...
    All help on this matter would be appreciated. Needless to say, most of my current work was stored on the desktop...
    I am running WindowsXP sp. 3, Acrobat Reader 9.34
    With regards
    jack_84

    Please ignore the previous unrelated reply - I will deal with it separately.
    I must first say that this is a very puzzling problem, and that I have never heard of anything like it.  Apart from the missing desktop content, it also puzzles me that you state your Adobe Reader version as 9.34, when the latest Reader version is actually 9.3.2.
    Anyway, how to solve it?  Can I assume that you do not have a very recent backup, from where you can simply restore all the lost content?
    I do not know if your desktop content is really gone (deleted), or if it is somehow just not visible.  There are a few things we can try, but I strongly suggest that you make a full backup of your system before you try anything!
    Since I have never seen this before, I cannot make any definitive recommendations, but just suggest what I would do if that happened on my computer.  Again, not before making a full backup.
    Uninstall Adobe Reader.
    System Restore to a time before the problem started.
    Check the following registry keys, if they have a value 'NoDesktop', and what it is set to
    HKCU\Software\Microsoft\Windows\CurrentVersion\policies\Explorer
    HKLM\Software\Microsoft\Windows\CurrentVersion\policies\Explorer
    If you are on XP Pro, you can use gpedit.msc to check these settings (Configuration | Administrative Templates | Desktop ["Hide and disable all items on the desktop"]).
    Message was edited by: ʇɐb ɹəuəllıʍ - typos.

  • Can't print correctly by using Adobe Reader 9.1.2

    The following code in OCX is being used in my web application to print PDF directly with Adobe Reader 5.1, and it works fine!
    When Adobe Reader is upgraded to 9.1.2, it no longer works. Printouts often cannot be printed correctly. However, when I add the code in red, the printouts can be printed correctly again.
    Anyway, I don't want Open and Close Adobe Reader during direct printing.
    Anyone knows why FilePrintSilent doesn't work? and how to solve it?
    Thanks in advance!
    William
        ''''''''''' Use ddeml to communicate with acrobat reader '''''''''''
        On Error GoTo ErrPrinting1
        Dim a
        Set a = CreateObject("AcroExch.Document")
        Dim lRet As Boolean
        Dim sValue As String
        sValueOpen = "[DocOpen(" & localFileName & ")]"
        sValuePrint = "[FilePrintSilent(" & localFileName & ")]"
        sValueClose = "[DocClose(" & localFileName & ")]"
        DDE_Initialize
        DDE_CreateStringHandles "acroview", "control", ""
        ' Open the conversation.
        If (g_hDDEConv = 0) Then
            g_hDDEConv = DDE_Connect
        End If
        If g_hDDEConv Then
            ' Perform the transaction.
            lRet = DdeClientTransaction(sValueOpen, Len(sValueOpen), g_hDDEConv, 0, 0, XTYP_EXECUTE, 5000, 0)
            lRet = DdeClientTransaction(sValuePrint, Len(sValuePrint), g_hDDEConv, 0, 0, XTYP_EXECUTE, 5000, 0)
            Sleep 800
            lRet = DdeClientTransaction(sValueClose, Len(sValueClose), g_hDDEConv, 0, 0, XTYP_EXECUTE, 5000, 0)
            If (lRet) Then
                Debug.Print "DDE Execute Success."
            Else
                Debug.Print "DDE Execute Failure."
            End If
        Else
            Debug.Print "DDE Connect Failure"
            printToPrinter = "DDE Connect Failure"
            Exit Function
        End If
        ' Release the memory.
        DDE_FreeStringHandles
        DDE_Uninitialize
        Set a = Nothing
        ''''''''''' end '''''''''''

    We have PDF documents stored on server-side, the ActiveX control and Adobe Reader are installed on client-side.
    When users open our web page, click our "Print weekly report directly" button, the ActiveX control on client will be called, and perform the above coding. It tries to download the PDF document from server to client, and pass it to the printer on client silently by using FilePrintSilent function.
    The report can be printed, but not correct. It involves some unexpected characters which should be English or Traditional Chinese originally, as shown in the attached picture.
    Thanks in advance!
    William

Maybe you are looking for

  • Sender SOAP Adapter with Https

    Hi, can any one give me information on  how my Sender SOAP adapter to be configured with HTTPS port. please give me the what are all different ways to make my Sender SOAP Adapter secure and give me the steps to achieve the functionality. Thank You, M

  • Can't Import m4a or wav Files

    I recently converted some of my .flac music into .wav and .m4a in hopes of getting to play the lossless music on my iPod (and thus in my car), but while iTunes plays them fine, the sync doesn't seem to recognize the files at all. One thing to note, a

  • CS4: Pen tool won't fill object when closed

    Now i know everyone wants to tell me to fill with the paint bucket ... or make sure i have a fill color selected.  I have already tried that.  Everytime i make an object, and close it off, it doesnt fill.  And if i try to fill the object, it fills ev

  • I want to download the version 13 of photoshop and it keeps devaulting to version 12.....

    The download keeps defaulting to version 12 when I want 13 ?

  • Problems with G6 - PT API and Content Service Upload Installation

    Hi all, What port number is PT API using in G6? Examples in Installation Guide are using 11905for PT API, is that the right port or just a dummy port? Same question for Content Service Upload, is port 11910dummy? I installed all Plumtree Foundation C