phpretard Posted March 21, 2008 Share Posted March 21, 2008 How can I include("A PDF FILE"); ? Please. Link to comment https://forums.phpfreaks.com/topic/97289-include-pdf/ Share on other sites More sharing options...
cooldude832 Posted March 21, 2008 Share Posted March 21, 2008 yes, but why would you Link to comment https://forums.phpfreaks.com/topic/97289-include-pdf/#findComment-497855 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"); } ?> Link to comment https://forums.phpfreaks.com/topic/97289-include-pdf/#findComment-497863 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. Link to comment https://forums.phpfreaks.com/topic/97289-include-pdf/#findComment-497864 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? Link to comment https://forums.phpfreaks.com/topic/97289-include-pdf/#findComment-497867 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. Link to comment https://forums.phpfreaks.com/topic/97289-include-pdf/#findComment-497868 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? Link to comment https://forums.phpfreaks.com/topic/97289-include-pdf/#findComment-497871 Share on other sites More sharing options...
phpretard Posted March 22, 2008 Author Share Posted March 22, 2008 Thank you for the advice! Link to comment https://forums.phpfreaks.com/topic/97289-include-pdf/#findComment-498136 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.