OpenDoc and Reader to open a PDF in a new window

I have a button that when clicked launches: app.openDoc("Samples.pdf");
The script works fine in Acrobat Pro, but does not work in Reader. Is this a restriction in Reader? Is there another method of opening a PDF from within the form?
The functionality I am seeking is straightforward: the button is placed besides a drop-down list of items and the PDF file shows examples of the various items.

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

  • Is there a way to navigate to another slide and have it open in a pop-up/new window?

    Is there a way to navigate to another slide and have it open in a pop-up/new window?

    Hello Sreekanth,
    What I want to do is create a link that when clicked on opens a file or another captivate file in a new window with no address bar so that when you are finished viewing in the new window it can be closed and you are back on the original window.
    Thanks,
    Alan

  • Opening a PDF in a new window

    I'm using Captivate 3 and have a button with a simple link to
    a pdf file. The pdf file loads okay but it takes over the popup
    window which the training is in.
    I'm using an LMS and the Captivate file appears in its own
    window, i've tried changing the url to either
    current/new/parent/top but its not what i want.
    new causes it to open a new window in the same popup window
    which i could 'possibly' have, best solution of a bad bunch.
    But want to simply click on the link and a brand new window
    opens with the pdf ? Sure i've tried everything ?
    Any ideas ?

    Hi psj3809
    Since you seem to have exhausted all the Captivate supplied
    possibilities, I'm guessing the only recourse you really wish to
    consider may be to use JavaScript. You may be interested in the
    following link:
    Click
    here.
    Cheers... Rick

  • Interactive PDF InDesign - how do I create button to open a PDF in a new window?

    Hi all
    I'm creating an interactive PDF in InDesign CS5.
    This PDF contains a button I've made that links to another, separate, PDF file.
    This is all working fine - trouble is, when I click the button to open the second PDF file, the first PDF automatically closes.
    Is there any way to make the second PDF open in a new window, keeping the first PDF open?
    Your help would be much appreciated!

    It requires adding JavaScript in Acrobat. It cannot be done in InDesign. You should ask in the Acrobat Forum.

  • Opening PDF Document in New Window

    Hi,
    I have requirement to open pdf document in new window. I'm using Travel Expense form. I'm using the FM PTRM_WEB_FORM_PDF_GET. When I give 'X' to i_display_form, it displays the pdf document in same session or window. But I would like to open the pdf file in new window.
    The FM gives me pdf data of type RAWSTRING. Is there any FM or class where I can pass this data and open it in New Window.
    Can anyone please suggest on this.
    Regards,
    JMB

    download it using  gui_download and use cl_gui_frontend_services=>execute to execute that pdf file

  • Adobe reader XI crash and hangs when open the pdf file

    After update the adobe reader xi 11.0.10, the reader always crashes and hangs when open the pdf file. Please help me how to do.

    Ben Leung wrote:
    HThis situation is started after I clear the pop up advertisement.
    What kind of advertisement?  In Adobe Reader?  Can you post a screenshot of that: https://forums.adobe.com/thread/1070933
    Regarding the crash, can you try disabling Protected Mode through the registry: download, unzip, then run the registry script https://files.acrobat.com/a/preview/49eeb48b-07c5-4502-984c-8a25259914fa

  • 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.

  • When I save eps file as a PDF it loses whole colours, but I can see the colours in preview and if I open the PDF in Photoshop. What is going on?

    Has anyone else encountered this? I want to save a 2 colour logo (CMYK) as a print ready PDF but when it opens in Adobe Acrobat the black is missing or the green is missing. I can see all the colours there in preview and if I open the PDF file in Photoshop, all the colours as as they should be!!!

    No.. sorry.. it does not seem possible effect .. if you can write you must be able to read..
    Are you using the TC with user profiles?
    What security are you using for disk access?
    What happens if you do turn on full guest access to read and write.. ?
    When the Mac that can save but cannot read does drop the file onto the TC,, can the other Mac's see that file? In other words is the file really there.. has it copied correctly. I still think if it has copied and you cannot read it back there is some permissions issues.
    Try creating a new user on the Mac that has issues.. and see if the new user and read and write correctly. Make sure the new user has at least equal rights as the users on the Mac's that can read and write without issues.
    Your intial question suggested this problem was spread over more than computer.. your second reply has reduced the issue to just one computer.. logically the issue is not the TC.. it is that computer. Ironically I have found logic for computer troubleshooting falls well behind voodoo. 

  • READER IX opening equipment PDF to perform an internal Word SEARCH. How is this done?

    Using Reader IX to open a Service Manual and then a Word SEARCH. How is this done?

    thanks....
    In a message dated 8/17/2014 9:00:29 P.M. Pacific Daylight Time, 
    [email protected] writes:
    READER  IX opening equipment PDF to perform an internal Word SEARCH. How is
    this  done?
    created by ashutoshmehra (https://forums.adobe.com/people/ashutoshmehra) 
    in Adobe Reader - View the full  discussion
    (https://forums.adobe.com/message/6649441#6649441)

  • I DL ver 9,10,11 of Free Adobe Reader - cannot open any PDF file.

    I get an error message "The instructions at xxxx referenced memory at xxxx. The memory could not be written." What is wrong?

    tI did as you instructed and got no good results. I even restored my Adobe files from several weeks ago from Carbonite and could not load Adobe REader nor open any PDF file that I was previously able to open.
    When I try to open a PDF file, I get a web page that has two panes. One pane on the left has a red box area with some options. The pane on the right is grey and has some options. The web page disappears after about 5 seconds so I can't read it all.
    I tried opening three files after reinstalling Adobe Reader and after restoring my Adobe files. One folder that I restored as "Cache" and had a file inside called "AcrobatFnt11 then another file called AdobeCMapFnt11 and the other file called AdobeSysFnt11.
    I'm extremely anxious to be able to open and load all my PDF files like I was able to for years before.
    Thank you.
    [spam links removed again!]

  • Adobe keeps crashing, you can be on a web page reading and the browser opens the page in a new browser. I did not have this problem the older versions. What can I do to fix this problem.

    adobe keeps crashing, you can be on a web page reading and the browser opens the page in a new browser. I did not have this problem the older versions. What can I do to fix this problem.

    See [[Firefox keeps opening many tabs or windows]]

  • Cannot open a PDF within IE9 on Windows 7

    Hello,
    I am experiencing an Adobe Reader 10.1 issue with computers running Windows 7 32 bit with IE9. When the user goes to a SharePoint page and tries to open a PDF we see the following error:
    "There is a problem with Adobe Acrobat/Reader. If it is running, please exit and try again. (1:1)".
    There is no other instance of Adobe Reader running. The user accounts that log in are domain user accounts and have user level security access. They can open PDF files that are stored locally on the hard drive but they cannot open any PDF that is listed on a SharePoint page and only see the error message stated above.
    I have been looking at different forums. I have tried the suggested fixes but none of them have worked.
    I have tried the following things but they did not work:
    Repaired\Reinstalled Adobe Reader
    Unchecked the "Display PDF in browser" setting
    Made sure "Do not save encrypted pages to disk" was unchecked
    Run the SharePoint page in compatability view
    On one of the Windows 7 computers I created a local user account. Added it to the local Users group. Logged in and launched IE9 and navigated to the SharePoint page. I clicked on a PDF link and received the same error as stated above. I then moved this new local user account to the Power Users group and performed the same test with the same results. I moved this local user account to the Administrators group and now I am able to view PDF files within the IE9 browser. I tried this with other administrator accounts and all works fine. So it appears to be a security rights issue. I looked at the GPO's and did not notice anything that would cause this issue. Of course, I am not a AD guru so I might have missed something.
    I have loosened security rights on several Adobe directories but that did not work.
    I need to have domain users with user level security access to be able to view PDFs in the IE9 browser. Any help is greatly appreciated.

    thanks Jono But I cannot see any option to set Target Version.
    the options I have are XDP Preview format and PDF Render Format which are set to Acrobat 7 static PDF form.
    I have set a permissions password on the form using Acrobat 8 and under Password security settings , I have set the compatibility as Acrobat 5.0 or later. However, When I look at the form properties by opening the same form in LiveCycle, the compatibility still shows Acrobat 8 static PDF form.
    How do I get this form to be opened by users in Adobe 7?
    Appreciate your quick response.

  • Open PDF's in new window in document library when using "Find a file" search

    I need to be able to open PDF's in a new window from a document library when using the "Find a file" search built into the document library "All documents" view. I currently have the following javascript on the page:
    _spBodyOnLoadFunctionNames.push("setTargetBlank()");
    function setTargetBlank()
    { $("a[href$='.pdf']").removeAttr('onclick').attr("target", "_blank");
    This works great when going to the document library and navigating through the folders then clicking on a link.
    The problem is when someone goes to the document library then uses the "Find a file" search and then they click on a link. The "Find a file" search does not do a postback (reload) of the page, therefore my javascript to find the PDF links
    and make them open in a new window does not run for the links on the page.
    I have read the following article but this does not seem to offer a solution that will work in this situation for SharePoint 2013 (Office 365): http://social.technet.microsoft.com/Forums/sharepoint/en-US/7ad3224c-3165-47ae-95bc-4f3928e2f9a8/opening-document-library-pdf-in-a-new-window-sharepoint-2013?forum=sharepointgeneral
    I suppose the idea solution would be to somehow tap into the event that is fired when using "Find a file" search to run my javascript and update the links for the search results.
    Can anyone offer any solutions to this issue?

    Hi,
    According to your description, my understanding is that you want to open PDF files in a new window from a document library when using the "Find a file" search.
    As you said, the "Find a file" search does not do a postback (reload) of the page, therefore JavaScript to find the PDF links and make them open in a new window does not run for the links on the page.
    I recommend to use JS link to achieve the goal. Create a JavaScript override file and upload the JavaScript file to the Master Page Gallery, and then set the JS Link property of the document library web part to point to the JavaScript file.
    Here are some links about the JS link in SharePoint 2013 for you to take a look:
    http://www.idubbs.com/blog/2012/js-link-for-sharepoint-2013-web-partsa-quick-functional-primer/
    http://www.learningsharepoint.com/2013/04/13/sharepoint-2013-js-link-tutorial/
    http://zimmergren.net/technical/sp-2013-using-the-spfield-jslink-property-to-change-the-way-your-field-is-rendered-in-sharepoint-2013
    Thanks,
    Victoria
    Forum Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
    [email protected]
    Victoria Xia
    TechNet Community Support

  • From a PDF in a browser window - open links within in that PDF in a new window

    BACKGROUND SCENARIO:
    Users view a PDF document within their browser window (default behavior at my organization).  Key point is, the PDF isn't being viewed in an Acrobat Reader window, it's being viewed within the browser window.
    Within that PDF, are many links to intranet pages. And incidentally, this PDF happens to be a document that is updated frequently (More on this caveat in a moment)
    EDIT: The end users are end users, smart people, but not necessarily super-sophisticated computer users.
    MY QUESTION:
    When a user clicks a link within the PDF, I want the new page to open in a new window, NOT in the same window that the PDF was being viewed in.
    I've done a fair amount of homework:  The prevailing answer is to use Acrobat Pro's "LINK" feature to turn the hyperlink into a javascript command that opens the link in a new window, and to do this (a) MANUALLY, (b) ONE LINK AT A TIME, and (c) Repeat steps (a) and (b) EACH TIME the document gets updated.   (Back track now to my earlier caveat.. this is a frequently changing document with lots of links... Doing manually and repeating the whole process each time the document is updated is a lot of work.)
    I believe there are some add-on products that make this easier too.
    So my question is...  Other than add-ons, Is there another way?  a better way?  a more efficient way?  Or is there another way, on the way?
    SOMEWHAT RELATED QUESTION:  (EDIT)
    Another answer that would more or less satisfy me:  is there a way either from the calling HTML page, or from within the PDF document itself, to force the PDF to open within its own Acrobat Reader window, rather than within the browser window?  That would mostly dodge the issue, by opening linked pages in the browser anyway.
    A little extra background information: The document also uses password protection (a management requirement), which is why opening the links in the same window is such a pain.  Back-keying back to the document after viewing the link requires re-typing the document password, a noted pain.  I'd accept a fix to that particular problem too, but I don't think there is one.  Either way, the new-window question is one I'd like to solve.  (FYI, I asked the password retype question separately over in the security forum, here:  http://forums.adobe.com/message/5055162#5055162).

    You can't update the destination for a link using JavaScript, because there's no way to read the link's current action. While there is a setAction() function to create a new action on an existing link, there's no "getAction" function.
    In terms of how a PDF file opens, nothing in the document or in the HTTP headers can influence whether the file is opened in the browser or on the desktop - that's a user preference. What you can do with scripting on the server is send HTTP content-disposition headers that define the PDF file as something the user should download and save, rather than something the browser should try to open.

  • How can I open all PDFs on my MS Windows desktop in Firefox?

    I would like to open all PDFs on my local MS Windows desktop open in Firefox so I can use tabs.
    How can I open all PDFs on my MS Windows desktop in Firefox?
    I have tried just going to File... Open... <desktop PDF file>, but all I get is funny markup and funny characters, like the following:
    %PDF-1.4 %âãÏÓ 3 0 obj << /Producer (PDF-XChange 3.60.0128 \(Windows XP\)) /CreationDate (D:20110321141052-04'00') >> endobj 5 0 obj << /Type /XObject /Subtype /Image /Width 2551 /Height 3285 /BitsPerComponent 8 /ColorSpace /DeviceGray /Length 500647 /Filter [/FlateDecode /DCTDecode] >> [...]
    I am able to open PDFs from the Internet normally using the Adobe Reader X plugin, but for some reason, it doesn't kick in when I open local PDF files.
    I am using Firefox 4.0.1 and Adobe Reader X.
    Thanks. -Noel

    Do you have any graphics editing software like photoshop or something similar.?
    Surely you can just open both images, resize the image you want to add, then copy and paste it into the main image. Save this as a new file and set it as the background.
    If you need a graphics editing program you can download one called The Gimp for free. Just make sure you have X11 installed.
    Macbook   Mac OS X (10.4.7)   1.83 2GB RAM 60GB HD

Maybe you are looking for