barnum — 2011-07-05T12:53:37-04:00 — #1
how do I add an image to my site that is in pdf format?
<img src="images/Article1.pdf" width=300" height="400"> was what I used, but nada?
stevie_d — 2011-07-05T13:20:40-04:00 — #2
You need to copy the relevant section of the PDF, paste it into an image editor, and save it as a PNG, GIF or JPG, as these are the only image formats that natively supported by HTML browsers.
xhtmlcoder — 2011-07-05T14:32:15-04:00 — #3
Do you actually mean embed an OBJECT in a page?
system — 2011-07-05T14:51:24-04:00 — #4
Basically what both Stevie and xhtmlcoder are saying is that PDF's are not images, they're PDF's... they are not image file formats, nor are they supported by the HTML IMG tag. Image is for images -- gif, png, jpeg -- NOT PDF's.
If it's an image, turn it into an actual image... if it's an actual PDF of text, turn it into HTML instead of a PDF -- or as XHTML coder suggested use OBJECT...
Though honestly, PDF's as objects in websites is an accessibility /FAIL/ and another of my many, MANY pet peeves -- if it's just a PDF make it a download, instead of the half-assed browser embedded nonsense. PDF's "in the browser" suck - universally.
barnum — 2011-07-05T15:22:31-04:00 — #5
Thanks for squaring me up.... I scanned the pages again, and saved as jpg. Works fine...
Thank you all again.