Re: IE6 and sending PDF

From: Gregor Rot (zara4tustra_at_yahoo.com)
Date: 01/17/04


Date: Sat, 17 Jan 2004 00:00:19 +0100

John Dunlop wrote:

> Gregor Rot wrote:
>
>
>>I have resolved the problem:
>
>
> The real problem was with your "browser", not how you serve the file.
> Configure it to behave as you wish.
>
>
>> >>> Content-Disposition: filename=somefile.pdf
>
>
> That is a malformed Content-Disposition header according to RFC1806
> sec. 2 (and RFC1506, sec. 4). A disposition type, or extension-token
> is required.
>

Well you are wrong somewhere, because if i point my browser to a regular
pdf file on a site, IE opens it within the browser.

If i serve the file over the described php program, i get a dialog
(Open, Save, etc, and Open opens a new Acrobat instance), all that
assuming: "Content-Disposition: attachment; filename=somefile.pdf"
                                 ^^^^^^^^^^^

So i don't have any problem with my browser setup, it's a disposition
problem. If "attachment" is written, the browser treats the data as "an
attachment", and automatically offers the dialog Open, Save, etc...

Seeing your knowledge of the RFCs and all I would be very happy if you
could write the correct disposition for the desidered behaviour (sending
a pdf, and making IE behave like receiving a regular pdf file, opening
it within the browser - this is the default IE setup after Acrobat
Reader is installed = an ActiveX control is installed and opened
automatically after clicking on a pdf file on a site, opening the file
in the ActiveX control, loaded in the browser).

tnx,
Greg



Relevant Pages

  • Re: Open a .pdf in a new window
    ... now, FoxIt Reader, they both have a browser plug in or add on. ... that if you click on a link to a PDF file from a web page the pdf file ... automatically opens in that browser window. ...
    (microsoft.public.publisher.webdesign)
  • Re: Word bug: http hyperlinks to pdf docs open in IE, not default bro
    ... The slides in the PDF file were created in Powerpoint. ... In Windows XP if I set Firefox, in Firefox' Tools menu to be the default browser and open the first link below in Firefox and use ... the hyperlinks there under "More Info" the linked page opens in Firefox. ...
    (microsoft.public.word.application.errors)
  • Re: IE6 and sending PDF
    ... i am sending a pdf file to IE6 and just want the browser to open it ... >>the browser should open it directly in the frame. ... IE takes the default behaviour and opens ...
    (comp.lang.php)
  • Re: Error displayed on viewing dynamically generated pdfs in ie6
    ... before you write out the pdf file to the browser. ... > up the path for the pdf and renders it properly on the browser. ... >> Internet Explorer Opens a Blank Page with a Placeholder Icon ... >> Henri Leboeuf ...
    (microsoft.public.windows.inetexplorer.ie6.browser)
  • RE: Word files in Document Library
    ... HomePage (SPS area) ... some users the file is opened in the browser, see Image 1, wheras for others ... >> Word opens it up automatically and places the saved file correctly. ... >> who can't see a particular flash, can see other flash files. ...
    (microsoft.public.sharepoint.portalserver)

Loading