0

I want to add a pdf to my blog post. I found the following code on stackoverflow to add the link.

<embed src="https://mypdflink" type=""application/pdf" width="600" height="400">

This code adds a link to the pdf, which is good. But what I really want is to display the pdf on the blog page, without showing the link or asking readers to click to open the pdf. Can anyone please help me?

By the way, this is my first time building my own blog/website. I have no background in website building or computer science in general. I am using free theme on wordpress.com. I appreciate your suggestion and help!

May
  • 29
  • 2
  • 7
  • 1
    Content that requires a plugin such as Adobe Acrobat require user interaction to open said files, it's a security feature. – haakon.io Jan 05 '16 at 19:48
  • Possible duplicate of [Display PDF within web browser](http://stackoverflow.com/questions/4853898/display-pdf-within-web-browser) – Andy Jan 05 '16 at 20:37
  • 1
    Possible duplicate of [Recommended way to embed PDF in HTML?](http://stackoverflow.com/questions/291813/recommended-way-to-embed-pdf-in-html) – John Hascall Jan 29 '16 at 19:17

2 Answers2

0

The below worked for me, hope it helps. :)

<html>
<head>
<title></title>
</head>
<body>
<embed src="http://www.dol.wa.gov/forms/420001.pdf" type="application/pdf" width="400" height="600"/> 
</body>
</html>
Darren
  • 1
  • Thanks Darren. The codes didn't work for me. But I found another way, explained in my answer. Thanks anyway. – May Jan 07 '16 at 19:44
0

thanks for your help. I ended up not using any html code. The pdf I wanted to insert was a dashboard made in Tableau consisting of a graph and table. What I ended up doing was that I took a screenshot of the pdf, pasted it to painter.net, resized the photo to 300dpi, and inserted the photo to my wordpress post....:)

May
  • 29
  • 2
  • 7