+ 3

Can I put .pdf pictures on my html tag <img ?

Didnt try it

19th May 2019, 7:57 PM
6 Answers
+ 9
No, you can't put PDF pictures on a html document but you can do it by the following steps - 1) Open the PDF file and click on save as 2) Again save the file but with jpg extension. 3) Now you can open this file in your html document
20th May 2019, 3:35 AM
Arush Singh çöďëŕ äñď ďévëľöpęŕ
Arush Singh çöďëŕ äñď ďévëľöpęŕ - avatar
+ 4
PDF means Portable Document Format. <img>tag is used to show only the images with (.jpeg, . png, .gif) extensions only. So, it is impossible to add PDF in <img> tag.
20th May 2019, 1:54 PM
+ 3
No you cant. But you could convert it to an image yoirself and then display it there.
19th May 2019, 10:32 PM
Dragonxiv - avatar
+ 3
No, it can't be done as HTML supports image files with extensions.jpg, .jpeg, .png. .pdf is not supported and it'll not open on the webpage. To open it either choose a file with any of the above mentioned extensions or else rename your this.pdf file to .jpg format.
20th May 2019, 6:37 AM
Waseem ud din Wani
Waseem ud din Wani - avatar
Thank you all!
21st May 2019, 6:46 AM
Yes you can, but with an easy work-around. You need to transform your pic to an image. Download for instance Pic-Pick for this. Mark the part you will have an image, choose jpg or png and upload the image to your site.
9th Aug 2022, 11:01 AM
Pär Svensson
Pär Svensson - avatar