Your workflow is unique 👨‍💻 -  tell us how you use Dropbox here.

Forum Discussion

anuj9196's avatar
anuj9196
New member | Level 2
7 years ago

How can I embed pdf from dropbox into website

1 Reply

Replies have been turned off for this discussion
  • Greg-DB's avatar
    Greg-DB
    Icon for Dropbox Community Moderator rankDropbox Community Moderator
    7 years ago

    Your StackOverflow link is returning "Page Not Found". Do you still need help with this?

     

    For reference, that '.../apitl/..' link that you generated is a temporary link that points directly to the file content. That lasts for four hours after it's created. If you have that, during those four hours you can download the file content directly using an HTTPS GET request.

     

    The files_download_to_file method you mentioned is a method in the Dropbox API v2 Python SDK for downloading file content directly from Dropbox to a local file. You don't need a temporary link to use it. You just supply the remote path in Dropbox for the file you want, as well as the local path where you want to save it. (Alternatively, you can use files_download to download the file data to memory instead of the local filesystem.)

     

    None of these are really specifically meant for embedding the data on your web page, but once you have the data, you can do whatever you need with it.

About Dropbox API Support and Feedback

Node avatar for Dropbox API Support and Feedback
Get help with the Dropbox API from fellow developers and experts.

The Dropbox Community team is active from Monday to Friday. We try to respond to you as soon as we can, usually within 2 hours.

If you need more help you can view your support options (expected response time for an email or ticket is 24 hours), or contact us on X, Facebook or Instagram.

For more info on available support options for your Dropbox plan, see this article.

If you found the answer to your question in this Community thread, please 'like' the post to say thanks and to let us know it was useful!