Sending the user to view a PDF file

Help!
I have a jsp, java application. In one page depending on which county the user clicks, I am sending the user to a pdf file located in the web (by the way, I didn't create this pdf file and I am sending the user to this location). If I use response.sendRedirect method, it comes up with an acrobat error message - 'the file is damaged and could not be repaired'.
If i click ok and use refresh then i could see this pdf file. Any ideas?
I am posting sample code here:
<%@ page language = "java" import="java.sql.*, java.io.*, javax.servlet.*, javax.servlet.http.*" %>
<%
String area = request.getParameter("areaname");
     String empUrlFirst = "http://wi.dws.state.ut.us/";
String empUrlSt = "statewide/majoremp.pdf";
String empUrl = empUrlFirst + empUrlSt;
response.setContentType("application/pdf");
response.sendRedirect ("http://wi.dws.state.ut.us/statewide/majoremp.pdf");
%>

Hi
So it works in your system. What server you are using? I am running this application with jrun server (developer version). I have acrobat reader 5.0. When I run this code, it comes up with an error message box - The file is damaged and could not be repaired and then I click ok and click the refresh button in the browser and then it opens the pdf document. Any ideas?
Sue

Similar Messages

  • How do I download and save the user manual as a pdf file?

    where is the "divice manual icon ???
    >> Branched from an earlier discussion <<
    Message was edited by: Verizon Moderator

    Go to this link:
    Samsung Galaxy S III 16GB in Black Support | Verizon Wireless
    and look under the Get to Know Your Device section.  Click the Device Manual button and let the manual download.  Once it's done, use your browser's save feature to save the file to your computer.

  • The scroll function on my mousepad is disabled when viewing a pdf file in firefox version 5.0. The scroll works on the pdf, but not on the other tabs. When the pdf is closed, the scroll function returns to normal. Any ideas?!

    The scroll function on my mousepad is disabled when viewing a pdf file in firefox version 5.0. The scroll works on the pdf, but not on the other tabs. When the pdf is closed, the scroll function returns to normal. Any ideas?!

    Hey thanx for the help, it worked like a charm.
    I think firefox changed the application lay out, as I used to be able to choose my PDF opener from the list at " Adobe Acrobat Forms Document' where I could choose Nitro-PDF reader, but it has now moved all the way to the bottom like you suggested to the obvious place of "Portable Document Format" section.
    If someone didn't tell me , I wouldn't have scrolled all the way down to be able to find it... it really should be with all its cousins up the top...
    Cheers again..

  • How can I view a PDF file on my IPad? I only get the first page.

    How can I view a PDF file from my Ipad, both in email and Internet links? I only get the first page.

    Support for viewing PDFs in emails and web-pages is built in to the iPad. You need not have bought an app for that.
    There are PDF apps that provide more features than the built-in functionality, but for basic viewing of multi-page PDFs no app is required.

  • I cannot view a PDF file with the script in Adobe Garamond Pro on my iPad.  Can anyone help?

    I cannot view a PDF file written using Adobe Garamond Pro font on an iPad.  Can anyone help?

    Thanks for writing to us. Unfortunately, such advanced javascript support is currently not provided by Adobe Reader for Android.
    Thanks,
    Adobe Reader Team

  • How do I view a pdf files online within the body of the browser

    I am having some issues interacting with pdf documents online with a website called Equator.com. I am using the latest version of of Firefox (10.0) and running Mac OS Lion. What can be done to remedy this problem?

    Hi richardconte,
    Have you looked at the Knowledge Base article [[Opening PDF files within Firefox]]? First you will need to install a PDF Plugin. Then you'll need to tell Firefox to open the PDF file in the browser. The article covers all of this information and provides troubleshooting steps in case you run into any issues.
    Hopefully this helps!

  • How can I disable viewing of PDF-files in browser in Adobe Reader XI?

    Hi everyone
    After I have upgraded to Adobe Reader XI, I not longer can find the checkbox under settings>Internet, where I can disable that Adobe Reader XI viewing PDF-files in my browser.
    If I instead press on the button, I can see in the dialog box Adobe refers to an article there give me instruction to turn off the viewing of PDF-files via my browser settings. When I follow these instructions, I can see that the plug-in to Adobe is disabled when I not viewing PDF-files in my browser, and enabled when I viewing PDF-files in my browser.
    Therefore:
    1. Why has Adobe removed the checkbox where I can disable viewing of PDF-files in my browser?
    2. How can I now disable and enable viewing of PDF in my browser?
    My operating system is Windows 7 64-bit, and my browser is Internet Explorer 8.
    Very thanks.
    Regards,
    Boholdt

    Hi again
    I have read the article, but I can still not find the plugin I should
    disable in Internet Explorer 8.
    If I see a PDF-file in my browser, I can select and disable a plugin called
    PDF Adobe Reader, but next time I open Internet Explorer 8, I not can see
    the plugin.
    Another method is between the guide for accessibility
    (edit>Accessibility>Setup Assistant. On screen number 4, you can find the
    checkbox.
    Since I am blind, I can find the assistant.
    For my interessting, it is possible for sighted users of Adobe Reader to
    find the same assistant?
    Very thanks.
    Regards
    Boholdt
    [auto-quote deleted by host]

  • Mavericks 10.9.1. Freezes or trackpad becomes slow and unresponsive when viewing downloaded PDF files in Preview.Help!

    The earlier post was my first attempt at posting and had some typos. Repeated with typos corrected.
    I have a Macbook Pro Retina 13" Late 2013 with preinstalled Mavericks.I now have the 10.9.1 update. Almost from the time of purchase in Nov '13, I have been experiencing freezes and slow & unresponsive trackpad. I have more or less narrowed this symptom as happening when viewing downloaded PDF files. The only option is to force eject, if available or shut down. I spoke to Support as I thought it was a RAM issue and they told me that in Mavericks RAM showing almost full was normal as it uses RAM differently. They took me through some resets and cleaning up which has helped a little but freezing stll happens. This never happened with my Macbook AIr running Lion. Any suggestions?
    Shankar9
    Macbook Pro Retina 13" Late '13-Mavericks 10.9.1
    Macbook Air 13" Mid '11-Lion
    Macbook Aluminium 13" Late '08-Snow Leopard

    So a PDF file that you can view in Preview on your MBA causes your new MBP to lock up and/or slow down. Is this right? Also you say more or less narrowed down to PDFs with Preview but does the computer exhibit this behavior with other programs and if so under what conditions? And how much free hard drive space do you have?
    Viewing memory use in Mavericks is different than with previous versions of the OS. Today it looks like we need to pay attention to what Apple calls Memory Pressure which is gauged by the bar graph in Activity Monitor and to the Virtual Memory being used. When the memory pressure graph bar gets too high it turns red and that's bad news. Looking at how much memory is being used doesn't help - I have a 16GB computer and with almost nothing running it still shows something like 15.79GB used but the memory pressure graph is just a think green line. So unless you see the memory pressure bar turning red lets not worry about memory usage at the moment.
    If among the things AppleCare had you do was reinstall Mavericks then I recommend a trip to the Apple store - and take a problem PDF file with you to demonstrate.

  • Iphone 3G Software Update Fixes security vulnerability associated with viewing malicious PDF files?

    Is there an Iphone 3G Software Update Fixes security vulnerability associated with viewing malicious PDF files?  Latest version I can download is 4.2.1
    I assume no fix is available, does anyone know if I'm still vulnerable to the security bug?

    No fix is needed since that vulnarability isn't in 4.2.1.

  • Problem in viewing a pdf file in android adobe reader

    Hi All,
    I am having a problem in viewing a pdf file in android adobe reader, the problem is that in pdf file there is a table that has some text, when I view the pdf file in android abode reader then the text inside the table is not shown but when I view the same file in windows adobe reader everything is fine i.e. the text inside the table of pdf file looks fine.
    Please tell me is this the issue regarding android adobe reader or related to PDF stream? Please address the issue as soon as possible.
    Kinds Regards
    rha

    Can you please share the pdf file where you are encountering the issue?

  • How can I store and view a pdf file ?

    I have an iphone 3GS 32Gb and want to store a pdf file on my phone so that I can view it later.
    Email is the only way I have been able to view my pdf file, but I dont really want to do it this way.
    On previous phones I could save a file on the phones memory card and then open the file in the necessary app.
    This is something I know the iphone doesnt do, but I was wondering if there is a way around it or an app.

    sky_rat wrote:
    Which is the best of those apps, can you recommend any ?
    [File Magnet|http://itunes.apple.com/gb/app/filemagnet-read-and-e-mail-your/id2847971 61?mt=8] is pretty good.
    I did find one app (I cant remember the name, thought it was Air Share) and it said Apple had told them to change the app so that you cant transfer files over USB, only Wi-Fi.
    I think that was [FileApp|http://itunes.apple.com/gb/app/fileapp-previously-fileaid-document/id2 97804694?mt=8], (previously File Aid).
    Apple dont like people being able to use their phone like this.... bloody control freaks.
    You can vote with your feet remember.

  • Firefox closes when I try to view a pdf file

    when I try to view a pdf file a warning comes up and firefox closes

    I am not sure what is happening, but if you are unable to open pdf file whilst they are on your computer, it is unlikely that you will be able to open pdf files that are on the internet.
    I am not sure your problem is with firefox, because it seems you may not be able to open pdf files even with another application such as Adobe Reader.
    The runtime error message is probably generated by your OS Vista, and indicates you have a problem with whatever you are trying to run.
    * see [http://windows.microsoft.com/en-US/windows-vista/What-is-a-runtime-error MS link] '' " What is a runtime error? " ''
    Post back again once you are able to open ordinary pdf files that are on your computer.
    * see also [http://www.adobe.com/uk/products/reader.html Adobe Reader website]

  • How to restrict the ability to save a PDF file in Acrobat.

    Hello ! This is my first topic, evaluating to acquire Acrobat Professional 8, and I am asked if possible to restrict the ability to save a pdf file, when users are reading the file with Acrobat Reader. We are into creating a in-house document accessible to all users internally, using Acrobat Reader. I was able to restrict the printing, but I am unable to restict the saving of the file.
    Any one knows if this possible ? or not?
    Users are using Windows XP/2k
    Thanks

    Once they open it on their machine, they have a copy on that machine. They can simply move that copy to where ever they desire, making copies as they go. You can restrict copying content (though not full proof), printing, and changing the document, but not the physical file itself. Be careful with security and the assumption it fixes all your issues. PDF security is not all that secure. If you need higher levels of security, they you have to use the DRM (I think that is it) at a pretty cost.

  • Can I use Visual Basic to covert form user data from multiple .pdf files to a single .csv file?

    Can I use Visual Basic to covert form user data from multiple .pdf files to a single .csv file?  If so, how?

    You can automate Acrobat using IAC (InterApplication Communications), as documented in the Acrobat SDK. Your program could loop through a collection of PDFs, load them in Acrobat, extract the form data from each, and generate a CSV file that contains the data.
    Acrobat can also do this with its "Merge Data Files into Spreadsheet" function, but this is a manual process.

  • How to view a PDF file

    Hey, i was wondering if anyone knew how to view a PDF file in Java? I'm trying to make a button that will open a PDF file. Is there any other way without downloading an extension?

    Kandyman wrote:
    The thing with downloading extensions is that they are not free. Some are trial version. iText and Jasper are probably free and stable to a great extent. Plus they allow you to play with PDFs, Excel, Bar charts, Pie charts, CSV etc etc without the hassles of the heavyweight Swing.
    - Vaibhav Beohar

Maybe you are looking for

  • Report on Sales and delivery

    Hi, I have 3 ODS for sales,delivery,billing. I am trying to create report on these by using InfoSet. i am getting only matched records from all ODS, even if i used leftouter join( i tried with inner join also). Ex : sales item delivery item billing i

  • To use imac 27 late2009 as monitor for macbook pro 13 rethina with thunderbolt cable

    when i us a thunderbolt cable from mac book pro rethina to my imac 27 late 2009 nothing happen, even with command F2 i can not use the imac as monitor for the mcbook pro

  • Package install date [SOLVED]

    In Ubuntu, I could find in /var/log/dpkg a list of all package related operations on the system, most importantly installations and removals of packages. How can I find the date when a package was installed on my arch system, or, even better, all dat

  • Whats this error?

    What is this Error and how can I solve it? Solved! Go to Solution. Attachments: Name.png ‏97 KB

  • Cannot import into iTunes?

    I cannot import music into my iTunes as when i try it says i don't have access but i have checked my media folder and i have the permissions to import?