PDF Download in IE 5.5

I am facing a peculiar problem, regarding Saving PDF to client machine.
I am trying to save the pdf file by popping up a Save As dialogue box.
This works fine with IE 6.0 and IE 5.5 (basic), but in IE 5.5 SP1,2 the
browser opens a Save as Dialogue box and saves the HTML page of the
calling page, (In my case the frame-set page) instead of the pdf file.
Can you please help me fix this one.
I am using the following code.
// Code Extract
document = new Document(PageSize.A4.rotate(), 10, 10, 10, 10);
// Create a Writer that listens to the document and writes the document
into the PDF.
PdfWriter.getInstance(document, bytesToWrite);
// Open the document.
document.open();
// Call method(to set data) with document and 2D array of data as
arguments.
loadDocument(document);// this method loads the document object.
document.close();
response.setHeader(�Expires�, �-1�);
response.setContentType(�application/pdf�);
response.setHeader(�Content-Disposition�,
�attachment;filename=�+�PDFCompleteReport.pdf�);
response.setContentLength(bytesToWrite.size());
ServletOutputStream out = response.getOutputStream();
bytesToWrite.writeTo(out);
bytesToWrite.flush();
out.flush();
bytesToWrite.close();
out.close();
//end code extract
Thanks,
Akshat Jain

Your code is correct, sur Microsoft.
PS. I am doing FOP Servlet PDF generation and can download the result with IE5.5 SP1 without trouble.

