Modifying title of browser window when rendering a file


#1

All,

I am using this to render a file to a browser window (a popup) -

send_file(‘xyz’, :type => ‘application/pdf’, :disposition => ‘inline’)

By default, the window’s title bar shows the host and the name of the
controller action (in FF) or the entire URL (in IE).

Does anyone know of a way to modify the content of the title bar in a
window if it is rendering a file? The only way that I know to modify
the title is to manipulate the HTML element. But I’m not
rendering HTML, I’m rendering a PDF.

Thanks,
Wes