Skip to main content
Participating Frequently
August 27, 2020
Question

Can You Please tell how can i embed a drive url in location url field i want to show a drive file in

  • August 27, 2020
  • 1 reply
  • 475 views

I want to embed a google drive file in adobe view sdk so please tell me method to do it. what should i write in file url . Url that i get from google drive??

 

This topic has been closed for replies.

1 reply

Joel Geraci
Community Expert
Community Expert
August 27, 2020

Google Drive doesn't prove direct URLs to the PDF. You'll need to write some code to retrieve the PDF bytes using the Drive API. The Drive URL will give you the File ID to use in the API call but it isn't useful other than that. Once you have the bytes of the PDF, you can pass that into them Embed API "content" property as a Promise that resolves to a ByteArray.

Participating Frequently
August 30, 2020
Please can you tell me whole process to view drive document with adobe view
sdk
Legend
August 30, 2020

YOU need to write code using the Google Drive API. Once you have done that and retrieved the bytes you can use this as noted.