Open or Save to harddiskoption pop up window needed when clicked on pdf lin

Subject : Open or Save to harddisk option pop up window needed when clicked on pdf link
I have a web application. There will be some pdf links in the application. When clicked on these links I read the content from database and output as bytestream. But when end user clicks these files the pdf will open in the browser or in Adobe based on his Adobe setting
Note : Experimentation done on Adobe Acrobat reader 5
Setting 1> Edit - Preferences - Options - Check on the 'Display PDF in browser' option
pdf opens up in the browser itself without asking any option
Setting 1> Edit - Preferences - Options - Check off the 'Display PDF in browser' option
on click it opens a windows pop up window asking me either to 'Open' or 'Save' . If I say Open it opens in Adobe.
Can this setting be controlled by my application itself [from Java servlets]? I want the opp up to be asked for every end user who clicks on the pdfs irrespective of what settings he has in Adobe Acrobat

I am not sure whether this will work. But it's possible to download the pdf file. Try the following
response.setContentType("application/download");
String filename = <<filename>>
response.setHeader("Content-Disposition","attachment;filename=\"" + filename + "\"");
Read the file into a bufferedOutputStream and then
int bytesA = bis.available();
response.setContentLength(bytesA);
write the content to ServletOutputStream..
Sagar

Similar Messages

  • I purchased Adobe Creative Suite C2 and have been using it for years on the same computer no problem with using it. Recently upon opening Photoshop I received a pop up window saying due to Adobe Software security we need you to activate your CS2 software.

    I purchased Adobe Creative Suite C2 and have been using it for years on the same computer without any problems with using it. Recently upon opening Photoshop I received a pop up window saying due to Adobe Software security we need you to activate your CS2 software. I tried, phone activation, web activation, nothing is working. I have the serial number and my Adobe account information. Any suggestions?

    Error: Activation Server Unavailable | CS2, Acrobat 7, Audition 3
    Mylenium

  • When opening the App Store a pop up window comes up and will not let me close it even when I touch outside the window

    When opening the App Store a pop up window comes up and will not let me close it even when I touch outside the window

    Close apps
    1. Double tap the home button to bring up the multi-tasking view
    2. Swipe the app's windows upwards to close
    3. The app will fly off the screen
    http://support.apple.com/kb/ht5137

  • Export the pdf from indesign some error Pop Up window (Failed to Export the PDF file). How slove the

    Export the pdf from indesign some error Pop Up window (Failed to Export the PDF file). How slove the problem
    Please some one help on this

    You need to try exporting the first half of the book.
    If that exports ok then export the other half of the book.
    Whatever half it fails on - keep dividing the book in half to find the culprit page or pages.
    For example if your book is 128 pages long:
    1. Export pages 1 - 63
    2. If these Fail to Export then
    3. try exporting1-32
    4. If these Fail to Export
    5. then try exporting1-16
    If it doesn't fail (step 2)
    Then export pages 64-128
    and 64-90 etc.
    until you find the pages causing the issues.

  • Reader v11 will not open in Windows Explorer (or browser) when clicking a PDF file; just a flash on the screen.

    Reader v11 will not open in Windows Explorer (or browser) when clicking a PDF file; just a flash on the screen. I can open Reader from Programs then open the file. I'm using a laptop upgraded to Windows 7

    I do no understand "flash on the screen"; could it be http://support.microsoft.com/kb/2716529 ?

  • Firefox hangs and will not allow me to access other programs running when I resize a pop up window, move a pop up window, accidentally right click flash content.

    Firefox hangs and will not allow me to access other programs running when I resize a pop up window, move a pop up window, accidentally right click flash content.
    == This happened ==
    A few times a week
    == Not sure when it statrted

    Hi.
    When this happens, please press CTRL+SHIFT+ESC and see how much RAM and CPU Firefox is using. If they're sky high, then... Well, that kind of issues are, unfortunately, more common and the we'd like. Thankfully, 99% of the cases are very easy to solve. However, you do need to diagnose what your exact problem is. Do this:
    #run Firefox in safe-mode to disable all extensions and plugins. If this fixes your issues, be them with RAM or CPU usage, then you know it's a problem with plugins or extensions. Proceed to number 2. If safe-mode doesn't fix the issues, then read bellow, after this list;
    #update all extensions and plugins in your Firefox. If this doesn't solve the issues, proceed to the following number;
    #disable all extensions and plugins in your Firefox (not running safe-mode). Being certain that, as in safe-mode, the problems you're having have gone away, enable one plugin at a time. You should be certain that you WANT that plugin to be enabled, so keep your overall number of plugins as low as possible. When you encounter the problems, you know you've found a problematic plugin, so disable it for good. Keep enabling all plugins (except problematic ones) until you've gone through them all.
    #enable one extension at a time. Again, be certain that you WANT that extension to be enabled, so keep your overall number of extensions as low as possible. When you encounter the problems, you know you've found a problematic extension, so disable it for good. Keep enabling all your extensions (except problematic ones) until you've gone through them all;
    #you're done! You've fixed your problems with problematic add-ons.
    Ok, if disabling all extensions and plugins through safe-mode didn't work to bring Firefox's CPU and RAM usage to good levels, then you have different issue. The most likely scenario is that you have a third party software running on your computer that is messing with Firefox. Do as follows:
    #do a virus/malware check on your computer. If this doesn't fix it, proceed;
    #disable all software running in the background that you don't want to have running in the background (in windows, this is done by pressing WINDOWS+R in your keyboard, typing "msconfig" (without the commas) and pressing enter. Now, under the "Startup" tab, you can uncheck the software you don't want, and reboot your system for changes to take effect. If you're unsure of what software you want running, ask someone with more experience). If this doesn't fix you issues with Firefox, proceed;
    #check your firewall/antivirus/security suite for enabled functions/features that you don't want and/or may be conflicting with Firefox. You'll find that these features are most likely tied to Internet Security features, such as link scanners or URL checkers and the like. If you're not sure they are conflicting with Firefox, simply try to disable to see whether or not that's true. As long as you don't browse the web with your antivirus completely off and your firewall completely turned off, there should be no problems. If this doesn't solve the issues, proceed to the following number;
    #check your operating system security options, mainly advanced options that are not configured by default. While it's very unlikely that this may be the cause of the problem (after all, it's the last item on the list), it's remotely possible. If this doesn't do it, I'm out of ideas. Except make sure you've followed my instructions correctly.

  • Pop up window occurs when assigning package in Transport Connection

    Hi
    After collecting objects through transport connection, when i click on Assign package button, a pop up window occurs, which says "Change package for the following Objects" and gives a list of all the objects and check boxes with it.What is the significance of this popup?...
    By default i can see that some infoobjects and other objects are checked in this.But some of the infoobjects selected here are not required for my transport. When there are large number of objects
    checked here, it becomes difficult to identify and uncheck the objects that are not required.
    Is there a standard way to handle this popup?..or Suggest some options to overcome this...so that unwanted objects are not collected here...
    Thanks in advance.

    I assume you want to transport your objects only. So just collect them in Transport Connection as you are doing now and make sure you have checked all required objects by you. And then just click Transport Icon (Truck). If any object from your list dont have yet package assigned, you can assign and then further collect in by giving transport number. You dont need to click Assign Package button.
    Abhijit
    Edited by: ABHIJIT TEMBHEKAR on Nov 17, 2008 1:13 PM
    Edited by: ABHIJIT TEMBHEKAR on Nov 17, 2008 1:13 PM

  • Pop up windows appear when using RP Data but the window is empty IE no data is displayed. How can I fix this?

    The real estate information web site, RP Data, has a mapping feature that should display a site map of the property being searched in a pop up window and it is this particular pop up that doesn't work; other pop ups work EG Google Street View.
    Please note that this is a members only web site.
    Any thoughts or assistance would be greatly appreciated.
    regards
    John

    Hi John,
    I am an employee at RP Data and have the solution to your problem.
    The mapping feature requires a free Java plugin for your browser. Please navigate to [http://java.com/en/ http://java.com/en/] and click on the ''''Free Java Download'''' link. Once installed close and reopen your web browser before loggin into RP Data and loading the map.
    If you run into any problems please contact our support team on 1300 734 318 who will be more than happy to assist you. Alternatively you can launch a support web chat feature via the rpdata.com website.
    Kind Regards,
    Daniel

  • Pop up screen needed when i close the window

    hi,
    how can i get a pop up window when i close my application(window)
    askin do u want to close.... am workin on jsp...can i implement this feature ...
    thanks in advance.......

    Hey ...I got a better script ...
    <BODY onbeforeunload="HandleOnClose()">
    Then, add the following JavaScript code into the <HEAD> section of your ASPX page:
    <script language="javascript">
    <!--
    function HandleOnClose() {
    if (event.clientY < 0) {
    event.returnValue = 'Are you sure you want to leave the page?';
    //-->
    </script>
    But do read about this from the following link
    http://dotnetjunkies.com/WebLog/familjones/archive/2004/04/06/10884.aspx

  • Change window size when clicking link?

    I recently converted a WinHelp project in RH5 that used
    secondary windows and I'm trying to stick with one window in
    HTMLHelp (and still learning a bit).
    In some parts of our app, pressing F1 opens a small window
    (not a popup) with a short description of a feature. There's a link
    at the bottom of the topic that will open a longer overview
    description. When clicking the link, I'd like to use the same
    window, but resize (make it wider) it to accomodate the bigger
    topic. In other words, I want the window to be narrow initially (so
    I don't cover the app) but change size when the link is clicked, so
    I can show the longer text without scrolling multiple pages.
    Do you folks do anything like this?
    Thanks in advance for any help,
    - Tom

    Tom -
    You could always use the ResizeTo function in your larger
    topic, something like this:
    <body onLoad="window.resizeTo(400, 500);">
    Or, something like that....

  • After updating to 7.0.6 my iphone no longer shows in itunes. However it is recognised by my PC (windows 8) when click on my computer. I have tried reinstalling itunes and making sure the drivers are up to date. Has anyone else had this problem?

    Hi guys. After updating to 7.0.6 my iphone 5s is no longer showing in itunes. Strangley it is recognised by my PC (windows 8) when I click on my computer. I have tried reinstalling itunes and making sure the drivers are up to date, but this has made no difference. Has anyone else had this problem or does anyone have any advice? Thanks

    Device not detected in iTunes for Windows

  • Drive restriction group policy causes error message when accessing Open and Save As Dialog Boxes on Windows 8.1

    We are running Windows 8.1 Pro x86
    I am really curious as to why the drive restriction group policy causes the error message to pop up:
    "This operation has been cancelled due to restrictions in effect on this computer. Please contact your system administrator."
    It does not prevent from actual saving so functionality is not lost but it really annoys our end users and we're getting a lot of complaints. We cannot use the workaround of hiding drives instead of restricting as this still presents security issues. This
    is happens when saving (or clicking on a button like "Browse" that opens the 'Open' dialogue box) in all Office 2013 applications, Internet Explorer, Paint, Notepad, and probably most others. I've looked at many forums and no suggestions for workarounds
    have succeeded for us to get rid of this error message and in fact, I read a post that stated that someone contacted Microsoft and they said this was by design and there is no workaround. I find this very unfortunate that we either have the choice of compromising
    security or annoying our end users. It seems to me like the new dialogue box in Windows 8.1 (and maybe 8?) attempts to access the local drive under the logged in user's account before it actually opens up the dialogue box which conflicts with the group policy
    that restricts access to the drive.
    Has anyone at all had any luck getting this to go away without removing the restrictions? It seems like the answer is either buried in the Windows code or somewhere in the registry.
    Thank you in advance for your time!

    Thank you for your time and response! Unfortunately, we have the machine locked down pretty tight (they are public use computers that require heavy restriction) and it is set to restrict all drives so access is limited to the local profile. We did try
    testing your method, however, by adding the Desktop as an allowed location in the Office policy (which would not solve the issue for the other applications but was good for a test) using the path %userprofile%\desktop. When choosing that location, it does
    not throw the error but unfortunately, it does not remember like it did for your with the E: drive so it still always throws the error when first loading the dialogue box no matter what I do. If you're able to confirm that this is simply by design and we're
    just expected to inform our users to click through the errors, then I guess that's the accepted answer. Although, do you think that there might be a registry key value that is set after you save to the E: drive for the first time? Maybe we could set that value
    to %userprofile%\desktop if it's doing the redirection after the first save through registry. Thanks again!

  • Opening a form in a POP UP window from report

    I would like to open a form in a new window from a
    link on a field in the report .
    Parameters should be passed from the report to form.
    Is it possible to do this with a portal link?
    Also After modification of the form & on click of save is it possible to close the newly opened window(form) & refresh the report to reflect the changes as both refer to the same table.
    Any Idea pls reply,
    Thanks in Adv,
    Sajith.

    Hi,
    You can achieve this using by sql based reports. Here is a sample code snippet
    select ''||
    to_char(empno)||'' empno
    from SCOTT.EMP
    Please dont forget to change the display type of the column to HTML in the column formatting section of the reports,
    otherwise the report will render the html code.
    You can have a close button on the form on which you can write a javascript which closes itself. You can write this
    on OnClick
    self.close();
    Hope this clarifies you doubt :-)
    Thanks,
    Sharmila

  • SharePoint Foundation 2010 - Your client does not support opening this list with windows explorer when clicking Open with Explorer

    when I tried to open document library in Windows explorer view by click 'Open with Explorer', it popped up “Your client does not support opening list with windows explorer”
    OS: Windows Server 2008 Enterprise x64
    IE: 9.0 32bit
    webcient service is runing
    HKLM\System\CurrentControlSet\services\WebClient\Parameters and changed the BasicAuthLevel to 2 instead of 1.
    Anybody knows how?
    Thanks.

    Did you add your site to trusted site list?
    http://sharepoint.stackexchange.com/questions/15098/your-client-does-not-support-opening-this-list-with-windows-explorer
    --Cheers

  • How do I save a Group Your Tabs Window? When I create a fresh Group Your Tabs Window it goes away when I close Firefox.

    I am currently beta testing Firefox 4.0. I love the Group Your Tabs option but every time I use it I loose what I have created when I close Firefox. How do I save my work?

    Hi,
    This is not a problem. You just have to go in options, in general tab -> start up options check the "Show my windows and tabs from last time"
    This should do the trick. It's not a beta bug or whatever. It's just a preference thing.
    Some people do not like having all their tabs opened from last time when they open the browser

Maybe you are looking for

  • Easy way to erase a router's config & reload an IOS? Dont know passwords..

    I've been given a couple of 3640 routers, one of them had no config and I was able to work with it. The other 3640 had some config on there and heres what I've done so far. *Change config regsiter and booted up to access the startup config. *Copied a

  • Installed apps are now "waiting"

    This morning, I turned on my iPad to discover that 90% (not all) of my downloaded apps are no longer useable and are noted as "waiting" and are slowly downloading. I have tried syncing to my computer to no avail. Any thoughts?

  • PI FTP error 426 during Windows IIS connection

    Hi, We are experiencing an issue between SAP PI 7.0 SP15 on P-Series AIX IBM Server and the Windows IIS FTP server. The interface in PI does connect to 3 systems with the FTP file adapter (a Mainframe, an AS400 and a Windows IIS FTP server). The main

  • Making an average of the last 100 values?

    Hi everyone, I am acquiring a signal every 1000mS with Labview 7.1. I need to make an average of the last 100 values every 1000mS. I know how to do this with shift registers but it would be a bit long to do it this way...There must be a better way Wo

  • BDC for F - 43, Multiple posting keys,multiple line items

    Dear gurus,                  I need to develop a bdc for  F-43, it it working for multiple posting keys with two line items, but not working for multiple line items, can you tell me where to loop the line items. regards, vidyasagar yadav.