Adobe PDF direct open in internet explorer problem

Hi all,
I have a problem when I want do download a pdf byte stream created by Jasper Reports. I read the necessary information out of my formbean (Struts). Here's the code from the jsp:
response.setContentType(runReportForm.getContentType());
String filename = runReportForm.getTechName() + "." + runReportForm.getMode();
response.setHeader("Content-Disposition", "attachment; filename='" + filename + "'\"");
byte[] bytes = runReportForm.getBytesOutput();
response.setContentLength(bytes.length);
ServletOutputStream ouputStream = response.getOutputStream();
try {
        ouputStream.write(bytes, 0, bytes.length);
        ouputStream.flush();
     ouputStream.close();
} catch (IOException e) {
}The content type for PDF is "application/pdf" or "application/octet-stream", of course.
Normally, it should open a download dialog with the question "Open" and "Save". In this download dialog is the Adobe icon displayed, too.
But in my case, I get the dialog with an empty (like unknown file format) icon, but the text says "Adobe Acrobat Document". When I click to open it directly it will open in a separately Adobe Acrobat window instead of displaying in the internet explorer. (Saving to the hard disk works fine).
Of course I have set the setting "display inside browser" in the options of my Acrobat Reader.
The same procedure with Excel (content type "application/vnd.ms-excel") makes no problems.
Thanks for any help.
Manuel

If you want to open the PDF in the browser you have to explicitely set the content type to "application/pdf", if you use "application/octet-stream" you'll always get the download box and when you choose to open from this box the reader will be used because the reader is configured to open PDF documents in the windows filetypes settings.

Similar Messages

  • PDF's opening in Internet Explorer 7 but are unreadable

    When clicking the link below the following - http://www.bsl.org.au/pdfs/BSL_VECCI_Barriers_to_hiring_entry-level_job_seekers_Vic_employ er_attitudes_survey_2009.pdf, a new tab opens in IE7 but the PDF is unreadable. It appears similar to a word document that is opened in notepad. This is happening on a certain PC which has the same Adobe Add-on as my PC (Adobe PDF Reader link helper), however the PDF opens fine in my browser.
    The Adobe Reader is has Display in PDF box checked.
    Any comments, feedback or even solutions much approciated.
    Regards,
    Rob Thomas.

    adobe1kenobe066 wrote:
    Site with the SWF with the link with target="_blank":
    http://solarinkgraphics.com/web.htm          • clicking on the IMAGE or the "ENLARGE" link should take you to a target="blank" url
    Site it should go to:
    http://thehoneymoonphase.com
    First off that first link to the graphics site does not work.  Getting a page not found error.  Although I was able to do a quick lucky guess and added an "l" to the end of the address and it worked.
    Second, because the link is embedded within a Flash document, your problem will lie within the ActionScript code as opposed to the HTML.  Thus you would be better off posting this in the Flash forum with your ActionScript code to get better troubleshooting responses.
    http://forums.adobe.com/community/flash

  • Re: How do I activate the Adobe pdf maker toolbar for Internet Explorer (Windows 8.1) Please !

    Greetings one and all.
    I would apprecite any advide and/or instructions on the designated subject matter.
    I downloaded the Adobe pdfmaker toolbar and activated it as per the instructions over the internet.
    It seemed to work well until I updagraded from Windows 8 to 8.1 (free upgrade).
    I'd appreciate any added feedback from any/all individuals who have experienced the same issue.
    Many thanks in advance.
    Bill Bakos

    Do you have all the latest point updates for Acrobat XI installed?  11.0.06 was the first point version to support IE11.

  • Hyperlink in MS office to pdf opens in Internet Explorer instead of Firefox

    I have some documents (Excel, Word) that contain hyperlinks.
    Hyperlinks to websites (www.***.com or http://***.htm) nicely open in Firefox. But links to online pdf's (http://www.***.com/***.pdf) all open in Internet Explorer.
    How can I change this?
    I'm using Windows XP pro, Firefox 3.0.5, Office 2003, Adobe Reader 9.0.0

    I have the same problem (roughly) - I have PDF hyperlinks in an Excel spreadsheet and, when clicked, instead of them opening directly in Acrobat (or via Firefox, my default browser), they open via IE. Regular HTML links in the Excel spreadsheet open in Firefox.
    I have enabled the '''Block PDF files' access to all web sites''' option under ''Trust Manager'' category in the Adobe Reader ''Preferences'' tab.
    I have also disabled the '''Adobe PDF Link Helper''' Extension in the ''Manage Add-ons'' tab in IE.
    Obviously, neither of these settings made any difference.
    * Windows XP Pro SP3
    * Microsoft Office Excel 2003 SP3
    * Internet Explorer 8.0
    * Adobe Reader X (Version 10.1.1)
    * Firefox 8.0

  • When I open a page from an email document it opens in Internet Explorer - how can I stop this?

    Hi, I use Firefox as my default browser but when I opened a link from an official emailed adobe document it opened in Internet Explorer - I want to force all browser links to open only in Firefox - I have checked the advanced options and Firefox is set to my default, please help.

    Hi PCM1, if i understand well the problem you have is when you click on a URL in a pdf file, the link opens in IE ? Have you checked in the default programs panel to see if all was well set ?

  • Did Adobe Acrobat/reader stop providing browser integrated PDF viewing(addin) for Internet Explorer?

    Did Adobe acrobat and reader stop providing browser integrated PDF viewing capability for Internet Explorer?
    Hi, I have been trying to view PDF's directly on my browser (Internet Explorer 9). We used to be able to have this available. To be honest last configuration that did work was Internet Explorer 8 with Adobe Acrobat 7. But I recently tried with Intenet Explorer 9 with Adobe Acrobat X and did not work as expected (I tried to activate the add in for Adobe but the adobe addin for PDF did not show up) I have the following questions:
    1) Do you still provide PDF's viewing capabilties on Internet Explorer?
    2) If yes: Is there a propper Add-in we (users) are able to install for Internet Explorer?
    3) if yes: Do we require to have Adobe Acrobat to have this capability? (this was my experience with IE8 and Adobe Acrobat 7)
    Additional Info:
    There seems to be an addin for Chrome wich works as expected (opens PDF in browser) to this current date. This does not happen on IE.
    Thanks in advance.
    AlbertCastle

    Are you using the 64-bit edition of Internet Explorer?
    The Adobe Reader/Acrobat plugin is 32-bit, and will not work on a 64-bit browser.
    Other possibilities: http://helpx.adobe.com/acrobat/using/display-pdf-browser-acrobat-xi.html

  • Print Preview missing when PDF opened through Internet Explorer

    No preview - no option to print. This is now affecting 4 of my computers so I'm assuming there is an update that is causing this.  It is effecting different versions.  One computer has Internet Explorer 9 and Adobe Acrobat Standard 9.0.  Another computer is running Internet Explorer 10 and Adobe Reader 9.  Both are having the same symtoms.  Here is an illustration.
    Normally it says "Preview - Image", also notice the xxx on the bottom of the preview and to the bottom left of the dialog box.  If I save the PDF and open it directly (outside of Internet Explorer) it works find.  Also using Firefox it works fine.  I believe its an update because its happened on 4 machines so I don't think its from someone changing settings.  What do I need to do to Print?  Help.
    Thanks,

    papanic wrote:
    I very much doubt that this is the way things are meant to work. If I open the pdf in Safari and rightclick>open it with skim, Skim displays the proxy icon, as Preview used to.
    Btw, the file's path still points to a tmp folder (webkitpdfs)
    So this is either a bug in Safari or Preview (because it impairs functionality), or, hopefully, there's some hidden preference somewhere which you can change and reactivate the proxy icon.
    Have you verified this as a Safari bug by checking that it works with FireFox?

  • FDF file opening in Internet Explorer--not in Adobe Acrobat Professional XI

    Good morning!
    I have created a form in Acrobat Professional XI and have a submit button that emails that data back as an .fdf file.  This is working as it should.
    However, on some of the returned emails, the .fdf file is opening in Internet Explorer--not in the associated file in  Acrobat Professional XI.
    Is this the default?  Is there a way that I can specify that it always opens in Acrobat?
    I looked on line, and found where you have to associate that type of file with Acrobat
    I have Windows XP
    in My Computer--in Tools, Folder Options, File Types, I have where FDF files are associated with Adobe Acrobat.
    Are there other changes that need to be made?
    We have a work-around--we can import the file data into the form--just takes a little longer.
    I tested this before I posted the form online, and it worked perfect.  Now that it is online, we are seeing some snags...
    As always--Thank you for your help!

    Thank you for your quick response!
    no--it is an fdf file.  Has an .fdf extension.
    One difference that I have noticed that the file that is opening correctly (in acrobat) was sent from a gmail account.  The file that is opening in internet explorer was filled out in Adobe Reader XI from an outlook email.
    This is the window that appears when the file is opened.
    On the Tools--the only items that are accessible from this screen is the AddOnTools--not all the tools sets.
    Any assistance would be greatly appreciated!

  • Hiding the menu bar of acrobat when opening in internet explorer

    Hi, i remember vaguely about a certain suffix you can give to the link of a pdf file so that when it opens inside internet explorer, it does not show the menu bar. Could someone help me out and tell me what this suffix is?
    I remember it was something like.... www.asfg.com/mypdf.pdf#NOMENU or something.
    If there is any other way to do this, it would be appreciated as well.
    Thanks,

    Read this:
    http://www.adobe.com/devnet/acrobat/pdfs/pdf_open_parameters.pdf

  • Portal and Internet Explorer problem

    Hi everyone. My problem is that I'm using Portal through the WEB AS Java stack SP09 and i can't update to the newer stacks since I'm on IDES system, so it has to be SP09. Well, my operating system Win 2003 x64 comes with Internet explorer 8 by default.
    i have some problems with IE8, Chrome or FireFox when browsing through the Portal, for example, I can't add to the Group "Everyone" End user permissions, because the "ADD" button is greyed out.
    I tried to uninstall the IE8, but i can't find the way to do it. I can't remove it through the Control panel (there is no option to remove it)
    nor can I do it through the Command Line with %windir%\ie8\spuninst\spuninst.exe    because I don't have the IE8 folder!!
    Do you have any ideas on how could i solve it?

    Thank you guys for the answers, but
    1/ I can't upgrade the SP lever, since I'm on IDES system and I don't have any Maintenance Certificates to installa packages, besides the fact that they have to be dowloaded through the Solution manager
    2/ I tries the compatibility mode and nothings's changed. The problem I'm having is that when I'm in the Portal and do a right-click for example in PortalContent > landscapesystem > SAP_BW. it opens the Internet Explorer menu and not the Portal's, so I can't choose "new" or "open" or "permissions"  and when i doble click it the drop-down menu that appears where I could choos the same options is too narrow and empty.....
    i donwgraded finally the IE to the IE7 version, but no luck either.  i tried to install the IE6, but there is no IE6 version for x64 bits systems.
    Any other suggestions? How could i make this context menu available?

  • Mostly websites are not open on internet explorer and other browsers in my laptop

    mostly web sites are not open in internet explorer and other web browsers in my laptop.

    Rob,
    Many thanks for your reply.  It is appreciated greatly.  I have added text against each of the points that you raise.
    troubleshooting Addons is somewhat complex.....as from this side we do not know which addon may be causing the problem, so the
    only recourse is to disable the types of addons that commonly cause problems in IE (for security and usablility reasons some older addons that you may have used previously with IE8/XP are no longer compatible with newer versions of IE that you are now using)....
    The following instructions will stop your Toolbar and Browser Helper addons from loading in IE.
    Start>Control Panel>Internet Options>Advanced tab,
    uncheck "enable third-party browser extensions".
    close any open IE windows and restart IE for the changes to take effect.
    [GotaQ: Yes, did this but the problem then is that IE won’t open for me.  There is no icon in the start menu or task bar
    and routes such as using a command prompt or ‘run’ instruction don’t work.  When I try this I get a window on screen that flickers for a bit and then disappears.]
    Alternatively, your problem with keyboard input is most likely being caused by a form filling addon or a finger print reader
    addon? Note: some addons like the Google toolbar have multiple features like form filling, you can disable the GTB's form filling features from its settings dialog (click the 'spanner' icon on the toolbar)
    Use Tools>Manage Addons>Show all addons to locate any such addons and use the Addons Manager to disable them. (close and
    reopen any open IE windows for the full changes to take effect).
    [GotaQ:  I tried disabling all of the add-ons in Google Chrome and the key-stroke mapping problem persisted, unfortunately!]

  • TS4022 Why does my icloud open in internet explorer when it is not my main browser?

    Why does icloud open in internet explorer when I use Google as my main browser? I did something to make it happen and can't find how to change it back.

    Hey man I was having the same problem and I found the answer.... Im going to put the steps you have to follow.
    1.Open www.icloud.com on your Internet Explorer and if you're signed in you have to sign out.
    2. Open www.icould.com on your Google Chrome and then sign in and click on the box that says "stay signed in" or something like that.
    3. Try to open icloud the normal way you do it and it has to open on Chrome.
    This worked for me, hopefully it works for you man, let me know.

  • When viewing outlook emails in firefox, links open in internet explorer, not in firefox

    when viewing my outlook emails in firefox, when I click on a link the new webpage is opened in internet explorer not in firefox

    Thank you - that has solved the problem - links simply open in a new tab in firefox.
    Marvellous.

  • Adobe Flash Player 10 causes Internet Explorer 9 to stop working.

    Adobe Flash Player 10 causes Internet Explorer 9 to stop working.  This happens most of thge time when I play a video.  Does anyone know how to fix this problem?

    Try Flash Player 11.1
    What is your Windows version?
    What is your display adapter and device driver version (see http://forums.adobe.com/thread/945765)?

  • When in my email, my links open into internet explorer instead of firefox

    When I am in my email and a message has a link and I open the link, instead of going to firefox, it opens in internet explorer, I use firefox not internet explorer.

    Hello, I'm having this exact same problem since the last few days, somethings changed on how the hotmail webpage is loading, or what it's loading, as Google chrome also reports an 'Aw-Snap' webpage error.
    regards

Maybe you are looking for

  • Upgrade of OS 9.1 to 9.2.1 to 9.2.2 errors and system freezes on a G3 Pismo

    I am trying to upgrade OS 9.1 to 9.1.2 to 9.2.2 I have downloaded both upgrade packages onto my G5 iMac, burnt them on to a CD and copied them onto a G3 Pismo Powerbook. I unstuff the 9.2.1 upgrade download with its .smi suffix using Stuffit Expander

  • Web Server

    Any help would be appreciated. My question is as follows: Enabled server-side include in Web Server. When I put the following <!--#include file ="web-root directory/web/index.html" --> is working BUT when I put <!--#include file="index.html" --> is n

  • Problem with Texting in iOS7

    I am having trouble with iOS7 with texting.  Initial text is in blue surround and does not go through.  If I hold down on it the message pops up that says Copy l Send as Text Message l More.  If I hit the Send as Text Message it goes right through. 

  • HT202213 I am trying to download a book i purchased in itunes to my ibooks so I can stop and keep my place, how do I do it

    I am trying to sync a book i purchased in itunes to my iphone and ipad in the ibooks so I can stop and hold my place.  I did a regular sync and it did not convert, can anyone help?

  • Icon image is not shown properly in LInux

    Hi, I am creating a JDialog as follows: JDialog jd = new JDialog(frame, true); in the frame, I have set the icon using frame.setIconImage(image), but the image set to this is not shown properly in Linux, but it is shown clearly in windows, can anybod