Vip,

>          Is there a way to open PDF in a separate acrobat window,
>          by not changing the acrobat reader 'Preferences/General/Options'?.

n the action that returns the PDF, setting the Content-disposition to
'attachment' in the HTTP header will cause the browser to open a File Download
dialog that will ask the user whether he wants to open the document from the
current location of to save it to disk.    Setting it to inline will cause the
document to be opened in the browser. Might ne be exactly what you want but it
works will all versions of Acrobat.
Note: for this to work, the file must have the proper extension and  must not
include the full path (just the file name).

Example:
   I
  response.setHeader("Content-disposition","attachment; filename=" + filename);


>
>           How to avoid caching of PDF files and not only HTML files.

response.setHeader("Expires", "0");
 response.setHeader("Cache-Control", "no-cache");

-Vincent.


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to