how can I put PDF documents on my website using google drive api

0

I want to put PDF documents on display on my site where the administrator would register the link that is in your Google drive and after that the document would be available for normal users to see by searching I got the following HTML code:

<iframe src="https://drive.google.com/open?id=1bMIyRuEDg_nsg8uSBu5GBF7CP7sj6wIs"width="600" height="780" style="border: none;"></iframe>

However, when I put it on the host, only one blank page with my header and footer will appear without the documents appearing

    
asked by anonymous 04.07.2018 / 20:29

1 answer

0

Use the option you see in the document instead of sharing.

<iframe src="https://drive.google.com/file/d/1bMIyRuEDg_nsg8uSBu5GBF7CP7sj6wIs/preview"width="600" height="780" style="border: none;">
    </iframe>
<iframe src="https://drive.google.com/file/d/0BxrMaW3xINrsR3h2cWx0OUlwRms/preview"width="600" height="780" style="border: none;">
    </iframe>
<iframe src="https://drive.google.com/file/d/0B50I05L0hWhcdmw5ck9QRFhMLTQ/preview"width="600" height="780" style="border: none;">
    </iframe>
    
04.07.2018 / 21:48