phpretard Posted March 21, 2008 Share Posted March 21, 2008 How can I include("A PDF FILE"); ? Please. Quote Link to comment Share on other sites More sharing options...
cooldude832 Posted March 21, 2008 Share Posted March 21, 2008 yes, but why would you Quote Link to comment Share on other sites More sharing options...
phpretard Posted March 21, 2008 Author Share Posted March 21, 2008 I have been trying all day to display a PDF file inline with the rest of the page. I could use frames I guess but not all browsers support frames. <? if (!session_is_registered(sesion_var)){ die ("PLEASE LOG IN"); } else { include ("pages/ins_pgs/pdfs/diagrams/$CNumber.pdf"); } ?> Quote Link to comment Share on other sites More sharing options...
cooldude832 Posted March 21, 2008 Share Posted March 21, 2008 you can't display it inline in a html doc unless you use some sort of viewing application to render the doc. Browsers have no inhertit inline pdf rendering it is done via the adobe distributed extensions for browsers that allows PDFs to be viewed in browser, similar to how gifs, jpgs, pngs, html are viewable in browser. including it wouldn't get what u want. Quote Link to comment Share on other sites More sharing options...
phpretard Posted March 21, 2008 Author Share Posted March 21, 2008 Any suggestions as to get what I want? Quote Link to comment Share on other sites More sharing options...
cooldude832 Posted March 21, 2008 Share Posted March 21, 2008 well considering it isn't a common practice to display pdfs that way I say don't do it. If you must try and find a java applet that can render PDFs. Quote Link to comment Share on other sites More sharing options...
BlueSkyIS Posted March 21, 2008 Share Posted March 21, 2008 why not just either A. directly link to the PDF or B. send the PDF via PHP? Quote Link to comment Share on other sites More sharing options...
phpretard Posted March 22, 2008 Author Share Posted March 22, 2008 Thank you for the advice! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.