Using OpenDoc to open a pdf in the exisiting window

I figured out the syntax for opening a document in the same folder with no path.  But it opens it in a new window.  I would really like it to open in the same window as my original document, just like it would if I were to use the "open a file" command and select "existing window".  The reason I'm not just doing that is because I have to create ALOT of PDFs with links to each other and when I copy a control between PDFs it doesn't bring over the actions for the control except for javascript.  If I use javascript, its easy for me to just change one or two names of the file references rather than having to renavigate to all the files I'm linking when I start a new document.
This is my basic code to open a file:
app.openDoc("TemplateTest1.pdf", this);
Its placed on the mouse up event of a control. I thought the "this" part meant this window but I guess it doesn't since it opens the file in a new window.
The final version of this document will be accessed via internet explorer on a corporate intranet.  when I open the document in internet explorer and execute the openDoc script, it opens the acrobat application as a new window while the original document remains in internet explorer.  I want the new document, which is saved in the same location as the original, to replace the original document in internet explorer.  I have done this before via bookmarks by assigning an open file action and specifying it to open in the existing window.  I just dont know how to specify that instruction in javascipt.
Or if for some reason this isn't possible.  Can I use the javascript to redirect internet explorer's address to the new document?  If I do it this way I will need to get the address and then replace the exisiting file name with the new file name I want to link to.  Is this possible.  I'm interested in learning about both methods.
Sorry If Its rediculously basic.  I am just learning javascript specifically for this PDF project.

Everything I've read about hostContainer both in the JS documentation and through examples other users have provided indicate that it is mainly used when a PDF is embedded in some other document such as an html web page and you need to communicate between the pdf and the hostContainer the examples i've seen seem to indicate that the hostContainer is the web page itself and not the browser.  My document isn't embedded in a web page, it is simply open using the browser's pdf plug-in.  I've seen another example where someone tried to user app.LaunchURL("www.mywebpage.com/mydocument.pdf").  I tried this aslo but I get the error "Security settings prevent access to this property or method."  All I want is for a new pdf document to be loaded in the same window when the user clicks a button.  I've done this with no problem before when I used the "open a file" action on bookmarks created for each of the PDFs.  And when I set the action I specified "open in existing window".  The actions worked correctly whether the pdf was open in Acrobat Professional, Acrobat Reader, or a Web Browser.   Isn't there an acrobat javascript that does the same thing?  When I did this before I used bookmarks and then used batch processing to add the bookmarks to all of the PDFs so I wouldnt have to recreate them in each one.  This time I want to use buttons to have more screen real-estate and to better control the visual appearance.  I know I could still use the "open a file" action wth a button, I was just hoping there was a javascript alternative so I could have more control over it.

