Problem running Acrobat.exe from acrobat plugin in IE

hi,
In another discussion, regarding signing pdf in Internet explorer, i am awaiting a reply to a very imp question. In the mean time, asuming that it cannot be done in a standard way, as we have used PDDoc allover the plugin and in IE PDDoc is only accessible in callback methods, i have tried to implement a work around, where i save the PDF to local disk and open it in acrobat.exe.
i do the following:
Register for PDDocDidOpen notification.
In PDDocDidOpen notification i save the AVDoc globally for later use.
then in IdleHandler callback, i use the globally save AVDoc to call PDDocSave() method to save the online pdf to local disk.
and in the PDDocDidSave() callback i use shellexecute to opend acrobat.exe to open the newly saved PDF.
Problem:    The shellexecute opens up acrobat.exe showing the newly saved file, but if i click the empty field in the PDF or press any button, acrobat.exe crashes.
I have tried placing shellexecute in differenct callbacks but no success.
here is the shell execute.
ShellExecute(NULL, "open", "C:\\Program Files (x86)\\Adobe\\Acrobat 10.0\\Acrobat\\Acrobat.exe", "d:\\test.pdf", NULL, SW_SHOWNORMAL);
I have opened a different pdf than the newly saved one instead, but still the crash exists.
Do u have any idea what i might be doing wrong.
Jahangir

Thanks for responding G Sch.
LOL. Well this lemming doesn't habitually rename .exe files (e.g. Adobe DNG Converter.exe) to a non-spaced alternative either! (Adobe_DNG_Converter.exe)
Still no luck...
*** Here is my batch file...
REM Copy and DNG-convert files from CF
CD c:\RAW_files
dir c:\RAW_files
"C:\Program Files\Adobe\Adobe DNG Converter.exe" -d C:\DNG_files
dir c:\DNG_files
pause
***Here's the DOS shell output...
<<BEGINS>>
C:\RAW_files>dir c:\RAW_files
Volume in drive C is Local Disk
Volume Serial Number is D084-58ED
Directory of c:\RAW_files
12/03/2008 10:29 AM <DIR> .
12/03/2008 10:29 AM <DIR> ..
11/03/2008 07:00 AM 10,661,632 _3110455.ORF
11/03/2008 07:01 AM 10,661,632 _3110457.ORF
11/03/2008 07:01 AM 10,661,632 _3110458.ORF
11/03/2008 07:02 AM 10,661,632 _3110460.ORF
11/03/2008 07:02 AM 10,661,632 _3110461.ORF
11/03/2008 07:03 AM 10,661,632 _3110462.ORF
11/03/2008 07:03 AM 10,661,632 _3110463.ORF
11/03/2008 07:04 AM 10,661,632 _3110464.ORF
11/03/2008 07:04 AM 10,661,632 _3110465.ORF
9 File(s) 95,954,688 bytes
2 Dir(s) 2,619,731,968 bytes free
C:\RAW_files>"C:\Program Files\Adobe\Adobe DNG Converter.exe" -d C:\DNG_files
C:\RAW_files>dir c:\DNG_files
Volume in drive C is Local Disk
Volume Serial Number is D084-58ED
Directory of c:\DNG_files
12/03/2008 02:46 PM <DIR> .
12/03/2008 02:46 PM <DIR> ..
0 File(s) 0 bytes
2 Dir(s) 2,619,731,968 bytes free
C:\RAW_files>pause
Press any key to continue . . .
<<ENDS>>
As you can see (a) Source files exist(b) DNG command line runs without generating an error (c) no output files in destination.
DNG Converter did not run.
If I remove everything after the command (i.e. the parameter list stuff) it fires up DNG Converter in interactive mode. Not what I'm after.
Any other thoughts on what the problem is?
Thank you.
Rob

