How to Embed a PDF File in a Web Page

How to Embed a PDF File in a Web Page thumbnail
You can embed a PDF in a Web page just as you would a video or audio file.

If you've ever wanted to share a document with visitors to your website, you should know how to embed a PDF file in a Web page. PDF stands for portable document format. Developed by software company Adobe, it allows users to capture all types of information and save it in document form. Rather than just linking to a PDF file, which enables a user to download it onto their computer, you can embed the file so that other Web elements, such as advertisements, can be displayed simultaneously.

Instructions

    • 1

      Locate the location in your Web page's code where you want to include the code to embed the PDF file.

    • 2

      Type an open object tag, which looks like this: <object

    • 3

      Insert the type property. Your file type is PDF. Therefore, your code will look like this: type="application/pdf"

    • 4

      Specify the name of the file. To do this, type: data="NAMEofFILE.pdf"

      In place of the phrase "NAMEofFILE" insert the actual name of the PDF you wish to embed.

    • 5

      Specify the dimensions you wish to use to display your PDF. The code for this should look like this: width="X" height="Y"

      In place of "X," insert how many pixels wide you want the PDF to be, and in place of "Y," insert how many pixels tall you want the PDF to be.

    • 6

      Close the object tag by typing this: ></object>

      Your full tag should like this like: <object type="application/pdf" data="NAMEofFILE.pdf" width="X" height="Y" ></object>

Related Searches:

References

  • Photo Credit internet image by Holger B. from Fotolia.com

Comments

You May Also Like

Related Ads

Featured