Acrobat Javascript button not loading when PDF is opened in browser

We have a requirement to have a custom print button in Acrobat Reader 9.1.3. We've created this via a JavaScript file stored in the users application data Adobe javascript folder. The button appears when Acrobat is started up normally and works as expected. However when opening a pdf file via Internet Explorer 7  acrobat is loaded inside the browser but the button does not appear automatically. Instead we need to right click on the tool bar and select Add on tools for the button to appear. Once loaded it works as expected.
Now I was wondering is there a way to make the button to appear automatically when acrobat is launched from within IE as my users are getting a bit annoyed now. I've been searching all over the place and can't find a solution to this.
Am hoping someone here might have an idea as to what the problem might be. I've attached the code I'm using below.
Thanks in advance
app.addToolButton({
cName: "myToolButton",
cExec: "printGreen()",
cEnable: true,
cTooltext: "Print to Green",
cLabel: "Print to Green"
global.objDoc = this;
printGreen = app.trustedFunction (
function()
app.beginPriv();
var objPrintParams = this.getPrintParams();
objPrintParams.printerName = "\\\\burns\\prn-cash-copier";
objPrintParams.interactive = objPrintParams.constants.interactionLevel.automatic;
this.print(objPrintParams);
app.endPriv();

OK... I'm still puzzled. There seems to be something else that controls whether Acrobat JavaScript runs or not.
If I'm loading a pdf stream though a http GET, JavaScript in Acrobat is run even when the setting in Edit->Preferences is disabled.
<body>
    <iframe height=600 width=400 src = "http://<some servlet that returns a pdf stream>" />
</body>
If I'm loading the pdf from a file...
<body>
    <iframe height=600 width=400 src = "<pdf file path>" />
</body>
... the expected warning (that Adobe javascript is disabled) pops up
The http response in the first case is something like...
HTTP/1.1 200 OK
Pragma: public
Content-Type: application/pdf
Content-Encoding: no-compress
Content-Language: en-US
Expires: 0
Accept-Ranges: bytes
Server: Microsoft-IIS/7.5
X-UA-Compatible: IE=EmulateIE7
Content-Disposition: inline;filename=<some UNC file path>
Server: WebSphere Application Server/7.0
X-Powered-By: ASP.NET
Date: Tue, 17 Jun 2014 19:19:09 GMT
Connection: close
%PDF-1.6
%����
2 0 obj
<</Metadata 36 0 R/Pages 3 0 R/OCProperties<</D<</RBGroups[]/ON[27 0 R]/Order 26 0 R>>/OCGs[27 0 R]>>/OpenAction 29 0 R/Type/Catalog/AA 31 0 R>>
endobj
Do you have any idea why this is happening?
Thanks,
Radu

Similar Messages

  • Disabling JavaScript when pdf is opened in browser

    Is it possible to disable AcroJS when the pdfs are opened in browser?
    The setting  "Enable JavaScript" in Preferences/JavaScript seems to disable JS only for pdfs opened natively.
    Thanks,
    Radu

    OK... I'm still puzzled. There seems to be something else that controls whether Acrobat JavaScript runs or not.
    If I'm loading a pdf stream though a http GET, JavaScript in Acrobat is run even when the setting in Edit->Preferences is disabled.
    <body>
        <iframe height=600 width=400 src = "http://<some servlet that returns a pdf stream>" />
    </body>
    If I'm loading the pdf from a file...
    <body>
        <iframe height=600 width=400 src = "<pdf file path>" />
    </body>
    ... the expected warning (that Adobe javascript is disabled) pops up
    The http response in the first case is something like...
    HTTP/1.1 200 OK
    Pragma: public
    Content-Type: application/pdf
    Content-Encoding: no-compress
    Content-Language: en-US
    Expires: 0
    Accept-Ranges: bytes
    Server: Microsoft-IIS/7.5
    X-UA-Compatible: IE=EmulateIE7
    Content-Disposition: inline;filename=<some UNC file path>
    Server: WebSphere Application Server/7.0
    X-Powered-By: ASP.NET
    Date: Tue, 17 Jun 2014 19:19:09 GMT
    Connection: close
    %PDF-1.6
    %����
    2 0 obj
    <</Metadata 36 0 R/Pages 3 0 R/OCProperties<</D<</RBGroups[]/ON[27 0 R]/Order 26 0 R>>/OCGs[27 0 R]>>/OpenAction 29 0 R/Type/Catalog/AA 31 0 R>>
    endobj
    Do you have any idea why this is happening?
    Thanks,
    Radu

  • DPS builder custom html page not loaded when you first open the application

    I created app with some customs html pages.
    I tick the "Auto launch" and when the first time I run the application, the page does not load.
    If you go to another page and return to - it is loaded. If you close the application and open it again - all loaded. But when you first open the application page does not load.
    What could be the problem?

    I created app with some customs html pages.
    I tick the "Auto launch" and when the first time I run the application, the page does not load.
    If you go to another page and return to - it is loaded. If you close the application and open it again - all loaded. But when you first open the application page does not load.
    What could be the problem?

  • Pdf buttons not working when pdf loads in browser

    hi
    I have a pdf with buttons which work fine. Once pdf is put on our website and you click on it, it opens in firefox ok but none of the buttons work.
    Safari, chrome - work

    The road to hell is paved with good intentions... FF wanted to provide their users an easy-to-use, built-in PDF viewer, which is good. Problem is that developing a fully compatible PDF viewer is a very complex task that requires a lot of time and effort, so they decided (it seems) to settle for something that's "good enough". So now users are stuck with something that usually does an OK job when it comes to just displaying a simple PDF file, but as soon as you have a more complex file (for example, one with form fields) it breaks down entirely and either fails to load the file at all, or does so incorrectly, and the developers are left sorting out the mess...

  • Buttons not working when workbook is opened. Error says about macro.

    Hi Gurus,
    I have created a workbook and it was working fine. But now when i open the workbook it throws an error saying " Cannot run the macro Workbookname.button_click. The macro may not be available in this workbook or all macros may be disabled" . What I find surprising is that it was working fine and it suddenly changed like this.
    It can be solved if I toggle between the design and analysis mode in Analyzer. Isn't there any other solution for this. I was wondering how my workbook suddenly changed its behavior. I would really appreciate if anyone could tell me a solution for this issue.
    Thanks in advance,
    Jerry Jerome

    Hi Jerry,
    Iam also facing the same problem ....were you able to get solution ..if yes plz share...
    When I Clikced on Add Macros button in Workbook Settings ,i was able to access the buttons ..but once i close and open the workbook iam again getting the same error..
    Iam not able to Save the Workbook settings afte Clicking on ADD Macros...
    Regards,
    Ravi

  • Lightroom upgrade will not load when it is opened.

    When I load Lightroom upgrade to 4.0 and try to open the upgrade it hangs during loading of the catalog.  I have uninstalled and reinstalled several times and the upgrade does not work.  I'm running Win 7 64 bit.

    It sounds like the software equivalent of a heart attack in old age! My prescription would be LR 5.7 used daily. 
    Bob Frost

  • Buttons not working when slide is open

    I bought my E65 like .. umm.. a week ago, n now when i open the slide " right button, mute button, c button contacts button and the exit button isnt working, n when i close the slide they works only... it has no warranty on it because i bought a used one.. so anyone knows how to solve this problem? its irritating me ..

    Hi Jerry,
    Iam also facing the same problem ....were you able to get solution ..if yes plz share...
    When I Clikced on Add Macros button in Workbook Settings ,i was able to access the buttons ..but once i close and open the workbook iam again getting the same error..
    Iam not able to Save the Workbook settings afte Clicking on ADD Macros...
    Regards,
    Ravi

  • I am having a persistent problems with the application tabs i pin not being saved. sometimes, they are not present when i re-open the browser.

    i have 3 sites i have repeatedly saved as an app tab. on the rare occasions i exit my browser, my pinned tabs are missing. furthermore, when i attempt to "restore previous session", the tabs that were open may be restored but the pinned tabs are ALWAYS missing and never restored.

    ''app-tabs not being saved...'''
    Be sure you close Firefox properly File (or "Firefox") > Exit not with the "x" in the upper right corner.
    Just because app-tabs will carry over from one session to another does not mean that they are fool proof or should be relied on., I keep mine in a bookmarks folder and replenish app-tabs from there when needed. It is also nice to have the "Tab Handler" to work with tabs and change all or a selection of tabs to app-tabs at once.

  • My firefox is not loading when my mouse pointer is inactive. It is loading only if i do something with mouse pointer.

    My firefox is not loading when my mouse pointer is inactive. It is loading only if i do something with mouse pointer.
    Im having latest firefox 25 beta.
    Win 7 32 bit OS. And its performance is very slow ,often gets struck while using gaming sites.

    {
    "application": {
    "name": "Firefox",
    "version": "25.0",
    "userAgent": "Mozilla/5.0 (Windows NT 6.1; rv:25.0) Gecko/20100101 Firefox/25.0",
    "supportURL": "https://support.mozilla.org/1/firefox/25.0/WINNT/en-US/"
    "modifiedPreferences": {
    "accessibility.typeaheadfind.flashBar": 0,
    "browser.cache.disk.capacity": 358400,
    "browser.cache.disk.smart_size.first_run": false,
    "browser.cache.disk.smart_size.use_old_max": false,
    "browser.cache.disk.smart_size_cached_value": 358400,
    "browser.display.use_system_colors": true,
    "browser.display.background_color": "#C0C0C0",
    "browser.places.smartBookmarksVersion": 4,
    "browser.search.useDBForOrder": true,
    "browser.sessionstore.restore_on_demand": false,
    "browser.sessionstore.upgradeBackup.latestBuildID": "20131025150754",
    "browser.startup.homepage_override.mstone": "25.0",
    "browser.startup.homepage": "https://www.google.co.in/",
    "browser.startup.homepage_override.buildID": "20131025150754",
    "browser.tabs.warnOnClose": false,
    "dom.max_script_run_time": 0,
    "dom.max_chrome_script_run_time": 0,
    "dom.mozApps.used": true,
    "extensions.lastAppVersion": "25.0",
    "keyword.URL": "http://search.yahoo.com/search?ei=utf-8&fr=greentree_ff1&type=800236&ilc=12&p=",
    "network.cookie.prefsMigrated": true,
    "places.database.lastMaintenance": 1382851446,
    "places.history.expiration.transient_current_max_pages": 80396,
    "plugin.importedState": true,
    "plugin.disable_full_page_plugin_for_types": "application/pdf",
    "plugin.state.flash": 2,
    "print.printer_Send_To_OneNote_2007.print_resolution": 131085,
    "print.printer_Send_To_OneNote_2007.print_command": "",
    "print.printer_Send_To_OneNote_2007.print_footerleft": "&PT",
    "print.printer_Send_To_OneNote_2007.print_scaling": " 1.00",
    "print.printer_Send_To_OneNote_2007.print_shrink_to_fit": true,
    "print.printer_Send_To_OneNote_2007.print_edge_bottom": 0,
    "print.printer_Send_To_OneNote_2007.print_plex_name": "",
    "print.printer_Send_To_OneNote_2007.print_paper_name": "",
    "print.printer_Send_To_OneNote_2007.print_edge_left": 0,
    "print.printer_Send_To_OneNote_2007.print_edge_top": 0,
    "print.printer_Send_To_OneNote_2007.print_paper_data": 1,
    "print.printer_Send_To_OneNote_2007.print_paper_height": " 11.00",
    "print.printer_Send_To_OneNote_2007.print_bgcolor": false,
    "print.printer_Send_To_OneNote_2007.print_page_delay": 50,
    "print.printer_Send_To_OneNote_2007.print_unwriteable_margin_bottom": 0,
    "print.printer_Send_To_OneNote_2007.print_margin_left": "0.5",
    "print.printer_Send_To_OneNote_2007.print_evenpages": true,
    "print.printer_Send_To_OneNote_2007.print_unwriteable_margin_right": 0,
    "print.printer_Send_To_OneNote_2007.print_margin_top": "0.5",
    "print.printer_Send_To_OneNote_2007.print_margin_bottom": "0.5",
    "print.printer_Send_To_OneNote_2007.print_edge_right": 0,
    "print.printer_Send_To_OneNote_2007.print_to_file": false,
    "print.printer_Send_To_OneNote_2007.print_resolution_name": "",
    "print.printer_Send_To_OneNote_2007.print_in_color": true,
    "print.printer_Send_To_OneNote_2007.print_unwriteable_margin_top": 0,
    "print.printer_Send_To_OneNote_2007.print_bgimages": false,
    "print.printer_Send_To_OneNote_2007.print_headerright": "&U",
    "print.printer_Send_To_OneNote_2007.print_oddpages": true,
    "print.printer_Send_To_OneNote_2007.print_paper_size_unit": 0,
    "print.printer_Send_To_OneNote_2007.print_downloadfonts": false,
    "print.printer_Send_To_OneNote_2007.print_unwriteable_margin_left": 0,
    "print.printer_Send_To_OneNote_2007.print_paper_width": " 8.50",
    "print.printer_Send_To_OneNote_2007.print_headercenter": "",
    "print.printer_Send_To_OneNote_2007.print_headerleft": "&T",
    "print.printer_Send_To_OneNote_2007.print_paper_size_type": 0,
    "print.printer_Send_To_OneNote_2007.print_margin_right": "0.5",
    "print.printer_Send_To_OneNote_2007.print_duplex": 99884576,
    "print.printer_Send_To_OneNote_2007.print_footercenter": "",
    "print.printer_Send_To_OneNote_2007.print_orientation": 0,
    "print.printer_Send_To_OneNote_2007.print_colorspace": "",
    "print.printer_Send_To_OneNote_2007.print_footerright": "&D",
    "print.printer_Send_To_OneNote_2007.print_reversed": false,
    "privacy.cpd.downloads": false,
    "privacy.cpd.sessions": false,
    "privacy.popups.showBrowserMessage": false,
    "privacy.donottrackheader.enabled": true,
    "privacy.cpd.formdata": false,
    "privacy.cpd.history": false,
    "privacy.sanitize.timeSpan": 4,
    "privacy.sanitize.migrateFx3Prefs": true,
    "security.warn_viewing_mixed": false,
    "security.warn_viewing_mixed.show_once": false,
    "storage.vacuum.last.places.sqlite": 1381502390,
    "storage.vacuum.last.index": 1
    "graphics": {
    "numTotalWindows": 1,
    "numAcceleratedWindows": 1,
    "windowLayerManagerType": "Direct3D 9",
    "windowLayerManagerRemote": false,
    "adapterDescription": "ATI Mobility Radeon HD 4570",
    "adapterVendorID": "0x1002",
    "adapterDeviceID": "0x9553",
    "adapterRAM": "256",
    "adapterDrivers": "atiumdag atidxx32 atidxx64 atiumdva atiumd64 atiumd6a atitmm64",
    "driverVersion": "8.631.0.0",
    "driverDate": "6-25-2009",
    "adapterDescription2": "",
    "adapterVendorID2": "",
    "adapterDeviceID2": "",
    "adapterRAM2": "",
    "adapterDrivers2": "",
    "driverVersion2": "",
    "driverDate2": "",
    "isGPU2Active": false,
    "direct2DEnabled": false,
    "directWriteEnabled": false,
    "directWriteVersion": "6.2.9200.16492",
    "direct2DEnabledMessage": [
    "tryNewerDriver",
    "10.6"
    "webglRenderer": "Google Inc. -- ANGLE (ATI Mobility Radeon HD 4570 Direct3D9Ex vs_3_0 ps_3_0)",
    "info": {
    "AzureCanvasBackend": "skia",
    "AzureSkiaAccelerated": 0,
    "AzureFallbackCanvasBackend": "cairo",
    "AzureContentBackend": "none"
    "javaScript": {
    "incrementalGCEnabled": true
    "accessibility": {
    "isActive": false,
    "forceDisabled": 0
    "libraryVersions": {
    "NSPR": {
    "minVersion": "4.10.1",
    "version": "4.10.1"
    "NSS": {
    "minVersion": "3.15.2 Basic ECC",
    "version": "3.15.2 Basic ECC"
    "NSSUTIL": {
    "minVersion": "3.15.2",
    "version": "3.15.2"
    "NSSSSL": {
    "minVersion": "3.15.2 Basic ECC",
    "version": "3.15.2 Basic ECC"
    "NSSSMIME": {
    "minVersion": "3.15.2 Basic ECC",
    "version": "3.15.2 Basic ECC"
    "userJS": {
    "exists": true
    "extensions": [
    "name": "AccelerateTab",
    "version": "1.4.1",
    "isActive": true,
    "id": "[email protected]"
    "name": "Advanced SystemCare Surfing Protection",
    "version": "1.0",
    "isActive": true,
    "id": "[email protected]"
    "name": "Convert YouTube videos to MP3 add-on",
    "version": "1.2",
    "isActive": true,
    "id": "[email protected]"
    "name": "Facebook Emoticons 2013",
    "version": "6",
    "isActive": true,
    "id": "{28BA24B8-5B3B-4BC9-9EB1-42021314B080}"
    "name": "SmartVideo For YouTube",
    "version": "0.978",
    "isActive": true,
    "id": "[email protected]"
    "name": "YouTube quality manager",
    "version": "1.2",
    "isActive": true,
    "id": "youtubequality@rzll"
    "name": "IDM CC",
    "version": "7.3.20",
    "isActive": false,
    "id": "[email protected]"
    "name": "TelevisionFanatic",
    "version": "2.71.1.10",
    "isActive": false,
    "id": "[email protected]"
    }

  • Presentation_Model javascripts are not loading while customizing OpenUI

    Hi All,
    I would like to know, if any one tried to customize the UI with given examples like adding google map hover, partialrefresh javascripts in Oracle documentation [Configuring Open UI.pdf]
    I tried to follow the steps given for changing "manifest_extensions.map" and "custom_manifest.xml" and added given js files in location "siebel\custom\*.js"
    But presentation_model javascripts are not loading while checking in developer tools in google chrome browser.
    Note: physical_renderer javascript was loaded. and i restarted server after modifications.
    Let me know if i'm missing any steps or settings. Thanks
    Best Regards,
    Venkat

    A same issue I have encount is:
    I write
    <KEY NAME="PartialRefreshPModel"> in Custom_manifest.xml.
    but it should be:
    <KEY Name="PartialRefreshPModel">
    You should check the case sensitive.

  • Since upgrading to Firefox 27.0 some webpages will not load when I click on them. It gives me a message saying that Firefox can't find the server.

    Since upgrading to Firefox 27.0 some webpages will not load when I click on them. It gives me a message saying that Firefox can't find the server. I have to click the link several time before it will load and sometimes when they do load it does not show the page right. It is like the HTML is messed up or something. I have tried everything I can think of. I started in safe mode, still did it., I removed add-ons, still did it., I reset Firefox and still did it., I completely uninstalled Firefox and re-installed Firefox and it still does it. I have tried Malware Bytes Anti-Malware scans and Avast boot-time scans and found no malware or viruses. I have found that those websites open the first time with no problems on my IE9 and they used to do so in Firefox 26.0. I'm at my wit's end. The website links are in my bookmarks and are used all the time so they are trusted and my avast is set to allow them. They range from news websites to gun websites and everything I have read says that Mozilla does not filter those unless something has changed recently.

    Try this as a first step;<BR><BR>
    Clear the Cache '''''Firefox/Tools > Options > Advanced > Network > Cached Web Content: "Clear Now"'''''<BR><BR>
    and<BR><BR>
    Remove Cookies '''''Firefox/Tools > Options > Privacy > Cookies: "Show Cookies"'''''<BR><BR>
    If there is still a problem,
    '''''[https://support.mozilla.org/en-US/kb/troubleshoot-firefox-issues-using-safe-mode Start Firefox in Safe Mode]'''''
    While you are in safe mode;
    '''''Firefox Options > Advanced > General'''''. Look for and turn off '''Use Hardware Acceleration'''.

  • Adobe Acrobat 8 will not convert a pdf to a jpeg

    Adobe Acrobat 8 will not convert a pdf to a jpeg. It just gives an error message and shuts down every time I to save it as jpeg. Any advice why this conversion will not work?  I use a PC and run Windows 7.

    The Acrobat 8 product family passed into End of Support years ago.
    Acrobat 8 is not compatible with today's OSs.
    Be well...

  • TS3408 why will some websites which loaded fine before now not load - when other favourites load fine, and new searches are fine?  This only affects 2 websites, both of which were bookmarked.  I have removed them as bookmarks and this makes no difference.

    why will some websites which loaded fine before now not load - when other favourites load fine, and new searches are fine?  This only affects 2 websites, both of which were bookmarked.  I have removed them as bookmarks and this makes no difference.

    From the Finder menu bar click Go > Go to Folder
    Type or copy paste the following:
    ~/Library/Caches/com.apple.Safari/Cache.db
    Click Go then move the Cache.db file to the Trash.
    Quit and relaunch Safari to test.

  • Ecore diagram editor does not load when I click the (aird) file

    When I click on an aird file , which I created for the first time to graphically edit an ecore diagram, the diagram editor does not load, but instead, Eclipse opens the aird file as xml in a text editor! Why this is happening? and how can I solve this? any thoughts?
    I am using Eclipse 4.4.2. in mac.
    I updated the content, with the hope to get a reply.

    Hi, sorry for the lag.
    This might happen depending on the perspective you are using, please try with the "Modeling" perspective.
    You should be able to load the .aird using right-click=>open and then see the corresponding diagrams as childs of the .aird file.

  • Firefox 6 will not load when I click the icon. I have tried to uninstall it, both through the control panel and geong straight to help.exe. In both cases nothing happens. How do I uninstall this program?

    Firefox 6 will not load when I click the icon. I have tried to uninstall it, both through the control panel and going straight to help.exe. In both cases nothing happens. How do I uninstall this program?

    Start Firefox in [[Safe Mode]] to check if one of the add-ons is causing the problem (switch to the DEFAULT theme: Tools > Add-ons > Themes).
    * Don't make any changes on the Safe mode start window.
    See:
    * [[Troubleshooting extensions and themes]]
    * [[Troubleshooting plugins]]
    If it does work in Safe-mode then disable all extensions and then try to find which is causing it by enabling one at a time until the problem reappears.
    * Use "Disable all add-ons" on the [[Safe mode]] start window to disable all extensions.
    * Close and restart Firefox after each change via "File > Exit" (Mac: "Firefox > Quit"; Linux: "File > Quit")

Maybe you are looking for

  • Problem With Device Management in Campus Manager

    hi , there are 474 devices in common services device managemant which I grouped them to userdefinedgroups . then I applied the auto allocation mode in Campus manager to apply all managed devices , when I click apply it mentioned that it would add 474

  • Free Service PO with Sub services

    I am preparing the Free service PO with Account assignment K or U Item category D and Description of service with Qty then Material Group and Plant with Free indicator check on. But as i am going to maintain sub services in Service, after giving text

  • BlackBerry Video Store

    I saw a post on blackberryos.com titled Introducing: BlackBerry Video Store for PlayBook http://www.blackberryos.com/blackberry-playbook/28635-introducing-blackberry-video-store-playbook.ht... The post has a link to register for the Blackberry Video

  • CRVS2010 Beta - Reports with JDBC or JavaBean datasource

    There is a reason why you can not  find crdb_jdbc.dll C:\Program Files\SAP BusinessObjects\SAP BusinessObjects Enterprise XI 4.0\win32_x86... 1) No previous versions of CR that bundled with .NET (CR 10.2, CR 10.5) included crdb_jdbc.dll 2) CRVS2010 i

  • Hi I am from Pakistan Plz help me???????????

    Hi,       I am from Pakistan I need you help kindly plz help me. Here I describe my problem to and hope fully that you shoud try your level best to solve and support to me. I shall very thank full to you in advance. Respected I have"Samsung saga i" m