Similar Messages

  • How to close Acrobat.exe from the task manager processes through plug-in?

    I have a plug-in in which we have a functionality of defining some keys and they are displayed as annotations on the PDF. Now, if the user defines such a key, an annot (i.e.a rectangular box) gets displayed on the PDF and if the user does not click custom menu say 'Close Key' then annot remains visible on the PDF.
    My problem is if in such a case i.e. the user has defined a key & if the user does not hit 'Close Key' and instead closes Acrobat by directly hitting close (i.e. [X] button at top right corner), then Acrobat exits; but the Acrobat.exe remains running in the Processes.
    If the user tries to open the same PDF again then a message pops up saying 'Cannot open file for viewing as its already in use...'.
    Note that any other PDF gets opened fine.
    Could somebody help me in giving me any ideas/suggestions on this? I want to exit the acrobat.exe from the processes so that the same PDF could get opened. As described above, the cause is the key (annot) was opened and user abrubtly exited Acrobat. Is there a way, that we could catch this Acrobat exit event in the plug-in? That way, I'd be able to clear off the annot (key) and then close acrobat.
    Please let me know asap.

    Hey, tnx for ur response! But, the issue is reproducible on Acrobat 7.0 Professional.
    I do have the 'WillClose' event registered in my plug-in. Below is the event that is wired up with 'WillClose' event:-
    static 
    ACCB1 void ACCB2 NotifyAVWillClose (AVDoc doc, void *clientData){
    UNREFERENCED_PARAMETER(clientData);
    UNREFERENCED_PARAMETER(doc);
    CloseTemplate(TRUE);
    The 'CloseTemplate' method performs the closing of the annotation, clearing of objects and deleting the PDFfile class pointer.
    And this all works fine with Acrobat.exe getting closed from the task manager processes in acrobat versions 8 & 9. However, in Acrobat 7.0, the process remains in the Task Manager.
    Could you suggest any ideas on what else needs to be implemented to end the process in Acrobat 7?
    Thanks!

  • Win2000 NoClassDefFoundError running java.exe from DOS prompt

    I am using Windows 2000 with J2SE v 1.3.1_02 and have a problem when I run java.exe from the command line for classes that are defined to be in a package. I can both compile and run this program from the TextPad editor but when I run it from a DOS prompt I get the error "Exception in thread "main" java.lang.NoClassDefFoundError: MyClass"
    My CLASSPATH is set to D:\
    The files MyClass.java and MyClass.class are in the directory D:\MyProject
    here is the source:
    package MyProject;
    public class MyClass
         public static void main(String[] args)
              System.out.println("MyClass main");
    Note that if I comment out the package statement and add "." to CLASSPATH then it runs from the DOS prompt. Why does the program run from inside TextPad but not from the DOS prompt? Seems to be some type of bug in java.exe on Windows 2000 when the keyword package is used.

    It turns out that if you use the main method in a class that declares the package statement you need to use the fully qualified name to run the program. Using this statement works for this problem:
    java MyProject/MyClass
    the forward slash is required even though is a Windows system.

  • Request to run updater.exe from an unknown publisher starting firefox

    every time Firefox is started from initial turn on of computer (not from the computer being hibernated or in sleep mode), I receive a message to run Updater.exe from an Unknown Publisher. There is nothing to show that this is a Firefox application but, I am not receiving any threat messages either. Is there any way to find out where this Updater is coming from and if it is to be trusted?

    Do you use a Norton security suite? If so, I suggest checking with Norton's support on whether that prompt is legitimate.
    You will find numerous unofficial distributors advertising on Google for Firefox downloads. These generally are bundles of crap along with Firefox. You should check to make sure you don't have such a thing installed.
    Open the Windows '''Control Panel''', Uninstall a Program. After the list loads, click the "Installed on" column heading to group the infections, I mean, additions, by date. This can help surface undisclosed bundle items that snuck in with some software you agreed to install. Take out as much trash as possible here.
    You can supplement your regular security software with the '''scanning/cleaning tools''' listed in our support article: [[Troubleshoot Firefox issues caused by malware]]. These on-demand scanners are free and take considerable time to run. If they finish quickly and especially if they require payment, you may have a serious infection. I suggest the specialized forums listed in the article in that case.
    Does that help?

  • I cannot uninstall Firefox, either through Control Panel Add/Remove or by running helper.exe from Program Files.

    Nothing happens when I click on REMOVE for Mozilla Firefox from the Add/Remove screen of Control Panel. I then tried to run helper.exe from the Mozilla Firefox folder in Program Files, but that wouldn't run either. Any suggestions?
    == This happened ==
    Just once or twice
    == When I tried to uninstall Firefox

    unistalled foxtab, however the window saying "want to add this pers. button to toolbar" no matter what I do I can't get it off , close firefox, remove or delete or get a new firefox download to replace it in the harddrive etc. Its locked up firefox and I have to use safari to access the web. how do I get this circular message etc. off ?

  • Trying to run an .exe from within pdf

    I am trying to run an executable file from within a pdf.  I get the error "This file is set to be launched by this pdf file.  This is currently disallowed by your administrator."  Error box is labeled "acrobat.exe"
    Using:  Adobe Acrobat 9 pro
    Windows 7
    This has worked with previous versions of Acrobat, is it still possible to do?

    This is disallowed for security reasons.
    See the "attachment configuration" section at : http://learn.adobe.com/wiki/display/security/Application+Security+Library to change this behavior.

  • Problem  in executing EXE from browser-URGENT

    Hi all,
    I am facing a problem in executing "c exe" file from my web based application, iam using IAS
    on Solaris. my program is able to catch the path but its not executing (this is wirking fine in windows) i am giving a sample code here
    Runtime rt=Runtime.getRuntime();
    Process pro=rt.exec("/datadisk1/java/runsol.exe");
    pro.waitFor();
    runsol.exe will generate s text file when executed, when i run this in a independent java program then it is executing, on browser it is not executing and output text file is not creating.
    Note: i am working on Solaris / Oracle AS 9i
    Thanks
    Bye.

    Security issue. Calling .exe from applet not possible by default.

  • My company blocks executables from running in the Temp folder. How can I install Firefox without it trying to run download.exe from a temp folder?

    I found a workaround for the problem of not being able to run executables from the Temp folder.
    I happened upon the Full Firefox installer download page. I downloaded the full installer and used WinRar to extract the downloaded file to a folder then I could run setup.exe and Firefox installed successfully.
    Please publish the link to the full Firefox installer on the same page where the stub installer is published.
    Thank you.

    Hello,
    Full installers can always be downloaded here:
    * https://www.mozilla.org/en-US/firefox/all/
    I am assuming you went to this page:
    * https://www.mozilla.org/en-US/firefox/new/
    I notice the page has changed a little from the last time I saw it, but you can reach the first link I posted by clicking "Systems & Languages".

  • Running an exe from within Oracle WebLogic 10g R3 does not find dll

    Hi,
    I am facing a strange issue with Oracle WebLogic 10g R3.
    I use the code as shown in Listing 1 below to run a windows based application exe (batch job) from within my web application hosted on Oracle WebLogic 10g Release 3.
    Note that this code woks fine on Tomcat 6.x and OC4J (JDeveloper TP4).
    The exec gets executed but the log of the exe program shows it could not load certain DLLs.
    Note that these DLLs are in the same directoy as the Batch program and this directory is in the PATH.
    Running through simple Java Program Successful*
    When I run the same program from a java program it runs successfully. So this means some WebLogic environment does not get set properly.
    Running directly BatchProg.exe rather than cmd.exe fails*
    Also note that when I run the exe directly e.g. BatchProg.exe rather than through cmd.exe it gives me a error the system did not find the file specified.
    CreateProcess error=2, The system cannot find the file specified with cause java.io.IOException: CreateProcess error=2, The system cannot find the file specified
    Listing 1:*
    String[] commandArgs = new String[|http://forums.oracle.com/forums/] { "cmd.exe", "/C", "BatchProg.exe \"param1\" \"param2\" " },null , l_workingDir)
    Runtime rt = Runtime.getRuntime();
    Process proc;
    proc = rt.exec( commandArgs, envParams, workingDir );
    ProcessIO errStream = new ProcessIO( proc.getErrorStream(), "ERROR");
    ProcessIO outStream = new ProcessIO( proc.getInputStream(), "OUTPUT");
    errStream.start(); // process any errors from the command
    outStream.start(); // process any output from the command
    System.out.println("Error=" +errStream);
    System.out.println("Out" + outStream);
    return (p_waitToFinish ? proc.waitFor() : this.SUCCESS);

    OK.
    I have posted this on the WebLogic Forum.
    Thanx.

  • Associating my current PDF files to Acrobat 10 from Acrobat 9

    I am here in the forum because the stinkers at Adobe Tech Support said they could only help with CURRENT products. That's poor customer service.  I'm needing to point all my PDF files to my new Acrobat X Standard that I installed.  I removed the Acrobat 9.0 but when I go to Control Panel --> Default Programs --> Set Associations, and I choose .pdf and then click Change Program -- I do not see Acrobat X as an option to point my files to.
    Is there something I'm doing wrong?
    Update:  I finally got it done by searching on google.  You can open the Acrobat program, go to Edit --> Preferences --> General and click the Select Default PDF Handler button and designate it that way. 

    Hi orrery66 ,
    Thank you for posting on the Adobe forums. Yes, the way you chose it is also a way to select the file association for it.
    However, you can also set the file association by, choose the file>Right click>Open with>choose default program>select Acrobat from the list.
    If, Acrobat is not in the list, click browse and select Acrobat.ex from the install directory (E.G.C:\Program Files (x86)\Adobe\Acrobat 11.0\Acrobat)
    Thanks,
    Vikrantt Singh

  • Run an .exe from Portal?

    I'm new to Portal and was trying to find out if it is possible to run an exe on a wintell box from portal via a button or link? Any info would be appreciated. Thanks!

    Hi,
    you can only do this if the file is in a directory that is accessable through explorer.
    then, if you create a batch file that runs the exe file. you can create a hyperlink to the explorer address of the batch file.
    exe files will ask if you want to download or run, bat files just run.
    regards Michael

  • Problem  run Sapinst.exe

    Hi, i have the problem with run sapinst.exe
    I installing Netweaver 7.0  EHP2 in Windows 2003 server 32 bits
    i have the following number installation:
    - 51040135_11      BS7i2010 Installation Master Windows Server on IA32 32bit
    - 51040135_12      BS7i2010 Installation Master Windows Server on IA64 64bit
    - 51040135_13      BS7i2010 Installation Master Windows Server on x64 64bit
    I using option  51040135_11 but no show all options installations, only show option: "standalone Engines", "optional standalone units" and "Software life-cycle option"
    Whe run option 51040135_13 show messages: "sapinst.exe is valid, but is for a machine type toher than the current machine".
    The option 51040135_13 if show all option installtions. I need install netweaver 7.0 EHP2 stack Java.
    I could help?

    Hi,
    It seems for windows 32 bit OS there is no installation options for NW7 EHP2
    WINDOWS SERVER 2003/IA32 32BIT  Released Conditionally  19.04.2010     
    WINDOWS SERVER 2003/IA64 64BIT  Released  19.04.2010     
    WINDOWS SERVER 2003/X64 64BIT  Released  19.04.2010     
    WINDOWS SERVER 2008/IA64 64BIT  Released  19.04.2010     
    WINDOWS SERVER 2008/X64 64BIT  Released  19.04.2010     
    WINDOWS SRV 2008 R2/X64 64BIT  Released  02.07.2010     
    See the PAM for NW7 EHP2.
    I think its better to have a 64 bit machine or install lower version of SAP.
    Thanks
    Deepthi

  • Problems running external programs from java

    Hello.
    I wrote a pair of perl scripts and a GUI in java to run them. The first perl script just read the files in one directory makes some changes to the names of the files and then group all this files in a set of new directories. The other perl scripts takes all this new files and calls BLAST sequence alignment program and perform some alignments among these sequences. I tested this scripts and they work fine.
    The problem comes when I try to run them for the JAVA GUI. I use RunTime and when I need to run the first perl script it all works well, but when The call to the second perl script is made the program fisishes without doing anything at all. I found out that the problem is that when running the script from the Java GUI it's not able to find BLAST program. So I guess that Java is not really starting a terminal session and it doesn't read my bash_profile to find out the path to my programs.
    So, my question is if anyone knows a method to tell Java to load all this paths in the bash_proflie file so all of my scripts work???.
    I have no idea is this can be done and how so any advice would be really wellcome.
    By the way, my java version is 1.4.2 and my OS is Mac OS X 10.3
    Thanks a lot , Julio

    Invoke /bin/sh -c and give it your program's full path with.
    (To understand what I've written, maybe reading
    http://www.javaworld.com/javaworld/jw-12-2000/jw-1229-traps_p.html
    http://mindprod.com/jgloss/exec.html
    and
    http://java.sun.com/j2se/1.4.2/docs/api/java/lang/Runtime.html
    (especially the exec(String[] cmdarray) method)
    might help)
    -T-

  • How to run geniatagger.exe from java

    Hi,
    i'm trying to run geniatagger-1.0.exe from java on windows vista, using Process pr = Runtime.getRuntime().exec("C:/geniatagger-1.0/geniatagger-1.0.exe");
    However, i keep on getting the same error. "Cannot run *.exe CreateProcess error=2" . I tried the same code with excel.exe which is installed in C:/ProgramFiles
    and it worked. I also tried to create a path variable C:/geniatagger-1.0/geniatagger.exe;%path% and then run the same java code. Yet, nothing has changed.
    I would really apreciate any help

    dalab wrote:
    Sorry, i didn't realise that the link was already sent! I found that earlier as well. I"I..." what?
    "I ...figured it out"?
    "I ... still need help"?
    You're not a vampire named Trever are you?

  • Run an .exe from java

    i want to run an exe file. can any one tell me which command i should give 2 it
    thanks in advance

    You need to use java.lang.Runtime.exec(). Read the javadoc very thoroughly and search these forums for more information. This question has been answered very frequently here.

Maybe you are looking for

  • How to test a simple PL SQL function from another PL SQL script

    Hi, I have created a function. Now i need to test that whether it is returning the correct values or not. For that, i have written anothe pl sql script and trying to call this function. Im passing all the IN parameters in that function. I assume here

  • Ituns on a mac mini 2k mem   Help

    I just have gone to Mac from IBM clone this month. Best thing I ever did. Now for my question. I have crated too user's and have a music file on lacie fire wire drive and both users acsess the same music files. If I run any other prog wile listining

  • Deleting Limit Items on PO even though follow on documents exist

    Dear SRM Experts I am hoping someone can explain the below behaviour: Where PO's have follows on documents i.e. confirmation and /or invoice you cannot delete PO's items on a PO. This makes sense. However we also have PO's with Limit items(created vi

  • Artists listed out of alphabetical

    Hi, Just got my MBP about a month ago and realized that my iTunes listing by artist is out of order (alphabetically). For example, I have artists listed in A, then it jumps to some E artists, then it goes back to B. The problem of jumping back and fo

  • HT201593 Itunes 12 does not have the "Manually manage music" option

    I have itunes 12 and the "manually manage music and videos" is not there. "Manually manage videos" is the only option. I use itunes for work and I NEED a fix. I am unable to drag and drop as well.