tag:blogger.com,1999:blog-11565005.post5900610893848441509..comments2023-03-29T06:17:21.481-06:00Comments on The Software Life: Inline PDF for Mac Firefox 3Andrew McKinlayhttp://www.blogger.com/profile/14951795633428513769noreply@blogger.comBlogger1125tag:blogger.com,1999:blog-11565005.post-69192345048619557012009-09-08T23:42:01.944-06:002009-09-08T23:42:01.944-06:00"(I think by setting the Content-Disposition ..."(I think by setting the Content-Disposition header.) "<br /><br />True but, you need to make sure you set it as inline.<br /><br />For all PHP freaks out there it goes like this:<br /><br />header('Cache-Control: no-cache, must-revalidate'); <br />header('Expires: Thu, 1 Jan 2009 05:00:00 GMT'); <br />header('Cache-Control: private');<br />header('Content-type: application/pdf');<br />header('Content-Transfer-Encoding: binary');<br />header('Content-Length: '.$someSize);<br />header('Content-Disposition: inline; filename="mypdf.pdf"');Anonymoushttps://www.blogger.com/profile/02339858060484986825noreply@blogger.com