How can I preview my documents on Google Drive using PHP SDK?

388 Views Asked by At

I have a custom CMS where clients upload documents of different types. Now they want to see the document contents before they decide to download it, just like we do in Google Drive. My question is how can I use Google Drive PHP SDK to allow my users to preview documents? When user clicks on Preview button in CMS, I immediate upload the document to my Google Drive, from there I want to create a preview and show it to the User. I am aware of ViewersJs and Google Doc Viewer but its not providing solution for all types of documents.

Thank you for your time.

0

There are 0 best solutions below