- Create Account

inserting a .pdf into an iframe

Forums > Inline HV Scrollbox > inserting a .pdf into an iframe
Author
Message

1) Johnno Group: Guests
IP: 203.98.--.--
Previously I used a frameset for the menu and main page of my site. This was good if files were in .pdf or .txt or other non html formats.
I am, however, redesigning the site without frames, and want to display .pdf files on my pages (with normal html menu and other bits on the same page.
Am I able to insert .pdf files into an iframe or div layer so they display on the html page? I have done this in the past with txt and html files, but when I try to insert .pdf, I see nothing. Can anyone be of assistance?

Currently the page looks like this. http://www.oldboys.co.nz/strategicplan
I want to end up with the same look, (image on the top, menu to the side, info to the centre and right), but without frames.

2) Angus Turnbull Group: Guests
IP: 210.54.--.--
Well, I would offer advice but I'm an old boy of Timaru Boys High myself and hence assisting our northern rivals would be treachery :). Oh well, if you insist...

An IFRAME should work (although I do very little work with PDF and haven't tried it), however the scroller scripts from here will not. They replace the HTML content of a div on the page, and hence can't load anything non-HTML as that requires a whole new frame.

Bear in mind that IFRAMES won't work in NS4 and earlier browsers, so your existing downloadable links might be the best option...?

- Angus.

Post a Reply:

You are not logged in, and will be posting anonymously as a guest. If you want to post using an account, please login at the top of this page.