Preview all file type with PDF Embed API
Hi all, firstly please correct me if I open this post at incorrect location.
I have some document and media files stored in AWS S3 bucket. My website is using PHP 7.0 and Jquery
Because Google Doc Viewer limits the max file size to preview at 25MB. So I replace it with PDF Embed API.
This API is only for previewing PDF while I need to preview any file types such as ( doc, docx, csv, xls, xlsx, pdf, png, jpg, jpeg ).
I tried to research and had some ideas that I need to convert all other file types to PDF first, and Adobe Service API can do that ( create a PDF file from other file )
The problem is I feel it's too hard to apply this.
The follow will be: get file from S3 via a public URL -> check file type -> if file type is not PDF -> convert it -> preview that file ( using Embed PDF API )
Please help me to have a simple view for that above follow ( eg: what API I should use ,.... )
I would appreciate any ideas. Thank you
