We’re Still Here to Help (Even Over the Holidays!) - find out more here.
Forum Discussion
hattmall
4 years agoNew member | Level 2
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 i...
hattmall
4 years agoNew member | Level 2
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
Dropbox Community Moderator
4 years agoI 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.
- hattmall4 years agoNew member | Level 2
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
Make connections with other developers
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!