PDF Generating Tool Support Forum

HOME   Login   Register    Search




  Subject: How to open pdf file in new window
   PostPosted: 02 Feb 2012, 10:32 
I am getting open or save dialog box, when we click open it should open in new window. how to achieve this ?


  Subject: Re: How to open pdf file in new window
   PostPosted: 03 Feb 2012, 16:12 
You can control the behavior via HTTP header:

response.setHeader("Content-Disposition","inline; filename=\"doc.pdf\";");

Forces browser to open PDF inline

response.setHeader("Content-Disposition","attachment; filename=\"doc.pdf\";");

Forces web browser to popup a Save/Open dialog.


In PD4ML JSP taglib you may control that with inline="true/false" attribute of <pd4ml:transform> tag.



[Reply]     [ 2 posts ] 

Copyright ©2004-10 zefer|org. All rights reserved. Bookmark and Share