Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Yet another PDF in HTML question

Status
Not open for further replies.

Erikxxx

Programmer
May 5, 2003
49
GB
Hi all,

I'm currently dealing with publishing PDFs in a few html pages.
However, we have both Mozilla, IE and Netscape users and i'm not sure which technique I should use to put the pdfs in my html files.

For ex:
If i use the object tag The mozilla users don't seem to be able to view the pdfs.

Well, I'm looking for a bit of code so I can make all users "happy" regardless browser.

Thanks

Erik
 
What do you mean by publishing PDF's inside HTML? The reason I ask is because most web browsers will have a plug-in for viewing pdf's, and a simple hyper-link to the file is all that is needed for a user to open the file.

Or are you trying to do something different?
 
Hi,

THanks for you quick reply

Well, What I mean by "publishing" pdf inside html is basically to let the browser to open the PDF inside the browser.
I'm just considering the different way of doing it.
For ex. using the <object> tag or <embedded> tag etc.

But for instance it doesn't seem that you can use the <object> tag when browsing with Mozilla. So, I'm looking for a way to browse PDFs so it works for all browsers(IE/Netscape/mozilla).

Regards
Erik
 
Doesn't
Code:
<a href=&quot;filename.pdf&quot;>
work in all browsers?

Mike Krausnick
Dublin, California
 
Worth reading:
&quot;PDF: Unfit for Human Consumption&quot;

also some related articles there. Good breakdown of why you shouldn't publish .pdf except for folks to print :)

Posting code? Wrap it with code tags: [ignore]
Code:
[/ignore][code]CodeHere
[ignore][/code][/ignore].
 
Hi

Clarkin: Thanks for the link to the website you sent me. It seems to be a good resource.

mkrausnick: but if you using <a href> don't you need to click on a link to be able to open the file?
I wanted my Pdf:s to instantly be loading when the user opens the webpage (therefore i was looking at embeded and object tag).

Thanks

Erik
 
No problem:
Code:
<meta http-equiv=&quot;refresh&quot; content=&quot;0; url=filename.pdf&quot;>
should work, although I didn't try it.

Mike Krausnick
Dublin, California
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top