Jump to content

Include PDF


phpretard

Recommended Posts

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
Share on other sites

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
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.