Copy link to clipboard
Copied
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??
Copy link to clipboard
Copied
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.
Copy link to clipboard
Copied
Copy link to clipboard
Copied
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.