How to embed a PDF viewer for Google Docs in an IFRAME?

I have a PDF that I’ve uploaded to Google Docs using the gdata library in Python, and I can retrieve the link to the document with the following command:

>>> e.GetAlternateLink().href
Out[14]: 'http://docs.google.com/a/my.dom.ain/fileview?id=<very-long-doc-id>&hl=en'

However, the issue I’m facing is that when I try to use this link in an IFRAME, it redirects back to itself, causing it to escape the IFRAME. I came across a helpful resource about embedding Google document viewers, but I’m uncertain how to apply this method to a document that’s stored in Google Docs. Can anyone guide me on whether this is possible?

hey, you might want to check that the doc has been set to be publicly accesible. If its private, the iframe can’t really display it. Sometimes these settings make all the diffrence. hope that helps! :four_leaf_clover: