Web Hosting Geeks | Web Hosting Experts
Need help? Call us 1(866)TOP-HOST

14120 reviews 1680 hosting providers

Questions & Answers

Inserting PDF into html

Jul 18, 2013 by DinoGuy
Hello

I have 2 PDFs that I have to insert into an html page. I want to be able to open the PDFs from the html page.  Can any one please point me help me achieve this?
Many thanks

3 Answers

0 votes
Jul 18, 2013 by TopNet
Try this
<a href="YourFileName.pdf"></a>
0 votes
Jul 18, 2013 by tareq101
Use the <embed> tag like this
<object type="application/pdf" data="MyFile.pdf" " width="80%" height="80%" < >/object >

you will need to provide an alternative if the browser doesn’t t support the <embed> tag

“<object type="application/pdf" data="MyFile.pdf" " width="80%" height="80%" <a href="MyFile.pdf" alt="descripe your file here" >/object >"
0 votes
Jul 18, 2013 by lionhost
Upload your PDF file to your web site first. Then  you can add a link inside your HTML page like this:
<a href="yourfilename.pdf">
YourDescription</a>