You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-users@xmlgraphics.apache.org by "J.Pietschmann" <j3...@yahoo.de> on 2002/05/28 20:55:45 UTC

Re: FW: Window name defaulting to How we call the servlet. PDF Stream passed to a browser

Caroline Prefontaine wrote:
 >>I've tried to set reponse.setHeader("Content-Disposition",
 >>"filename=myfile.pdf"); that still doesn't work.  Is there a way in
 >>creating the FO file to set the title of the document or of the window the
 >>PDF will open into.

No.

>>function loadPdf(){
>>var url = document.URL;
>>pos = url.indexOf("=");
>>var strPdfUrl = url.substring(pos+1);
>>top.location.replace(strPdfUrl);
>>self.focus();

Set the Window title here, using JavaScript.

J.Pietschmann