Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to view Google drive pdf link in iframe

I need to view pdf file embed with google drive link and view link in iframe.

I have tried following code:

<iframe src="https://drive.google.com/viewerng/viewer?url=https://library.osu.edu/assets/Documents/SEL/QuickConvertWordPDF.pdf" width="400px" height="300px"  />

Advance thanks..

like image 914
user2725587 Avatar asked Dec 29 '14 08:12

user2725587


People also ask

How do I preview a PDF in iframe?

Right-click on the link in the href attribute and click Copy link address. Create a new Text content block. Click the Embed Media icon and embed the HTML code in an iframe that points to the PDF URL you noted in step 3. Click the checkmark to see the PDF displayed in the newly created iframe.


1 Answers

Try this..

<iframe src="https://drive.google.com/viewerng/viewer?
url=https://library.osu.edu/assets/Documents/SEL/QuickConvertWordPDF.pdf?
pid=explorer&efh=false&a=v&chrome=false&embedded=true" width="400px" height="300px"  />
like image 196
Deenadhayalan Manoharan Avatar answered Sep 28 '22 05:09

Deenadhayalan Manoharan