cancel
Showing results for 
Search instead for 
Did you mean: 

Embeding pdf's in a web page

crusty
Grafter
Posts: 90
Registered: ‎30-07-2007

Embeding pdf's in a web page

Hi nothing to do with Plusnet I have a web design query and I know there are a lot of clever bods in here.
I had this idea for an easy way for a pub to update their menus on their web site. I set up a Dropbox account and get the chef to save his menus as a pdf in the Public folder and then embed that pdf in a page. Here is an example http://www.theforesterdonheadstandrew.co.uk/main_menu.html
It works fine in Firefox, IE8 brings up a security alert and opens in separate window. In Safari it says not found even if you click the link. There is an issue with Safari not being able to read any pdf in Dropbox Public folder. I have raised it in Dropbox forum.
This is the iframe code:
<IFRAME { overflow:hidden; } SRC="http://dl.dropbox.com/u/5199543/mainmenu.pdf#toolbar=0&scrollbar=0&navpanes=0" WIDTH=700 HEIGHT=1975 frameborder="0"> </IFRAME>

Am I flogging a dead horse trying to get this to work.
Rob
3 REPLIES
mentalist3d
Grafter
Posts: 371
Registered: ‎20-08-2009

Re: Embeding pdf's in a web page

In FireFox 3.6.3 for the MAC the link above opens up a pop-up with the option to view in an external application or save the PDF, same when I visited the site proper. I allowed the PDF to open just out of curiosity, but if I was just browsing normally and happened on the site, I would have denied the PDF from downloading or opening and then choose to browse elsewhere.
Personally, I would just list the menu as normal text, that way you are guaranteed that people can view the menu easily and download a PDF version as an option.
crusty
Grafter
Posts: 90
Registered: ‎30-07-2007

Re: Embeding pdf's in a web page

Thanks for that M. Useful to know FF on Mac is a fail as well.
Yes plain text is much easier for me but I can't update their menu daily. I wanted a way someone who can only use Microsoft Word can update their menus every day themselves.
I'm wondering if there is any other format that I could save it as that would embed in html without causing errors?
mentalist3d
Grafter
Posts: 371
Registered: ‎20-08-2009

Re: Embeding pdf's in a web page

Ignore my first post, I decided to have a look at what code is available on the net, none of the sites worked except one notified me I don't have the PDF plugin installed for FireFox. Installed it and your site displays fine, so sorry about the first post.
I found this site: http://pdfobject.com/ which might be of use