Similar Messages

  • Can I print web pages from firefox using adobe pro 9 (Not using PDF download) and if so how

    Can I print web pages from Firefox 3.6.12 using adobe pro 9 (not using PDF Download) and if so how.

    {Ctrl + P} - do you have a PDF Printer listed in the Printer - Name drop-down?

  • In my "Extra" there is a line: "PDF -download, by Nitro PDF software". When I click on it, appears: "XML-parsefout .." How do I delete a command in "Extra"?

    How do I delete something in "Extra", something I didn't put in! (on my desktop).
    On my laptop the "PDF -download, by Nitro PDF software" doesn't figure and pdf files open normally and not seperatly in the mainframe of for example www.centrum-veurne.be

    Gee, Pat, this is a  real big help.
    Nobody could possibly think anyone would ask for help without first trying to fix the issue oneself. Or maybe you do. I have opened the file and looked under security. I have changed it to owner-notebook (which is what the techs called me) and clicked accept but geepers it didn't work.
    Maybe someone else has an idea.
    Take Ownership of a File or Folder
    The above should be a link. At least I copied and pasted the link. I did what was stated in there. It isn't like brain surgery. But it is not working. I ended up being able to open some pdf files after transferring them from one partition category to another. I wish it was that easy as you seem to think.
    Thanks for the help. Have a great year.

  • Error on opening a PDF download

    Please do not have your subject in all CAPITALS
    HI,
    i am geeting the below error message on trying to open the pdf download
    **"Adobe reader could not open file because it is either not a supported file type or because the file has been damaged (for example, it was sent as an email and wasn't correctly decoded"**
    however on analysis i found the following
    no data on PDF because the  otf internal table is empty.
    actually i am converting a spool containg script into pdf download.
    i am working with  version 3.1i , so i dont use function module and use C function to convert spool to otf and then use convert_pdf to convert to pdf.
    when i debug my call function on the do loop executes once corrcetly  and on the second time of  execution immediately loaded with error message  'end of data' .... and so my otf conversion is not happening . ie otf_page intertal table gets empty without appending .
    sometimes i get error number 2048 ( illegal line length )
    i could not locate the error , as this application was working earlier good and recently got into trouble.
    pl guide if i need to check any settings.
    to my knowledge i found the program , layout and spool informations are okay.
    thanks in advance for your clue towards a progressive solution.
    Edited by: Matt on Mar 12, 2009 3:44 PM

    Please do not have your subject in all CAPITALS

  • I bought a pdf book last year and had no problem reading it for a few months then all of a sudden I could no longer open it and to this day. Any other pdf download off internet I can still open and read, except for that particular book. Operating system i

    I bought a pdf book last year and had no problem reading it for a few months then all of a sudden I could no longer open it and to this day. Any other pdf download off internet I can still open and read, except for that particular book. Operating system is Windows 7 Home Premium, Adobe Reader XI 11.0.07.  When trying to open file I get msg "You did'nt login or your session has expired. Please log in to read this document for the first time". (Like I said I have read it before). So I log in but that prompts me to give the name of the file I want to export or convert to Word or something else, which is not what I want to do of course. I have not purchased any service from Adobe or Acrobat as I only need to read. Thanks for your help..

    Thank you for your reply. Operating system is Windows 7 Home Premium, Adobe Reader XI 11.0.07.  When trying to open file I get msg "You did'nt login or your session has expired. Please log in to read this document for the first time". (Like I said I have read it before). So I log in but that prompts me to give the name of the file I want to export or convert to Word or something else, which is not what I want to do of course. I have not purchased any service from Adobe or Acrobat as I only need to read. Thanks for your help.

  • My Macbook Air is stopping a few seconds into videos (e.g. Youtube and BBC iPlayer) and is doing the same thing with PDF downloads not

    My Macbook Air is stopping a few seconds into videos (e.g. Youtube and BBC iPlayer) and is doing the same thing with PDF downloads which are only partially downloading then stopping. I changed some security settings yesterday but don't think I touched anything else. Can anyone help?

    My Macbook Air is stopping a few seconds into videos (e.g. Youtube and BBC iPlayer) and is doing the same thing with PDF downloads which are only partially downloading then stopping. I changed some security settings yesterday but don't think I touched anything else. Can anyone help?

  • PDF download in IE 7

    I created a pdf download link to a _blank page, and when I
    try to download and view the pdf in IE 7, a new page comes up but
    the page is blank. The pdf does not view. Can someone offer insight
    to the problem? Thanks.

    If you're talking about the link by "Click Here to download a
    PDF version of
    this Recipe Style Guide" I clicked it, waited about 20
    seconds, then saw
    your Recipe Style Guide. It's only about 160K so it's not
    that large (for
    the record, I'm in a coffee shop right now with a not-so-good
    connection).
    It's working fine. Assuming that's what's causing you a
    problem.
    Mad Dog
    Dored wrote:
    > The link is:
    http://www.hadfield.net/copywrite.htm#recipe

  • How do i make a pdf download instead of opening in safari?

    want to make a pdf download instead of opening as a page in safari.  How do I set this preference?

    ImageIcon myIcon = ...
    JButton b = new JButton(myIcon);

  • What to do? When on a site with a PDF download I wish to open, the site commences to open in a new Tab but the information does not come through? This happens on all sites. The advanced Java Script is disabled.

    When on a site with a PDF download I wish to open, when I click on download the site commences to open in a new Tab but the information does not come through? This happens on all sites. The advanced Java Script is disabled. The new tab will sometimes flash black then go white with nothing else happening or just go white & nothing else?

    I had the same problem and also had PDF Download 3.0.02 installed. By removing this addon I can now select a PDF document which then opens up a normal Open With/Save dialogue allowing me to open the file or save it. Hope this helps.

  • I bought several eBooks for Adobe PDF download. Am I able to download with the adobe program that I

    I just purchased a library worth of eBook downloads from the Nonviolent Communication Academy bookstore.  I chose Acrobat PDF download, but do not know how to be sure that the books have been downloaded and saved.  Do I have the Adobe program necessary to contain several eBooks?  Once I close the download page, I cannot have access to it again.  So, now or never.  There is a storm here and with my luck the electricity will go out. Please assist me.

    Which Adobe application are you trying to use?

  • Issue with PDF download

    Hi Guys,
    I am facing problem with the PDF download option. In the answers request I have to use Pivot tables to display data and since these pivot tables do not provide the option of Table Headings, I resorted to HTML to get a similar output. The issue I am facing right now is when I print it through PDF or Powerpoint, the HTML code I have written comes up instead of the result. In the case of excel or answers, I am getting the proper output. Is there some setting I am missing?? I am using the column with the HTML coding in the Columns section of the pivot table.
    Thnx!

    Hi,
    This is a known issue with HTML code embedded in your request, when you try to download the same in PDF, PowerPoint it will show the code.
    You can the following bugs regarding this in metalink.
    Bug 7187501: PDF SHOWS HTML TAGS WHILE PRINTING REPORT WITH BOLD LETTERS -HTML Tags Shown When Print or Export to PDF (Doc ID 1064060.1)
    Bug 9372634: HTML TAGS SHOWN WHEN PRINT/EXPORT TO PDF
    Bug 8899783: HTML TAGS APPEAR IN PDF REPORT
    Thanks,
    Vino

  • PDF download printing.

    I want to print some PDF downloads in book form onto A3 sheets. I want pairs of pages to appear on one side of a sheet of A3. I can do this, but the printed images come up sized as though for A4 sheets, ie they are much too small to appear on an A3 sheet. Can this be achieved. There seems no way of selecting the size of sheet for output.

    I can do this (using Reader XI on Windows 7) by
    clicking Multiple on Page Sizing & Handle, then set Pages per sheet: 2
    Page Setup set paper size to A3
    I do not know how it will actually print, as I do not have an A3 printer.

  • PDF download into iBooks and use like a book

    All
    I have business needs ( and sent email to apple but no reply) covering using PDF downloaded from external site and creating then using in iBook. I want to be able to bookmark/highlight and copy into presentation or notes
    Is this just not available yet!!

    By the way, it needs to be a 'searchable' PDF. Have to be able to select the word in the PDF. If it isn't, Prizmo does a great job of converting from non-searchable to searchable PDF.

  • How to track a PDF download as a webpage hit?

    My website provides people with free information via about 50 PDF downloads. although I have excellent tracking software (Extreme Tracking) on each HTML page, I have absolutely no idea how many PDFs are being downloaded or from which region of the world they are being downloaded. Therefore I have no clear idea of visitor traffic to the site. Has anyone got a fix to this problem? Surely ACROBAT experts can find a way to tag a PDF with a small section of HTML in order to allow the page to be tracked as a hit? Any ideas welcome! Steppegold in Mongolia

    Thanks for the reply Michael,
    I was hoping beyond hope that a PDF could be tracked. Well the first person to come up with a solution is going to make billions $$$ that's for sure. Seems to me that if a top 3 or 4 lines of normal but tiny text were to be inserted in the top of the PDF, then clever software in a bot/spider might be able to convert this instantaneously into HTML and so the tracker code would then be activated. It really is worth someone spending time and $$ to solve this.
    Thanks again for your response. Steppegold Mongolia

  • How do I get ipad ios8 to stop pdf download default being itunes U?

    since upgrading to ios8 when I want to download a pdf, from safari, the default app it tries to download to is itunesU instead of iBooks.  it does come up with other options, including iBooks, but you have to find iBooks from the list.  on ios7 it would default to iBooks.  
    can the default pdf download app be changed?. Other people I know don't have this issue so there must be something in my settings which creates this issue.
    i am not sure why it wants ro default to itunesU as I never use this app.
    Any help would be hugely appreciated as I download a lot of pdfs from safari web pages  and this is getting frustrating.

    I have this problem too.  I'm thinking maybe the last downloaded app becomes the default, so perhaps deleting iBooks and redownloading it will make it default?  I haven't treid yet though, I don't want to have to download all my PDFs again (from different websites).

  • PDF download on website limited to app users

    Dear All,
    We are creating an iPhone tour app in Dreamweaver CS6 and want to post additional material on our website in PDF format that can be downloaded by people who purchase our iPhone app.  Is there any way to limit a PDF download on a Dreamweaver CS6 website to only people who enter a code or in some way separate themselves from others who might want to download the PDF files?   In other words, I don't want everyone to be able to download the PDF files, just those who have paid for the iPhone app and are entitled to the additional material without charge. How can I go about restricting the PDF download to those who have already paid for the app? Thanks.
    Small Town Gal

    Dear Ken,
    Thanks for your reply.  You have made me think of something.  Perhaps I should not use our regular website but create another website that was restricted only to iPhone app users with the link to the website visible only within the iPhone app.  Would creating a Facebook page offer the same download capabilities with a "like" function by the app user?
    I could also create something in Muse or Business Catalyst?
    Small Town Gal

Maybe you are looking for