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

Similar Messages

  • 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

  • I've installed the Adobe Reader Plug In. Yet every time I click to see a PDF, it opens another browser and it is blank. The Browser reads about:blank. How can I fix this so that PDF's open in the browser?

    I've installed the Adobe Reader Plug In. Yet every time I click to see a PDF, it opens another browser and it is blank. The Browser reads about:blank. How can I fix this so that PDF's open in the browser?

    Check your settings in Options > Applications: https://support.mozilla.com/en-US/kb/Opening%20PDF%20files%20within%20Firefox#w_check-firefox-settings
    Also see:
    *https://support.mozilla.com/en-US/kb/Using%20the%20Adobe%20Reader%20plugin%20with%20Firefox
    *http://kb.mozillazine.org/File_types_and_download_actions
    '''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 need to update some plug-ins:
    *Plug-in check: https://www-trunk.stage.mozilla.com/en-US/plugincheck/
    *Shockwave Flash (Adobe Flash or Flash): [https://support.mozilla.com/en-US/kb/Managing%20the%20Flash%20plugin#w_updating-flash Updating Flash in Firefox]

  • "Internal Error Occurred" appears when .pdf is opened from Outlook 2010 email

    "Internal Error Occurred" appears when .pdf is opened from Outlook 2010 email
    I am absolutely pulling out my hair over this one!!
    PC/Win 7 64bit/Adobe XI/Office 2010
    I have tried Uninstalling and re-installing
    I have tried using an adobe software removal tool
    I have tried modifying the security settings in reader
    I've tried running repair on MS Office
    If you open the .pdf from an email directly, it opens Reader with the error "Internal Error Occurred"
    If you drag and drop the .pdf onto the desktop, and then open it, it opens.
    If you open Adobe Reader FIRST, then open the .pdf from the email, it opens fine.
    ONLY when you open a .pdf from an email with Adobe Reader closed (so Outlook is asking AR to open first, and then present the .pdf) is it behaving this way.
    Hypothesis: Outlook 2010 does not like to open Adobe Reader.
    SO....tell me all of you brilliant geniuses? How do I solve this puzzle and become an end user's hero?
    PS: WorkAround - the only work around I have found for this at present, is that the user first opens up Adobe Reader and lets it run in the background. I pinned the shortcut to his task bar to remind him.

    I have uninstalled Adobe Acrobat Reader DC and installed Adobe Reader XI and everything works fine. This will be our current fix until a solution is found for the above error

  • Error OSR 11g when tring to open in browser

    Hi for All
    I installed OSR 11g, got this error when tring to open in browser: Http://localhost:7777/registry/uddi/web
    In browser:
    Error 500--Internal Server Error
    From RFC 2068 Hypertext Transfer Protocol -- HTTP/1.1:
    10.5.1 500 Internal Server Error
    The server encountered an unexpected condition which prevented it from fulfilling the request.In console:
    [oracle@app1arq2t jdk1.6.0_21]$ INFO: com.systinet.wasp.WaspImpl - Starting Systinet Server for Java/6.0 (Java/1.6.0_21; Linux/2.6.18-164.el5; build SSJ-6.0-20091204-1155)
    <Sep 9, 2010 10:53:23 AM BRT> <Error> <HTTP> <BEA-101017> <[ServletContext@1772602351[app:registry module:registry.war path:/registry spec-version:null]] Root cause of ServletException.
    org.idoox.wasp.WaspInternalException: java.lang.RuntimeException: Updates to config files not supported
         at com.systinet.wasp.WaspImpl.boot(WaspImpl.java:399)
         at org.systinet.wasp.Wasp.init(Wasp.java:151)
         at com.systinet.transport.servlet.server.Servlet.init(Unknown Source)
         at weblogic.servlet.internal.StubSecurityHelper$ServletInitAction.run(StubSecurityHelper.java:283)
         at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
         Truncated. see log file for complete stacktrace
    Caused By: java.lang.RuntimeException: Updates to config files not supported
         at com.idoox.config.xml.XMLConfigurator.updateConfigFile(XMLConfigurator.java:720)
         at com.idoox.config.xml.XMLConfigurator.prepareConfigFile(XMLConfigurator.java:570)
         at com.idoox.config.xml.XMLConfigurator.init(XMLConfigurator.java:420)
         at org.idoox.config.Configurator.init(Configurator.java:64)
         at com.systinet.wasp.WaspImpl.boot(WaspImpl.java:357)
         Truncated. see log file for complete stacktrace
    >My enviroment:
    - Linux RedHat 5
    - jdk1.6.0_21
    - Weblogic 10.3 x64
    - OSR 11.1.1.2.0
    + Patch 9499508_111120_GenericMy Domain:
    DOMAIN_HOME="/oracle/middleware/user_projects/domains/app1arq2t"
    /$DOMAIN_HOME/servers/AdminServer/...
    /$DOMAIN_HOME/servers/osr_server1/tmp/_WL_user/registry/x9u4h5/...Additionally in my Entreprise Manager the server AdminServer and osr_server1 are UP
    anyone with idea please,...
    Regards,
    Chris

    Hi Chris/Sayama,
    This error seems to happen because of the SMTP password provided being more than or less than 8 characters. The workaround is to either not provide any SMTP details or provide an exact 8-character password.
    For more information on this look at the metalink note [ID 1091903.1].
    Thanks,
    Edwin

  • Displaying Javascript console when PDF embedded in web browser?

    How do you debug Acrobat Javascript when running in the browser context (i.e. PDF is embedded in a web page via the object tag)? I can't get the console to display even when the script says console.show(). Is this possible? Given that the browser context allows different features I would say this is a very important feature to have.
    Thanks

    Thanks Dimitri. Does it have to be Acrobat rather than Adobe Reader?
    I tried this with Adobe Reader open in the background. It doesn't support ctrl + J but I forced it to open the console by:
    1) adding debugger.js to my Javascript folder
    2)  opening a PDF that had some document level Javascript that had console.show();
    The console displayed but was not written to by the PDF in the browser.

  • Sharepoint 2010 document library pdf files are storing in browser cache when it is opened in browser

     i have sharepoint 2010 site which consists of document library  with pdf files if we click on pdf file it will open in browser .But the thing is it is storing in browser cache  so i need to restrict that pdf to not store in browser cache.
    A,ny suggestions please

    Hi,
    We can use jQuery plugin to open the PDf file in browser.
    The following link for your reference:
    http://www.jqueryrain.com/2012/09/best-jquery-pdf-viewer-plugin-examples/
    Best Regards
    TechNet Community Support
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
    [email protected]

  • Force PDF to open in browser to preserve relative links?

    We have thousands of PDF files that are set up to include relative links within the document to other PDF files. The issue we're having is that when people have set up their browser to open the PDF as a separate application, the relative links revert to their C drive/temporary internet files and break (the link looks something like this: file:///C|/Users/callen2/AppData/Local/Microsoft/Windows/Temporary%20Internet%20Files/Cont ent.IE5/purchased_systems.pdf). Is there any way to force the PDF to open within the browser so that the relative links continue to work?
    If not, is there a way to do a blanket conversion of the links from a relative link to an absolute link so we don't have to go into each document and link separately?

    Hi
    You need to set Browser File Handling  to
    Permissive.
    Open Central Administration -> Manage Web Applications -> Select web application -> General Settings >>
    Browser File Handling >> set to Permissive .
    Regards, Rajendra Singh If a post answers your question, please click Mark As Answer on that ost and Vote as Helpful http://sharepointundefind.wordpress.com/

  • Can't save file from .pdf file opened in browser?

    Before, on my old laptop, with Vista or XP, when I opened up a .pdf link from a browser site, I had the option of saving the .pdf file, printing it, etc.
    Now, I can print the file, but I can't save it.  It looks like Adobe wants me to purchase acrobat.com.
    Is there a way to save the files?  Thanks.

    ronamater60 wrote:
    Do not purchase...  Adobe creating problems everywhere.  Use the trial if
    you must, but let them get things sorted out,  THEY are the problem
    While that may be true for you, it is not a common problem for all users. I use both Reader and Acrobat (along with many other Adobe applications) without issue daily on multiple computers with multiple Operating systems so your statement is way to generalized to be helpful.
    Have you tried getting help in this forum before?

  • Pdf not opening in browser

    Just starting yesterday I am unable to open a PDF file with my browser (Chrome) .
    It wants me to download the file.  Until yesterday I was able to open any file and just view it with the browser with out downloading it as a file.
    What do I need to do to be able to go back to viewing a PDF file with out downloading it?

    Hi toddp96226656,
    It seems that the PDF Viewer plugin has been disabled on Google Chrome.
    Please type " chrome://plugins/  " in the URL of your Google Chrome Browser. You will see a list of plugins there on the page.
    Enable the Chrome PDF Viewer plugin.
    Restart Google Chrome again & it will be working.
    Let me know if you still experience any issue. We  will be happy to help you.
    Regards,
    Aadesh

  • Highlight Fields when PDF is opened - LiveCycle 8

    LiveCycle 8
    Win XP
    Hi,
    I'm trying to automatically highlight the form fields on a PDF when it is opened. I want the form to act as though the user has chosen the "Highlight Fields" option/button.
    I would prefer a javascript function to fire (on itialize?) so I don't have to attach code to every field and possibly allow me to easily use it on future PDFs.
    My current thoughts are to loop through all fields on the form and set the fillColor property to a light blue "221,228,255". Here's the javascript I'm currently trying to use:
    for (var i=0; i < xfa.host.numPages; i++){
    ]var oFields = xfa.layout.pageContent(i,"fields");
    ]var nodesLength = oFields.length;
    ]for (var j=0; j< nodesLength; j++){
    ]]var oItem = oFields.item(j);
    ]]oItem.fillColor = "221,228,255";
    Unfortunately, I can't seem to get it to work. Also, I'm not sure where to put it once it does work so that it fires when the PDF is opened.
    Thanks for any help.

    Hi,
    In the File > Form Properties menu opens the dialog window. Go to the Defaults tab and check that the "Save script changes" is set to 'Automatic'. This will make sure that changes to the form from script changes will be saved with the form and honored when the form is reopened.
    Niall
    ...snap...

  • Chrome on Mac, Reader X, PDFs not opening in browser

    I've found lots of comments on problems with Adobe's Reader in various browsers in Windows.  However, I am thinking of transitioning to Chrome on my Mac, but I can't get Chrome to display PDFs in the browser using Adobe's plugin.  In fact, the plugin does not appear at all in the about:plugin list in Chrome.  I'm searching Chrome forums as well, but thought I'd ask here if anyone had heard of such a thing, and if they had workarounds.
    Thanks,
    Mark

    Currently Chrome is not supported in Adobe PDF Plug-In for browsers in Mac. You can view pdfs in Browser window for Safari Browser only in Mac. If you open pdf file in Chrome browser, it will download the file for you to open this through Adobe Reader.
    Thanks,
    Karan

  • Display PDF on opening new browser

    Hi Experts,
    Requriement: We need to open a new browser for dispalying PDF format converted from custome smartform. Currently I am able to view the PDF format on a new screen with the following code, but user want to see the same PDF format on new browser so that they can toggle between the screens for comparing data.
    Your answers would be really helpful. Please guide me how to achieve this through ABAP, we are using 4.7 version.
    Current code looks like this
    *--- convert OTF data
      IF sy-subrc EQ 0.
        CALL FUNCTION 'CONVERT_OTF'
          EXPORTING
            format                = 'PDF'
          IMPORTING
            bin_filesize          = lv_pdf_size
          TABLES
            otf                   = wa_job_info-otfdata
            lines                 = lt_pdf
          EXCEPTIONS
            err_max_linewidth     = 1
            err_format            = 2
            err_conv_not_possible = 3
            OTHERS                = 4.
    *--- convert RAW type to Unicode format - hexadecimal format
        LOOP AT lt_pdf INTO wa_pdf.
          ASSIGN wa_pdf TO <fs_line> CASTING.
          APPEND <fs_line> TO lt_pdf_uc_data.
        ENDLOOP.
    *--- load data to prepare URL
        CALL METHOD gv_html_viewer->load_data
          EXPORTING
            url          = gc_x
            type         = 'application'
            subtype      = 'pdf'
            size         = lv_pdf_size
          IMPORTING
            assigned_url = lv_url
          CHANGING
            data_table   = lt_pdf_uc_data
          EXCEPTIONS
            OTHERS       = 1.
    *--- display smart form
        CALL METHOD gv_html_viewer->show_url
          EXPORTING
            url = lv_url.
    Regards,
    Suman

    What you can do is create a new program just to display the PDF and attached a transaction code to it. In your main program, call the FM ABAP4_CALL_TRANSACTION ... STARTING NEW TASK to call it in the new session.
    You may use the FM DY_IS_EXTRA_IMODE_AVAILABLE before starting a new session to check if any session available.
    CALL FUNCTION 'ABAP4_CALL_TRANSACTION'
      STARTING NEW TASK 'ZZ01'    " << Task Name
      EXPORTING
        tcode                         = 'ZZ01'.  "  << New Tcode
    Regards,
    Naimesh Patel

  • How do i disable iMessage from my mac, i have looked at other comments and there is no option to disable it when messages are open

    how do i disable iMessage from my mac, i have looked at other comments and there is no option to disable it when messages are open

    Solution may be found if you search in the "More Like This" section over in the right column.

  • Why do antimated themes stop working when i re-open my browser?

    I can load any of the firefox themes that are antimated and they work fine. When I close down the browser and go back in the next time the animation no longer works. This has been happening on multiple computers, not just one. It has been going on for months. Just tried again today and same failure.
    I have checked all the things they recommend with no good results,
    THanks!

    See this reply by jorge-villalobos:
    *https://forums.mozilla.org/viewtopic.php?p=40955#p40955
    <blockquote>Animated themes no longer work in Firefox because of performance problems. You can install an animated theme and it will work the first time, but after then it will be static (the reason is that there's code that automatically crops the image to make it smaller). I didn't know (or remember) there was a block for animated themes on AMO, but it makes sense given that we no longer support them in Firefox.</blockquote>
    See also:
    https://forums.mozilla.org/viewtopic.php?f=30&t=20017&p=39585

Maybe you are looking for

  • MTO Material not confirming Qty available as cust stock -Is co06 Compulsory

    Dear Gurus, I created a sales order for a material which is on strategy group 50. There was no stock available while creating the sale order so No Qty confirmation could take place during Availability check. MRP was run, and after confirming the proc

  • How to install BI content on a new Netweaver 2004s SR1 installation

    HI Friends, I have installed new NetWeaver 2004s SR1 on Windows 2003 server :oracle 10g as a central system.The installation was succesfull. How to install the BI content addon  in the system?(not installing business content objects). Please let me k

  • How can I edit a word doc received in my icloud mailbox on my ipad?

    how can I edit a word doc received in my icloud mailbox on my ipad?

  • (Solved) Random Log Out

    Usually about 2 - 4 times a day I get logged out and lose whatever I'm working on. No rhymn or reason to it. Any ideas on how to troubleshoot? What logs to look at? Etc...:/ I'm using a Toshiba Satellite A105 S4284 at home on a wireless network. It's

  • 9i for solaris on intel?

    Hi, I have a 8.1.7 running on Solaris 8 for Intel. In the download area I can find only 9i for Solaris on SunSparc. Is there no version for Intel based Computers? The Sparc 32 bit version produces an error, if I try to install. Thank you Emil