Cut the Clutter: Test Ignore Files Feature - sign up to become a beta tester here.

Forum Discussion

hattmall's avatar
hattmall
New member | Level 2
4 years ago

No toolbar with print option in embed

When using the embed javscript to include a shared PDF in my page the toolbar that appears at the bottom only has the zoom in our out options.

 

Is there anyway to include the full toolbar that includes print options like what is seen when directly clicking preview in dropbox?

 

My users need to be able to print from the embedded files without having to open each in a separate window.

4 Replies

  • Greg-DB's avatar
    Greg-DB
    Icon for Dropbox Community Moderator rankDropbox Community Moderator
    4 years ago

    Unfortunately, the Dropbox Embedder doesn't have an option for that, but I'll pass this along as a feature request. I can't promise if or when that might be implemented though.

  • hattmall's avatar
    hattmall
    New member | Level 2
    4 years ago

    Can you recommend an alternate solution?

     

    Or I notice that inspecting the embed there is a png preview of the file, is there anyway to access that as that would allow me to create a javascript button to print that png which would be sufficient.

  • Greg-DB's avatar
    Greg-DB
    Icon for Dropbox Community Moderator rankDropbox Community Moderator
    4 years ago

    I can't offer any other solutions using the Embedder unfortunately. You can find all of the supported options for the Embedder in the Embedder documentation, but unfortunately there's nothing for programmatically enabling a print button or accessing the embedded content like that.

     

    If you need more control over the integration, you could use the Dropbox API instead (such as /2/files/download), but that would be substantially more work.

  • hattmall's avatar
    hattmall
    New member | Level 2
    4 years ago

    Ok, thank you, I got it working by changing the ending of the shared link to raw=1 and putting it in an iframe. The files now render in the browser and a print button can be made with JS. Perhaps this only works because the files are PDF, but it fits my needs.

About Discuss Dropbox Developer & API

Node avatar for Discuss Dropbox Developer & API
Make connections with other developers815 PostsLatest Activity: 4 years ago
280 Following

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 or Facebook.

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!