PDF Embed API with Google Drive as source
Hi Guys,
I wonder if anyone would be able to help.
I'm using the PDF Embed API on a shopify page to attempt to display a PDF which is on Google Drive.
I've tried a few different ways to make it work - I think the main problem is that Google Drive doesn't supply a direct download link to files.
I have almost got it working, I think - using the following string, appended with the document ID from Google Drive:
"https://docs.google.com/uc?export=download&confirm=no_antivirus&id=DOCUMENT_ID_HERE"
However the PDF doesn't load, and the console has the following error:
No 'Access-Control-Allow-Origin' header is present on the requested resource.
Has anyone successfully used a PDF stored on Google Drive as a source, and if so - could you let me have any tips/pointers? The documentation page mentions Google Drive as a possible source - so I'm sure it may be possible.
Thank you!