Similar Messages

  • Open multiple pdfs in one acrobat window

    There are many things annoying about Acrobat, but the one that really gets me is that the option to open multiple pdfs in the same window, rather than splattering them all over the toolbar, apparently has been removed in the latest versions.  I have been using Foxit for pdfs for the past few years and am only now returning to acrobat because we've purchased a piece of software that requires a plugin that works only in acrobat.
    Tabs are the proper solution.   How long ago did Firefox shake up the browser community with tabs, 15 years ago?   Where was Acrobat?   For a while, they bodged together a preference that would keep them all in the same window (no tabs however), but even that is gone.

    You can make a feature request here:
    https://www.adobe.com/cfusion/mmform/index.cfm?name=wishform
    On Thu, Sep 4, 2014 at 8:15 PM, whatsamattau <[email protected]>

  • Open several PDFs in the same Reader window using tabs for each document

    How do I open several PDFs in the same Reader window using tabs for each document?  I'm using Reader 11.0.03 and Windows 7.  

    That would be a nice feature!  Suggest it at https://www.adobe.com/cfusion/mmform/index.cfm?name=wishform - hopefully it will make it into Reader XII.

  • I am having problems with the Preview application.  When I try to use it to open a pdf document it gets hung-up and I have to select force quit to close it.   Any ideas on how to resolve this problem?  Thanks for any help

    I am having problems with the Preview application.  When I try to use it to open a pdf document it gets hung-up and I have to select force quit to close it.   Any ideas on how to resolve this problem?  Thanks for any help

    Can you open the Preview program without loading a file, like by itself?
    If it doesn't load then I suspect a corrupt Preview preference file.
    Deleting the System Preference or other .plist file
    Can you open other files with Preview, like jpg's and images?
    How about other PDFs? or is it just that one you have downloaded?
    Run through this list of fixes
    Step by Step to fix your Mac

  • When I try to open a PDF file the reader flashes on the screen then closes

    When I try to open a PDF file the reader flashes on the screen then closes. I have to open the reader, then search for the pdf file through the reader. I'm using Adobe Reader 11.0.5 with windows 7 service pack 1 home premium. Is there any way I can just click on a PDF file and the reader automaticaly opens? I purchased the upgrade so I can convert PDF to Word but it didnt make any difference.

    Some things to try...
    Update Reader to version 11.0.06
    Using Windows Explorer navigate to C:\Program Files (x86)\Adobe\Reader 11.0\Reader, then double-click on Eula.exe and accept the license agreement
    Can you open Adobe Reader by itself?  If so, try disabling Protected Mode [Edit | Preferences | Security (Enhanced)].
    If you cannot open Reader by itself, try to disable Protected Mode in the registry; download, unzip, then run the attached registry script
    It could even be a malware issue; see http://helpx.adobe.com/acrobat/kb/reader-core-dll-error.html

  • Cannot open a PDF on the web due to end user agreement problem

    I own Acrobat 9. I recently installed my work version of acrobat CS5.5 at home. I want to read a PDF on the web. I just went thru this with live chat. Can someone please solve this problem. This is what I just wasted 15 minutes on:
    Thank you for choosing Adobe. A representative will be with you shortly. Your estimated wait time is 0 minute(s) and 3 second(s) or longer as there are 1 customer(s) in line ahead of you.
    You are now chatting with 'Raghu'
    Raghu: Hello. Welcome to Adobe Technical Support.
    Raghu: Hi Stephanie.
    stephanie: Hello can you please solve my problem
    Raghu: Yes, I'll be glad to assist you with the issue.
    Raghu: I understand that you are unable to open PDF because of  enduser agreement pops up.
    stephanie: I'm waiting
    Raghu: Am I correct ?
    stephanie: yes
    Raghu: Okay, can I have the serial number for Acrobat please ?
    stephanie: where is it?
    Raghu: The serial number is on the reverse side of the CD-ROM/DVD-ROM disc case or on a sticker on the CD/DVD sleeve.
    Raghu: If you had purchased the product from Adobe You will find the serial number on the order confirmation e-mail from Adobe Store and in your Adobe account as well.
    stephanie: That's at work.
    stephanie: I have acrobat 9 serial number. This is taking a lot of t5ime already. I just want to read a pdf on the web
    Raghu: I certainly understand your concern.
    Raghu: I'll certainly assist you.
    stephanie: Will you just solve the problem NOW
    Raghu: However I need to verify for the valid serial number for Acrobat from our customers.
    stephanie:xxxed out correct serial number
    Raghu: Please launch Acrobat X.
    stephanie: absolute power corupts absolutely
    stephanie: It is launched
    Raghu: Then click on 'Edit'.
    Raghu: Then select 'Preferences'.
    Raghu: Select 'Internet' from the list.
    stephanie: preferences is under axcrobat not edit
    Raghu: I understand you are using Acrobat X.
    stephanie: yes
    Raghu: You will find 'Preferences' under ;Edit'.
    stephanie: I ahve internet selected under preferences
    Raghu: Do you see the option 'Display PDF in browser' ?
    stephanie: Not under internett
    Raghu: When you click on 'Internet', on the right side panel on the same window you will see 'Display PDF in browser' .
    stephanie: It's grayed out
    Raghu: 'Allow fast web view' is selected ?
    stephanie: yes if I uncheck it nothing happens
    Raghu: I'm sorry to hear that Stephanie .
    Raghu: I'll provide you the link for the forums.
    stephanie: solve the problem
    Raghu: Please refer forums regarding this.
    Raghu: The serial number you provided me is not a valid serial number.
    stephanie: There is no help on the forums. I need to read a PDF NOW!!!!!!!
    stephanie: I told you it's a serial number for acrobat 9 that doesn't work either
    Raghu: You can read the PDF using Adobe Reader.
    Raghu: Please go ahead and install Adobe Reader.
    Raghu: I'll provide you the link to install Reader.
    stephanie: Your're insane. I want to use acrobat SOLVE THE PROBLEM NOW
    Raghu: Stephanie, please be informed that this is a professional chat. We can not assist the customer without the valid serial number.
    stephanie: I gave you a serial num,ber that is vgalid for acrobat 9. I wabnt to use it to read a pdf on the web.
    Raghu: Please contact us again with serial number for Acrobat X.
    Raghu: I understand your concern. However the serial  number you provided me is not a valid serial number.
    stephanie: xxxed out correct serial number is a valid number. I own it.
    Raghu: Yes this is a valid serial number for 'Design premium CS4'.
    Raghu: Earlier you provided xxxed out correct serial number
    stephanie: Yes. I want to read a PDF in Acrobat 9 which I own. SOLVE THE PROBLEM
    stephanie: I'm posting this entire dialong on adobe forums now
    Raghu: Stephanie, I see that the serial number is for CS4.
    Raghu: Support for this product is available only at Support portal and user forums.
    stephanie: I told you that. I want to use it. SOLVE THE PROBLEM
    Raghu: I would request to refer to our  Support portal and user forums for more information on this.
    Raghu: However, you can try reinstalling the product and check if it works.
    Raghu: I can understand your concern, however, the product is out of our support.
    stephanie: According to adobe forums that doesn't work.
    This is completely ludicrous.

    Your posting somewhat confused me.
    It sounds like you have two versions of Acrobat installed. You say you own Acrobat 9. You also say you installed a version of Acrobat  CS 5.5. Does that mean you installed the Adobe Creative Suite 5.5 on your computer as well? There is no such product as  Acrobat CS5.5. CS5.5 would install Acrobat X.
    However, if you had installed CS55 you may have to open at least one of the other CS5.5 applications before you can open Acrobat X. That's because Acrobat X is not well integrated into the Creative Suite.
    Am I understanding your situation?

  • WHEN I TRY TO OPEN A PDF FILE, THE READER OPENS  HUNDREDS OF MULTIPLE BLANK PAGES .

    I TRIED TO OPEN A PDF FILE ALL I GET IS HUNDREDS OF EMPTY PAGES
    WHAT IS THE PROBLEM WITH ADOBE 9 READER?
    OTHER PEOPLE CAN OPEN THE SAME MSSG WITH NO PROBLEM

    I DID THE UNINSTALL  AND INSTALL DID NOT SOLVE PROBLEM
    STILL OPEN MULTIPLE EMPTY PGS
    WHAT CAN I DO?
    Date: Wed, 14 Apr 2010 10:28:56 -0600
    From: [email protected]
    To: [email protected]
    Subject: WHEN I TRY TO OPEN A PDF FILE, THE READER OPENS  HUNDREDS OF MULTIPLE BLANK PAGES .
    Something is definitely wrong with your install of Reader.
    A PDF consists of only the number of pages it was created with.  Reader can and will only open those pages... IF it's installed and working properly.
    Opening multiple blank pages from a document which contains none is a clear sign that the software isn't functioning. It's like putting a movie into a DVD player, and your TV starts a picture slide show of your last Summer's vacation. Not possible unless there's something seriously wrong.
    Uninstall Reader 9.
    Use either Adobe's clean uninstaller or Windows Installer Cleanup Utility (http://download.microsoft.com/download/e/9/d/e9d80355-7ab4-45b8-80e8-983a48d5e1bd/msicuu2. exe) to remove all Reader installer files from your system.
    Reinstall Reader 9 from a new download (do not use the old one if you still have it on your system)
    >

  • I have a user on Adobe Reader X.  whenever they open a .pdf file, the form fields do not auto-fill u

    I have a user on Adobe Reader X.  whenever they open a .pdf file, the form fields do not auto-fill until you click in the box.  Is there a setting that can be changed to make the form open properly?

    Sounds like the form fields were filled in on a Mac using Mac Preview. This cannot be fixed in Reader only Acrobat. Ask the person who filled in the form to redo their work in Adobe Reader.

  • I get missing fonts when opening a PDF, but the fonts are activated, I get garbage

    I get missing fonts when opening a PDF, but the fonts are activated, I get garbage

    The activated fonts are not the same version as those in the PDF. If you use Type>Find Font and replace the fonts with ones from your computer does it work?

  • Opening .pdfs in the same window/tab.

    I look at a lot of .pdfs (Journal Articles) in my browse. Generally, I only download a fraction of the ones I look at. Recently, Firefox has stopped opening .pdfs in the same window/tab. Instead, it prompts me to download every .pdf I want to look at. I then have to save them, open them on my desktop, look at them, and then delete the ones I do not want to keep. Does anyone know how to get Firefox 10.0.2 to start opening .pdfs in the same window/tab again?

    Adobe PDF Reader is not on your list of Plug-ins submitted with your question (click on "More system details" to the right of your original question). If it is disabled on the Plug-ins list (''Add-ons > Plugins''), click "Enable". If it is not installed on your system (in your Programs folder), then download the installer and run the installer after it is saved to your hard drive (install with Firefox closed).
    *See --> [https://support.mozilla.org/en-US/kb/Using%20the%20Adobe%20Reader%20plugin%20with%20Firefox#w_installing-and-updating-adobe-reader Installing/Updating Adobe Reader in Firefox] ('''''NOTE:''''' un-check any items on the Adobe download page that you do not want installed on your system)
    *Also see --> [https://support.mozilla.org/en-US/kb/Opening%20PDF%20files%20within%20Firefox Opening PDF files within Firefox]
    '''If this reply solves your problem, please click "Solved It" next to this reply when <u>signed-in</u> to the forum.'''
    Not related to your question, but...
    You may need to update some plug-ins. Check your plug-ins and update as necessary:
    *Plug-in check --> http://www.mozilla.org/en-US/plugincheck/
    *'''''Adobe Shockwave for Director Netscape plug-in''''': [https://support.mozilla.org/en-US/kb/Using%20the%20Shockwave%20plugin%20with%20Firefox#w_installing-shockwave Installing ('''''or Updating''''') the Shockwave plugin with Firefox]
    *Adobe PDF Plug-In For Firefox and Netscape: [https://support.mozilla.org/en-US/kb/Using%20the%20Adobe%20Reader%20plugin%20with%20Firefox#w_installing-and-updating-adobe-reader Installing/Updating Adobe Reader in Firefox]
    *Shockwave Flash (Adobe Flash or Flash): [https://support.mozilla.org/en-US/kb/Managing%20the%20Flash%20plugin#w_updating-flash Updating Flash in Firefox]
    *'''''Next Generation Java Plug-in for Mozilla browsers''''': [https://support.mozilla.org/en-US/kb/Using%20the%20Java%20plugin%20with%20Firefox#w_installing-or-updating-java Installing or Updating Java in Firefox]

  • My AI program (CS5 Illustrator 15.1.0) will not open some PDFs. It was working just yesterday, but now will only open a PDF if the graphics of the PDF is visible in the box that appears in the lower left corner of the dialog box after you click Open. The

    My AI program (CS5 Illustrator 15.1.0) will not open some PDFs. It was working just yesterday, but now will only open a PDF if the graphics of the PDF is visible in the box that appears in the lower left corner of the dialog box after you click Open. The file size does not seem to matter. Any ideas?

    Hello Kathie,
    Sorry for the inconvenience that has caused to you.
    Please let me know if you have tried converting any other PDF to word with Reader.
    Alos, please sign up at "https://cloud.acrobat.com/" using your Adobe ID credentials. Click on 'ExportPDF' tab and upload the PDF that you want to convert to Word.
    Let me know if this converts fine.
    Hope to hear from you.
    regards,
    Anubha

  • I have uninstalled and reinstalled the most current edition of Adobe Reader, including the patch. When I open a PDF file, the screen is first grey, then viewable, but the message "Adobe Reader has stopped working" comes up. How do I remedy this?

    I have uninstalled and reinstalled the most current edition of Adobe Reader (11.9), including the patch. When I open a PDF file, the screen is first grey, then viewable, but then the message "Adobe Reader has stopped working" comes up. How do I remedy this?

    RR,
    One thing often tried first is to create a new document and File>Place the corrupted one to see how much may be rescued that way (remember to tick Paste remembers Layers in the Layer palette flyout/dropdown first, and to untick it afterwards).
    Here is a website where you can see whether it can rescue the file, and if it can, you may pay for a subscription to have it done,
    http://www.recoverytoolbox.com/buy_illustrator.html
    and another similar website,
    http://markzware.com/adobe-software/fix-illustrator-file-unknown-error-occurred-pdf2dtp-fi le-recovery/
    As far as I remember, the former is for Win and the latter for Mac.
    Here are a few pages about struggling with it yourself:
    http://daxxter.wordpress.com/2009/04/16/how-to-recover-a-corrupted-illustrator-ai-file/
    http://helpx.adobe.com/illustrator/kb/troubleshoot-damaged-illustrator-files.html
    http://kb2.adobe.com/cps/500/cpsid_50032.html
    http://kb2.adobe.com/cps/500/cpsid_50031.html
    http://helpx.adobe.com/illustrator/kb/enable-content-recovery-mode-illustrator.html
    Failing a full recovery, hopefully you have one or more earlier versions and/or bits of artwork saved before it happened.

  • Acrobat does not opens a PDF in the Browser at all times

    Required:
    I need to ensure Acrobat opens a PDF in the Browser at all times, and not have Reader hijack the task.  All fixes for this I have found won’t work as they render Reader inoperable. i.e. uninstalling Reader or denying users to the Reader executable AcroRd32.exe
    Situation:
    I have a problem with Adobe Reader and Acrobat Standard 8.2.5.  This is on a Terminal Server 2003 with 10 users.  They require both Acrobat and Reader be accessible due to specific 3rd party applications related to banking software. 
    Problem:
    They must open PDFs in a browser with Acrobat so they may fill the forms and save them.  Acrobat doesn’t consistently open the file; Reader hijacks the file when clicked to open and their ability to fill the forms is hindered. 
    -    Open PDF in browser is checked in Acrobat
    -    Open PDF in browser is NOT checked in Reader
    Sometimes when the Acrobat desktop icon is clicked, Reader opens instead.  Having Acrobat open in the background does help but is not consistent.
    Also uninstalling Reader from the Server is unacceptable due to a 3rd party banking application for loans.  This application is hard coded to open AcroRd32.exe within the application for opening PDFs. 
    Any suggestions would be greatly appreciated.
    Ken

    Try this, when I right clicked on the document to rotate the image a noticed a tool bar appeared at the bottom of the page with the save icon. It then disappeared, but by hovering at near the bottom of the document the tool bar appears and I can save the PDF.

  • Hey, im really sick of this, how can i open folders but in the same windows, when i open a folder which is inside of another one, it just open me a new window, its so annoying, could anyone tell me what to do? im using mac os 10.7.2

    hey, im really sick of this, how can i open folders but in the same windows, when i open a folder which is inside of another one, it just open me a new window, its so annoying, could anyone tell me what to do? im using mac os 10.7.2

    Finder > Preferences > General > Always open folders in a new window: uncheck

  • Neither my programs will open or can I open any PDF since the install.

    Installed the whole Adobe suite products and now I cannot open any PDF  or the program. It clicks, downloads, and does nothing! Help!

    What is your operating system?

Maybe you are looking for

  • InDesign CC (2014) Crashing

    InDesign keeps crashing for me when I 'change leading or cut and try and paste'. Please find Apple Crash Report Log below. I have already signed in and out of creative cloud, restarted my computer, uninstalled adobe programs, restarted my computer th

  • RS232 De-multiplexing data using Visa Read

    Hello I'm trying to do a simple task, but being new to this I'm having problems. I transmit data down a RS232 line at 9600 baud. I have two channel of data say x and y where A and B are one byte each. I multiplex/alternate them down the line i.e ABAB

  • IPhoto Library in iCloud

    I have almost 12,000 photos in my iPhoto library. Is it possible and practical to have my library in iCloud. I do have a backup copy on an external HD. But I am going to have to move the library off of my iMac because iPhoto is getting very beachball

  • Do Keywords transcend Projects?

    I have a number of projects where there are a number photos with Multiple keywords. However if i have a picture in Project A that has a Keyword that should be recognised in a smart Album in Project B that particular picture does not show in the smart

  • E70 firmware version update

    I have an E70 running the latest firware release (as far as I can tell): 2.0618.07.10 31-08-06 RM-10 Nokia E70 Product Code: 0538292 I've had this phone for about two months now and I have to say that it is hardly an improvement on my old 6822. It se