• GoDaddy Community
  • Websites + Marketing | Website Builders
  • Websites + Marketing | Website Builders

    Showing results for 
    Show  only  | Search instead for 
    Did you mean: 
    Helper II

    html embed pdf in a page

    Website Builder V7


    HTML Code: 

    <embed src="http://mikev99.com/Reservations_2019_04_04.pdf#toolbar=0&navpanes=0&scrollbar=0" type="application/pdf" width="100%" height="600px" />


    All I want to do is display a pdf on the page. I get an error message saying it could not open PDF (something is keeping this PDF from opening).


    Can someone please tell me how to do that.


    Thank you.


    2 REPLIES 2
    Resolver VI
    Resolver VI

    Re: html embed pdf in a page

    Hi LionsWeb16 , I hope you are well. I have checked this issue. The file is not showing in embed place. The main reason is that The Chrome browser no longer supports PDF embeds.    Here is the solution of your problem

    Solution 1

    Upload your  PDF file on drive.google.com and embed you document in web page.


    Solution 2

    Use this code to embed your files

    <embed src="https://drive.google.com/viewerng/
    viewer?embedded=true&url=http://example.com/the.pdf" width="500" height="375">

    Solution 3

    You can also use Google PDF viewer for this purpose. As far as I know it's not an official Google feature (am I wrong on this?), but it works for me very nicely and smoothly. You need to upload your PDF somewhere before and just use its URL:

    <iframe src="http://docs.google.com/gview?url=http://example.com/mypdf.pdf&embedded=true" style="width:718px; height:700px;" frameborder="0"></iframe>

    Solution 4

    If your website is on WordPress platform then you can install PDF embed plugin.


    Zulfiqar Anees | Founder/CEO at FastTech Media, TechMag, and ZulWeb | GoDaddy Pro.
    Helper II

    Re: html embed pdf in a page

    Hi ZulWeb,

    Thank you for the reply. I don't use google so I do not have a drive.google.com. I might be able to use the Google PDF viewer? Website Builder V7 is not WordPress --  it is the GoDaddy CMS.